2024-04-04 12:53 AM
Hi Team,
We are working on the locomotive-based custom product design where we are using the STM32L452REY6 microcontroller. We have one requirement to update the STM32L452REY6 firmware using the internal bootloader over the UART.
We have referred following documents to develop this feature.
The firmware update is working well. But When the Microcontroller goes into bootloader mode PA6 GPIO turns ON.
My query is,
Why PA6 GPIO getting ON While the microcontroller in boot mode?
Please let me know if you need more information for the same.
Thanks,
Parth
2024-04-04 01:44 AM
Have again a look at AN2606. E.g. in Rev 46: Table 123
-SPI1_MISO pin
-Output
- PA6 pin: Slave data output line, used in push-
pull, pull-down mode
By "turn on" do you mean set to '1'? Then probably the SPI Bootloader got activated...
2024-04-04 06:04 AM
Hi,
We have used this pin as GPIO output in the application code and externally we have pulled down with 100k. But we still get high in boot mode.
Thanks,
Parth
2024-04-04 07:21 AM
Probably NSS pin is ewxternal pulled low and so PA6 prepares to send 0xA5 and so PA6 is high.
2024-04-05 12:15 AM
2024-04-05 12:54 AM
I'm not sure NSS is involved at all.
I personally would recommend to avoid the internal bootloader, write your own.
JW