Unable to change start address of application

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

Unable to change start address of application

774 Views
apetrov
Contributor I

Hello,

I am trying to change the start address of M4 application to be different from the examples.

I use the following command:

 

flash_norimage: $(MKIMG) mx8qx-ahab-container.img scfw_tcm.bin u-boot-atf.bin m4_image.bin
./$(MKIMG) -soc QX -rev B0 -dev flexspi -append mx8qx-ahab-container.img -c -flags 0x00200000 -scfw scfw_tcm.bin -fileoff 0xBA0000 -p3 -m4 m4_image.bin 0 0x08BA1000 -ap u-boot-atf.bin a35 0x80000000 -out flash_norimage.bin

 

But the application does not start. If I use the following there is no problem:

 

flash_norimage: $(MKIMG) mx8qx-ahab-container.img scfw_tcm.bin u-boot-atf.bin m4_image.bin
	./$(MKIMG) -soc QX -rev B0 -dev flexspi -append mx8qx-ahab-container.img -c -flags 0x00200000 -scfw scfw_tcm.bin -fileoff 0x80000 -p3 -m4 m4_image.bin 0 0x08081000 -ap u-boot-atf.bin a35 0x80000000   -out flash_norimage.bin

 

 

There is NOR flash memory connected to FlexSPI0 and the execution shall be from there. The .ld file and SCFW are updated for the desired addresses. 

Do you have any idea why this is happenig?

Thank you in advance!

0 Kudos
Reply
1 Reply

742 Views
b36401
NXP Employee
NXP Employee

Did you change the address in u-boot (in "bootaux <addr>" option) as well?

0 Kudos
Reply