MCU reset with frozen/retained I/O state

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaPe_4795006
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hi!

I need to be able to perform a software reset of the mcu and maintaining the GPIO state. According to this example it seems to be possible:

https://www.infineon.com/dgdl/Infineon-CE221984_PSoC_6_MCU_Dual-Application_Device_Firmware_Update-C...

How is that done?

Device ID: CY8C6247BZI-D54

Thanks!

0 Likes
2 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi,

Can you refer to the below app note which has more information.

https://www.cypress.com/documentation/application-notes/an213924-psoc-6-mcu-device-firmware-update-s...

Regards

Alakananda
0 Likes

Thanks for the response!

I cannot see that the document answers the question. In the DFU SDK library code I can see that when I want to switch to an installed application using Cy_DFU_ExecuteApp,  NVIC_SystemReset is used to reset the device. To my understanding this will not keep the I/O:s frozen. Is my understanding correct? What is the method to transfer control to another application while keeping the I/O:s frozen?

https://github.com/Infineon/dfu/blob/master/cy_dfu.c

0 Likes