How to zero out all ram of PT60?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to zero out all ram of PT60?

383 Views
kehanqin-b46569
NXP Employee
NXP Employee

Hello everyone

as we know, we use CW to create a PT60 project it's will generate a little piece code to zero out variables in startup code, not all ram.

now customer request to erase all contents in ram after start, so I find some tips:

use "FILL" in .prm file, as below:

18161_18161.png1.png

PT60 ram address is from 0x0040 to 0x103F, after use this, most of them are zero out

18162_18162.png2.png

What really make me confused is that from 0x0061 to 0x00E0 still keep some values.

18163_18163.png3.png

Hope your help, thanks!

Labels (1)
0 Kudos
1 Reply

283 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Kehan Qin,

The reason you see the section 0x0060 to 0x00E0 not filled with 0x00 is because this section corresponds to the Stack Pointer which has a size of 0x80 in this case.

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos