Hi @mastupristi ,
Please kindly have my comments as below:
- what is and what is the purpose of “spin code”?
- In which document is it described?
- 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.
- 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?
- 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.
-------------------------------------------------------------------------------