嗨,对话框
My project need the function to reset the system by holding the button for 3 second. I invoke the API platform_reset(RESET_AND_LOAD_FW);
and then the system reset , i can find the device is advertising and the display works well , but the button doesn't work . Only after i cut off the power and
power on , the device become well.
I think that maybe after the platform_reset , the register of GPIO state won;t reset or some ram i need to clear after the platform_reset() .
How can i work the reset in a right way.
Keywords:
Device:
Hi kingwheat,
Try using the wrap_platform_reset(RESET_AFTER_SPOTA_UPDATE); in order to reset the device and force the bootloader to run. Also can you please let me know where the fw lies is it in an flash or is located at the OTP ?
Thanks MT_dialog
hi, MT_dialog
Thanks for answering me , I can't find the wrap_platform_reset(RESET_AFTER_SPOTA_UPDATE) in the SDK3.0.10 , and my fw in lies in the flash .
my flash map:
0x00000 -- bootloader
0x80000 -- img01
0x13000 -- img02
0x1f000 -- info
I 'd like the reset to performed like the power on .
Hi Kingwheat,
Sorry, the wrap_platform_reset() is on the SDK5, i haven't noticed the SDK that you are using. I dont think that the platform_reset(RESET_AND_LOAD_FW) is indeed reseting your device, try using platform_reset(0) instead of providing any kind of kind of argument. This will force the bootloader to run.
Thanks MT_dialog