iMX8QM - running Cortex M4 bin from DDR

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

iMX8QM - running Cortex M4 bin from DDR

Jump to solution
479 Views
Florin101
Contributor II

Hello,

The bin file generated for my application that should run on Cortex M4_1 is larger than 256 kB and cannot be loaded in TCM. I built the file for DDR and loaded it with TFTP. However, when I try to start the M4_1 with a u-boot command, bootaux copies the my bin to TCM and a reset is generated.

Can anyone clarify how to run the code from DDR. Is there a way to tell bootaux not to copy the bin to TCM?

Thanks,

Florin

0 Kudos
Reply
1 Solution
444 Views
Florin101
Contributor II

Thank you for your guidance. In the meantime, I had a look at the id file used by the linker and I used the correct address to load the bin file. And it works!

 

I also understood that, even for a file prepared to run in ddr, bootaux will copy some bytes to TCM given that the M4s are always staring from there.

 

Kind regards,

Florin

View solution in original post

0 Kudos
Reply
2 Replies
445 Views
Florin101
Contributor II

Thank you for your guidance. In the meantime, I had a look at the id file used by the linker and I used the correct address to load the bin file. And it works!

 

I also understood that, even for a file prepared to run in ddr, bootaux will copy some bytes to TCM given that the M4s are always staring from there.

 

Kind regards,

Florin

0 Kudos
Reply
455 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

Did you make any adjustments to the image you loaded to DDR?

You can refer to chapter 6.2 Run example applications on both M4 cores from this document.

And verify chapter 7 from this appnote.

Regards

0 Kudos
Reply