S12ZVM SW Reset

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVM SW Reset

580 Views
igorpepelyaev
Contributor II

1)  Does RAM is cleared at watchdog/COP reset?

2)  Is it possible to generate any other SW resets (other than Watchdog/COP reset)?

      For example jump to reset vector 0xFFFFFC?

Labels (1)
0 Kudos
1 Reply

404 Views
RadekS
NXP Employee
NXP Employee

Hi Igor,

1)No, we guarantee the RAM consistency until Power On assert level. The POR is asserted, if the internal supply VDD falls below an appropriate voltage level (voltage levels not specified, because the internal supply cannot be monitored externally). However typically the MCU goes into POR reset when VDDX voltage fall below approximately 1.2V.

The RAM content is initialized during startup code. If you want that part of RAM will be not initialized by startup code, please update your linker file and use NO_INIT instead READ_WRITE. For example:

NO_INIT_RAM          = NO_INIT  0x002F00 TO 0x002FFF;

2) You may jump into reset vector, but it cannot work as true reset – the registers are not initialized into their default values and some of registers cannot be modified more than once between resets. The Table 1-15. Reset Sources and Vector Locations in RM specifies reset sources.

The simplest way how to reset MCU by software is COP watchdog reset – the necessary is just (initialize watchdog by write nonzero value into CPMUCOP register and) any write into CPMUARMCOP register which differs from 0x55 or 0xAA.

The next simplest way is connecting any GPIO pin to RESET pin. Switching this pin to output mode with value = log0 will reset MCU (the reset will set all GPIO pins to input mode).

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos