RT118x dual core in RAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RT118x dual core in RAM

ソリューションへジャンプ
1,089件の閲覧回数
lambemau
Contributor III

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 :

Flash download warning: 1024 out of 1024 bytes from data record CODE:[0xffe'0000,0xffe'03ff] will not be flashed
 Flash download warning: 119040 out of 119040 bytes from data record CODE:[0xffe'0400,0xfff'd4ff] will not be flashed
There were warnings while generating flash loader input.
 
Maurice

 

ラベル(2)
タグ(2)
0 件の賞賛
返信
1 解決策
1,046件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

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.

Kan_Li_0-1731399755154.png

Kan_Li_1-1731399800242.png

 

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.
-------------------------------------------------------------------------------

 

 

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,035件の閲覧回数
lambemau
Contributor III

Thanks @Kan_Li,
I do not have these examples in my old SDK v14.
With these nex ICF example I can flash my device properly using them as reference.

0 件の賞賛
返信
1,047件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

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.

Kan_Li_0-1731399755154.png

Kan_Li_1-1731399800242.png

 

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.
-------------------------------------------------------------------------------

 

 

 

 

0 件の賞賛
返信