2024-08-29 04:18 AM
HI,
I configured boot pins STM32G030 to enter bootloader at startup of system, but now how do I check if the chip is actually in bootlaoder mode?
After setting boot bits, I know that the main application code on flash memory is not loaded at start up (mcu not responding to uart commadns as it does in application code), but when I try to use commands from AN3155:
I get no response on uart (trying "Get version" and "Get ID" commands), also tried the "Go" command, doesnt work. The system is connected by STM32G03 connected to FT234XD-T(chip on PCB) and then via USB to PC. The UART communication works without problem in application code mode, at 115200 baud.
2024-08-29 05:48 AM
Usually, you can tell by the nature of the chip not doing what it normally does. Be that blinking an LED or opening an interface, or whatever.
You can also connect with STM32CubeProgrammer and look at PC to see where the chip is at. System memory will be around 0x1FFF0000 while normal flash operation will be in the 0x08000000 range.
The bootloader requires a 0x7F byte before it will enter the UART-specific bootloader. Are you doing this?
Are you connected to pins supported by the bootloader per AN2606? Which pins and interface are you connected to?
Are you using a valid baud rate and even parity?
2024-08-29 06:29 AM
Hi,
thank you for info. The problem was that I missed that I need to send 0x7F to start it.
Now after 0x7F I get ACK response (0x79), but after any other comamnd, I get NACK (0x1F). So I guess there is problem in how I am sending comamnds to it.