This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello Ralpf,
Thank you for your prompt reply.
Immediately, I changed the EN bit to 0 (delete the line of | BOOTCFG_EN) and confirmed it.
As a result, the situation will not change, the application will start.
Also, I deleted the judgment statement of 0xFFFFFFFE and I tried to write the setting every time but the application will start.
I misunderstood the explanation of the EN bit.
Is the position of ④(GPIO condition judgment) in the following flow correct, not on the EN = 1 side but on the EN = 0 side?
Also, is the method of confirming that PB5 is HIGH with the reading of GPIODATA register (0x40059000) value of GPIOB ?
Best Regards,
Kyogo
Hello Kyogo,
I must apologize for my prior comment about the accuracy of the diagram. When I reviewed it, I thought it was accurate but I notice now two differences which need to be addressed. In order to best explain the process, I have put together a diagram myself which I hope will help show the process properly:
Note that to get the GPIO polarity check to occur, EN has to equal 0, so you would want BOOTCFG to be 0xFFFF36FE.
Please see if with that setting for BOOTCFG you get the desired behavior.
Hello Ralpf,
In the data sheet, it was stated that Bootloader would not start unless the EN bit is 0, so I tried with EN bit = 0.
We also confirmed that the value of BOOTCFG is 0xFFFF36FE.
As a result, the situation did not change, the application started.
Is not the branch of GPIO's polarity correctly done ?
How can I check the polarity of the corresponding port / pin of the GPIO while the application is running ?
Best Regards,
Kyogo
Hello Ralph,
When tried again, due to the change of the EN bit,
I was able to confirm booting of Bootloader.
The reason why Bootloader did not start even after changing to EN bit = 0 was due to disconnection of the connector that changed GPIO polarity.
Thank you very much for your support.
Best Regards,
Kyogo