2021-07-11 10:53 PM
I am trying to do download bin file through uart (serial trans)
I have experience which downloaded using flash loader demonstrator with STM32F4 series.
so I thought it could be easy to do with STM32G474
and I found datasheet about option bit can choose boot mode.
so I changed option bits .
but flash loader demonstrator doesn't work..
flash loader program couldn't find mcu.
it show messages that " No response from the target, the boot loader can not be started
please verify the boot mode configuration and the flash protection status
reset your device and try again. "
so I tried every combination of option bits ( nBOOT1,nSWBOOT0,nBOOT0) .. 8 times.
but it still doesn't work well.
I don't understand what should I do for using demonstrator with STM32G474..
please help me.
2021-07-11 11:34 PM
Hello @Lkim.1 ,
You should use STM32CubeProgrammer instead of Flash Loader Demo, especially that the latter support newer parts.
Best regards,
@SBEN .2
2021-07-11 11:48 PM
thanks for your reply.
I'm using STM32CubeProgrammer for changing option bits...
what should I do ?
2021-07-12 12:14 AM
Hello @Lkim.1 ,
Flash Loader Demonstrator is deprecated and isn't guaranteed to work on newer parts.
Please check section 2.1.4, figure 7 for the steps you need to follow in STM32CubeProgrammer's user manual: https://www.st.com/resource/en/user_manual/um2237-stm32cubeprogrammer-software-description-stmicroelectronics.pdf
Best regards,
@SBEN .2
2021-07-12 05:16 PM
Hello~ : ) thanks for your kindness reply
I'be tried what you said. using STM32CubeProgrammer, with UART connect.
but it still doesn't connect well..
it shows error which is "Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again... "
so I think I need to check one by one.
I need your help really ,,
I have no Idea what should I do next...
2021-07-12 05:37 PM
Use SWD/JTAG ?
The UART off the loader is sensitive to all the potential connections sources, see AN2606
ie if you have a GPS/GNSS receiver chattering on one of the other monitored UARTs it will see that first.
You have ONE shot to send the 0x7F data pattern, you'll need to reset and start over if it sees a different pattern.
2021-07-12 09:59 PM
I use JTAG for option bytes
uart is just serial port . not using JTAG
I don't have any GPS/GNSS receiver...
I thought STM32cube programmer send 0x7F automatically when I click connect button.
I send the 0x7F data using terminal program. but there is no ack return. something's wrong on chip?
2021-07-13 12:07 AM
Hello @Lkim.1 ,
Are you using a custom board or a development board?
Best regards,
@SBEN .2
2021-07-14 06:02 PM
Hello @SBEN .2 . sorry I'm late~
I'm using custom board which my company made it before I hired.
is that a possible the mcu has some problem?