the system will be reset when run RAMCODE

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

the system will be reset when run RAMCODE

1,031 Views
香龙朱
Contributor II

In Csec Driver and Flash Driver, some function is placed in RAM. Use "START_FUNCTION_DEFINITION_RAMSECTION" and END_FUNCTION_DEFINITION_RAMSECTION.

for example:

Snipaste_2019-01-16_12-05-53.png

The csec init driver will start the system tick.

Snipaste_2019-01-16_12-13-09.png

When I init the csec driver, then call some cesc or flash function that need run RAMCODE. when the code run to the RAMCODE, the system will be reset.

if I disable the system tick, those function will be run succeed, and there is no system reset.

I don't know why it happened. I don't know why the system tick will  impact the ramcode.

Anybody can explain the theory or reason to me?

I don't know disbale the system tick will really run those function succeed every time.

Labels (1)
0 Kudos
1 Reply

833 Views
香龙朱
Contributor II

this issue may be the same reason as https://community.nxp.com/thread/496524 

anybody can give me some tips?

0 Kudos