How to debug user application firmware after relocated it from the base 0x70000000 to 0x70040000.

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

How to debug user application firmware after relocated it from the base 0x70000000 to 0x70040000.

1,450件の閲覧回数
Phang
Contributor I

Hi, 

I'm facing a problem where either the EVKMiMXRT1064 eval board or our own board cannot run DEBUG mode after relocated the user application firmware's "PROGRAM FLASH" from location 0x70000000 to 0x70040000. The size the of the user application firmware is 0x3c0000. Am I missing any configuration in order to get the debug mode work? Thanks.

0 件の賞賛
返信
4 返答(返信)

925件の閲覧回数
djarin
Contributor II

Hi, i tried appending a mkimage header (64bytes length) at the starting of the binary file (hex/bin).

Which also mean that this header file will be on top of the FCB/IVT/DCD.

Is there an option for me to offset this 64 bytes, so that the ROM bootloader can locate the FCB for QSPI initial init?

Thanks

0 件の賞賛
返信

1,411件の閲覧回数
Phang
Contributor I

Hi Jing, 

1. Does this "put application code to 0x70040000 but still put FCB/IVT/DCD at 0x70000000." action will conflict with the bootloader later?  I'm using MCU Xpresso IDE for firmware development.

 

2.  How do you do this "put application code to 0x70040000 but still put FCB/IVT/DCD at 0x70000000."? Can you give sample file if it is done is linker script file else can share with me the settings or configuration. 

Thanks.

 

0 件の賞賛
返信

1,387件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @Phang ,

1. If you have flash bootloader, you should add IVT/DCD/FCB to flash bootloader image. 

2. There is two position need to be change.

 The RT1170_reset.scp read PC and stack pointer from your image, the address should be change to 0x4000.

jingpan_0-1688628198565.png

And the linker file.

jingpan_2-1688628359297.png

After modify the file, you should not let IDE manager linker scriptor.

jingpan_3-1688628458211.png

 

Regards,

Jing

0 件の賞賛
返信

1,423件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @Phang ,

You can put application code to 0x70040000 but still put FCB/IVT/DCD at 0x70000000. Otherwise, ROM bootloader can't find data to config QSPI flash and entry address.

 

Regards,

Jing

0 件の賞賛
返信