⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
Jesus805
Offline
Last seen:1 year 10 months ago
Joined:2019-01-08 00:50
Full device reset

Hello,

I have a situation where I need to perform a full reset of the device via software. How would I do that?

Device:
PM_Dialog
Offline
Last seen:3 days 13 hours ago
Staff
Joined:2018-02-08 11:03
Hi Jesus805

Hi Jesus805

The SYS_CTRL_REG is used to trigger a Software Reset to the device. According to the datasheet, the SW reset is triggered by writing the SYS_CTRL_REG[SW_RESET] bit field. Writing a '1' to this bit will software reset the device.

SetBits16(SYS_CTRL_REG, SW_RESET, 1);

Be aware that if the chip boots from Sys-RAF, after the reset, the firmware will be lost and it will not be able to boot. So, if you would like to have software reset functionality, I would suggest you to boot from SPI Flash.

Thanks, PM_Dialog

Jesus805
Offline
Last seen:1 year 10 months ago
Joined:2019-01-08 00:50
谢谢你的回复!Yes

谢谢你的回复!是的,我从SPI所以th引导is is perfect.

Cheers,
Jesus805