RT117x: what is spin code in the ROM

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

RT117x: what is spin code in the ROM

932 Views
mastupristi
Senior Contributor I

Hi,

In the file evkbmimxrt1170_connect_cm4_cm4side.jlinkscript I found a reference to “spin code”.

mastupristi_0-1727735181820.png

 

  1. what is and what is the purpose of “spin code”?
  2. In which document is it described?
  3. Is it okay that it is the same for CM4 and CM7?
  4. At that position of the vectors is the entry point (i.e., the value with which PC is loaded upon exit from reset), so does CM4 also enter ROM?
  5. And how can it then jump to the “ actual” entry point?

regards

MAx

Tags (3)
0 Kudos
Reply
1 Reply

834 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @mastupristi ,

 

Please kindly have my comments as below:

  1. what is and what is the purpose of “spin code”?
  2. In which document is it described?
  3. Is it okay that it is the same for CM4 and CM7?

- I am sorry but there is no public doc for spin code of ROM, but you may understand this is something like a while(1) loop, the purpose is to put the core running in an endless loop, so there is no problem to set the same reset vector for both M4 and M7 as they can run code from the same region , I have successfully run dual core project from SDRAM before. 

  1. At that position of the vectors is the entry point (i.e., the value with which PC is loaded upon exit from reset), so does CM4 also enter ROM?
  2. And how can it then jump to the “ actual” entry point?

- Yes, at this point, M4 also enters the spin code of ROM, but the actual entry pointer will be loaded afterwards by some debugger application such as gdb.exe.  Please kindly refer to https://github.com/nxp-mcuxpresso/mcux-sdk/blob/main/docs/run_a_project_using_armgcc.md for more details.

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply