RT1180 non-xip image build and downloade

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

RT1180 non-xip image build and downloade

286 Views
ethan_dang1
Contributor III

I want to save the code in flash, but it runs in the internal RAM during runtime. However, I'm not sure how to create the image and burn it. I made an attempt by referring to Processor-specific workflows — Secure Provisioning Tool 26.03, but after the downloader, the device did not start running.

The test environment and steps are as follows. Please help check. Thank you.

Board: MIMXRT1180-EVK

SDK:  SDK_26_03_00_MIMXRT1180-EVK

IDE: MCUXpresso IDE v25.6.136

Downloade tool: MCUXpresso Secure Provisioning Tool 26.03

Step1: import evkmimxrt1180_hello_world_cm33 projiect

Step2: Open project Properties > C/C++ Build > Settings > Managed Linker Script and  check "Link application to RAM", and change global data placement and “CodeQuickAccess” to DTC_cm33 

ethan_dang1_1-1776667840254.png

Step3: Open project Properties > C/C++ Build > MCU settings and ensure that the ITC is the first RAM listed in the available memory areas 

ethan_dang1_2-1776667847285.png

step4: change data_init() and bss_init() functions in startup_mimxrt1189_cm33.c code:

ethan_dang1_0-1776667831658.png

step5: Build successfully

ethan_dang1_3-1776667955037.png

step6: Chang board to SDP mode SW5: 0001

step7: Open MCUXpresso Secure Provisioning Tool , choose evkmimxrt1180_hello_world_cm33.axf and bulid image

ethan_dang1_4-1776668201037.png

step8: write image

ethan_dang1_5-1776668364296.png

step9: Chang board to QSPI flash mode SW5: 0100, power-on again.

phenomena: The program is not running properly and no serial port information is being printed. Additionally, using the J-link commander to view the PC pointer, it seems that the PC pointer address points to the HardFault_Handler.

ethan_dang1_6-1776668681980.png

 

 

 

0 Kudos
Reply
2 Replies

193 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @ethan_dang1,

In order to support you better, could you please help me with reuploading the first two images with a higher resolution?

Best Regards,
Pablo

0 Kudos
Reply

187 Views
ethan_dang1
Contributor III

Hi @Pablo_Ramos ,

 FYI,Thanks!

ethan_dang1_0-1776991949415.png

