button doesn't work afert softwear reset

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
kingwheat
Offline
Last seen:1 year 2 weeks ago
加入:2016-12-08 09:21
button doesn't work afert softwear reset

嗨,对话框
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.

Device:
MT_dialog
Offline
Last seen:3 months 5 days ago
工作人员
加入:2015-06-08 11:34
Hi kingwheat,

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

kingwheat
Offline
Last seen:1 year 2 weeks ago
加入:2016-12-08 09:21
hi, 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 .

MT_dialog
Offline
Last seen:3 months 5 days ago
工作人员
加入:2015-06-08 11:34
Hi Kingwheat,

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