2016-01-27 05:46 AM
Hi,
I am using the microcontroller STM32L0. I configured two pins(PB5 and PB6) of the micro as outputs. And the PB5 is in SET state and the PB6 is in RESET state. To update the firmware , we use the bootloder. To enter in bootlodaer mode, we make a jump to its address. But once the bootloader started, I lost the configuration of my two pins, and my RS232 transceiver cannot be ON. Because to activate the transceiver, I must have PB5 SET and PB6 RESET. Is it normal that the GPIO configuration can be lost in bootloader mode? Thank you2016-01-27 06:08 AM
Have you consulted AN2606? Which 'L0 in particular do you use? AN2606 says:
PB6 pin: I2C1 clock line is used in open-drain mode. for 'L07/'L08. JW2016-01-27 06:33 AM
Yes. The PB6 is not used. I use STM32L051
2016-01-27 07:53 AM
Is it normal that the GPIO configuration can be lost in bootloader mode?
Yes, it knows nothing about your board or its configuration, and assumes it can write to whatever registers it wants and that they are in reset condition. If you want control over things, you need to write your own loader.2016-01-28 12:31 AM
Is it complicate to create a bootloader? I have never made a bootloader by my own.
And can we modify the preloaded bootloader? can I find the code of the STM bootloader somewhere?2016-01-28 05:55 AM
Dear ttl,
The following link explains everything. http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1920/PF262163?s_searchtype=partnumber2016-02-01 07:06 AM
Hi kk,
Thank you for your reply! I modified the program, and I got the main menu. But when I use YModem to download my program, it is always blocked at 0%. Have you ever encountered this issue?2016-02-01 08:55 AM
Not sure you want to be sending .HEX, seem to think ST example expects executable binary code to be delivered.
2016-02-01 10:33 PM
Dear ttl,
As I can see from your screen shot, you are sending .HEX file but if you are using ST IAP example it only accept .BIN file(Clive1 also told the same
). So try with .bin file. I tested this Ymodem file transfer with Hyperterminal.2016-02-02 12:52 AM
I tried the .bin file. It is blocked at 18,9 %.