ethan_dang1_1-1776991972366.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2353515%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERT1180%20non-xip%20image%20build%20and%20downloade%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2353515%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20want%20to%20save%20the%20code%20in%20flash%2C%20but%20it%20runs%20in%20the%20internal%20RAM%20during%20runtime.%20However%2C%20I'm%20not%20sure%20how%20to%20create%20the%20image%20and%20burn%20it.%20I%20made%20an%20attempt%20by%20referring%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.mcuxpresso.nxp.com%2Fsecure%2Flatest%2F06_processor_specific_workflow.html%23rt118x-device-workflow%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EProcessor-specific%20workflows%20%E2%80%94%20Secure%20Provisioning%20Tool%2026.03%3C%2FA%3E%2C%20but%20after%20the%20downloader%2C%20the%20device%20did%20not%20start%20running.%3C%2FP%3E%3CP%3EThe%20test%20environment%20and%20steps%20are%20as%20follows.%20Please%20help%20check.%20Thank%20you.%3C%2FP%3E%3CP%3E%3CSTRONG%3EBoard%3A%3C%2FSTRONG%3E%26nbsp%3BMIMXRT1180-EVK%3C%2FP%3E%3CP%3E%3CSTRONG%3ESDK%3A%26nbsp%3B%3C%2FSTRONG%3E%20SDK_26_03_00_MIMXRT1180-EVK%3C%2FP%3E%3CP%3E%3CSTRONG%3EIDE%3A%3C%2FSTRONG%3E%26nbsp%3BMCUXpresso%20IDE%20v25.6.136%3C%2FP%3E%3CP%3E%3CSTRONG%3EDownloade%20tool%3A%26nbsp%3B%3C%2FSTRONG%3EMCUXpresso%20Secure%20Provisioning%20Tool%2026.03%3C%2FP%3E%3CP%3E%3CSTRONG%3EStep1%3A%3C%2FSTRONG%3E%20import%26nbsp%3Bevkmimxrt1180_hello_world_cm33%20projiect%3C%2FP%3E%3CP%3E%3CSTRONG%3EStep2%3A%3C%2FSTRONG%3E%20Open%26nbsp%3B%3CEM%3Eproject%20Properties%20%26gt%3B%20C%2FC%2B%2B%20Build%20%26gt%3B%20Settings%20%26gt%3B%20Managed%20Linker%20Script%20and%26nbsp%3B%20check%20%22%3C%2FEM%3ELink%20application%20to%20RAM%22%2C%20and%26nbsp%3Bchange%20global%20data%20placement%20and%20%E2%80%9CCodeQuickAccess%E2%80%9D%20to%20DTC_cm33%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_1-1776667840254.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_1-1776667840254.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382895iC8F35A4F4057F315%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_1-1776667840254.png%22%20alt%3D%22ethan_dang1_1-1776667840254.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EStep3%3A%26nbsp%3B%3C%2FSTRONG%3EOpen%26nbsp%3B%3CEM%3Eproject%20Properties%20%26gt%3B%20C%2FC%2B%2B%20Build%20%26gt%3B%20MCU%20settings%20and%26nbsp%3Bensure%20that%20the%20ITC%20is%20the%20first%20RAM%20listed%20in%20the%20available%20memory%20areas%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_2-1776667847285.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_2-1776667847285.png%22%20style%3D%22width%3A%20256px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382896i665AAC25758F1D4F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_2-1776667847285.png%22%20alt%3D%22ethan_dang1_2-1776667847285.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Estep4%3A%26nbsp%3B%3C%2FSTRONG%3Echange%26nbsp%3B%3CSPAN%20class%3D%22%22%3Edata_init()%3C%2FSPAN%3E%26nbsp%3Band%26nbsp%3B%3CSPAN%20class%3D%22%22%3Ebss_init()%3C%2FSPAN%3E%26nbsp%3Bfunctions%20in%26nbsp%3B%3CSPAN%20class%3D%22%22%3Estartup_mimxrt1189_cm33.c%3C%2FSPAN%3E%26nbsp%3Bcode%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_0-1776667831658.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_0-1776667831658.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382894i8D7DF7F22E22E25A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_0-1776667831658.png%22%20alt%3D%22ethan_dang1_0-1776667831658.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Estep5%3A%3C%2FSTRONG%3E%20Build%20successfully%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_3-1776667955037.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_3-1776667955037.png%22%20style%3D%22width%3A%20378px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382897i0B28BC3FB014E6E0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_3-1776667955037.png%22%20alt%3D%22ethan_dang1_3-1776667955037.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Estep6%3A%3C%2FSTRONG%3E%20Chang%20board%20to%20SDP%20mode%26nbsp%3BSW5%3A%200001%3C%2FP%3E%3CP%3E%3CSTRONG%3Estep7%3A%3C%2FSTRONG%3E%20Open%26nbsp%3BMCUXpresso%20Secure%20Provisioning%20Tool%20%2C%20choose%26nbsp%3Bevkmimxrt1180_hello_world_cm33.axf%20and%20bulid%20image%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_4-1776668201037.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_4-1776668201037.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382898iB172E5E07313BD53%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_4-1776668201037.png%22%20alt%3D%22ethan_dang1_4-1776668201037.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Estep8%3A%3C%2FSTRONG%3E%20write%20image%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_5-1776668364296.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_5-1776668364296.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382899i45EA181AB27F6637%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_5-1776668364296.png%22%20alt%3D%22ethan_dang1_5-1776668364296.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Estep9%3A%3C%2FSTRONG%3E%20Chang%20board%20to%20QSPI%20flash%20mode%26nbsp%3BSW5%3A%200100%2C%26nbsp%3Bpower-on%20again.%3C%2FP%3E%3CP%3E%3CSTRONG%3Ephenomena%3A%26nbsp%3B%3C%2FSTRONG%3EThe%20program%20is%20not%20running%20properly%20and%20no%20serial%20port%20information%20is%20being%20printed.%20Additionally%2C%20using%20the%20J-link%20commander%20to%20view%20the%20PC%20pointer%2C%20it%20seems%20that%20the%20PC%20pointer%20address%20points%20to%20the%20HardFault_Handler.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_6-1776668681980.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_6-1776668681980.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F382902iA8CBD7CB86E7FEDE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_6-1776668681980.png%22%20alt%3D%22ethan_dang1_6-1776668681980.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20RT1180%20non-xip%20image%20build%20and%20downloade%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F231808%22%20target%3D%22_blank%22%3E%40Pablo_Ramos%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3BFYI%2CThanks!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_0-1776991949415.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_0-1776991949415.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383394i8DBDB0C16DA95FF5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_0-1776991949415.png%22%20alt%3D%22ethan_dang1_0-1776991949415.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ethan_dang1_1-1776991972366.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ethan_dang1_1-1776991972366.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383395i07ECD3393C8C9206%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ethan_dang1_1-1776991972366.png%22%20alt%3D%22ethan_dang1_1-1776991972366.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20RT1180%20non-xip%20image%20build%20and%20downloade%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214798%22%20target%3D%22_blank%22%3E%40ethan_dang1%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EIn%20order%20to%20support%20you%20better%2C%20could%20you%20please%20help%20me%20with%20reuploading%20the%20first%20two%20images%20with%20a%20higher%20resolution%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EPablo%3C%2FP%3E%3C%2FLINGO-BODY%3E