Tried stepbystep (Intro to UART) from stm32 website, build and debugging are a success but keeps shutting down before even sending out "HelloWorld" to TeraTerm. What could be the problem?
Hi all, im a beginner on stm32 (currently using l703rz) to play with. I have tried the code from stm32 stepbystep (Intro to UART), the build and debugging are a success. The problem is that it keeps shutting down after debugging and would not send out "HelloWorld" to my teraterm. The ports connected are same (115200 and 8 bits).
Anyways, here are the code that i newly tried
uint8_t Test[] = "Hello World !!!\r\n"; //Data to send
HAL_UART_Transmit(&huart2,Test,sizeof(Test),10);// Sending in normal mode
HAL_Delay(1000);
Below here is the output after i tested these lines of code above.
STMicroelectronics ST-LINK GDB server. Version 7.1.0
Copyright (c) 2022, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.12.0
-------------------------------------------------------------------
Log output file: C:\Users\Alpha\AppData\Local\Temp\STM32CubeProgrammer_a07796.log
ST-LINK SN : 066AFF353638425043085244
ST-LINK FW : V2J40M27
Board : NUCLEO-L073RZ
Voltage : 3.24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x447
Revision ID : Rev Z
Device name : STM32L07x/L08x/L010
Flash size : 192 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x41
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a07796.srec
File : ST-LINK_GDB_server_a07796.srec
Size : 10.43 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 83]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:01.346
Verifying ...
Download verified successfully
Shutting down...
Exit.
