Hi,
I am currently looking for some examples of dual core applications running both CM33 and CM7 in the internal RAM.
I currently have a NOR flash XIP application launching the CM7 and it's working fine.
Now, I am trying to run the CM33 application in the device's RAM instead of the NOR flash.
If the CM33 core is running alone, I have no issue, everything is working fine. But as soon as i am linking the CM7 binary in my IDE (IAR workbench), I still can build the application but I am not able to load the application in the device with JLink anymore, I encounter a loader error.
I tried to look in the SDK's example, but I cannot find anything running both core in RAM.
Is it possible to do?
Is there any example I can try for the imxrt118x family?
I link the icf files if that can help
Thanks for your time,
and if this is not clear do not hesitate
IAR JLink loader error :
已解决! 转到解答。
Hi @lambemau ,
The following steps is what I tested based on the dual core project - hello world.
1. copy MIMXRT1189xxxxx_cm33_ram.icf from SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\demo_apps\hello_world\cm33\iar to SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\multicore_examples\hello_world\cm33\iar
2. open the workspace file in SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\multicore_examples\hello_world\cm33\iar and create a new configuration such as sram_debug based on flexspi_nor_debug.
3. edit the options in sram_debug:
a) C/C++ compiler->Preprocessor->defined symbols:
XIP_EXTERNAL_FLASH=0
XIP_BOOT_HEADER_ENABLE=0
b) Linker->Config->Linker Configuration File: $PROJ_DIR$\MIMXRT1189xxxxx_cm33_ram.icf
4. open workspace file in C:\install\SDK Archive\SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\multicore_examples\hello_world\cm7\iar, and build
5. switch to cm33 workspace and build and click the button for Download and Debug
6. two debug sessions will come out and one for cm33 the other for cm7, start cm33 debug at first and then start cm7 debug.
BTW, IAR 9.60.3 was used in this test, and debug interface was CMSIS DAP.
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.
-------------------------------------------------------------------------------
Hi @lambemau ,
The following steps is what I tested based on the dual core project - hello world.
1. copy MIMXRT1189xxxxx_cm33_ram.icf from SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\demo_apps\hello_world\cm33\iar to SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\multicore_examples\hello_world\cm33\iar
2. open the workspace file in SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\multicore_examples\hello_world\cm33\iar and create a new configuration such as sram_debug based on flexspi_nor_debug.
3. edit the options in sram_debug:
a) C/C++ compiler->Preprocessor->defined symbols:
XIP_EXTERNAL_FLASH=0
XIP_BOOT_HEADER_ENABLE=0
b) Linker->Config->Linker Configuration File: $PROJ_DIR$\MIMXRT1189xxxxx_cm33_ram.icf
4. open workspace file in C:\install\SDK Archive\SDK_2_16_100_MIMXRT1180-EVK\boards\evkmimxrt1180\multicore_examples\hello_world\cm7\iar, and build
5. switch to cm33 workspace and build and click the button for Download and Debug
6. two debug sessions will come out and one for cm33 the other for cm7, start cm33 debug at first and then start cm7 debug.
BTW, IAR 9.60.3 was used in this test, and debug interface was CMSIS DAP.
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.
-------------------------------------------------------------------------------