Problem with bm versions of MTP sample on RT1064 EVK

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

Problem with bm versions of MTP sample on RT1064 EVK

ソリューションへジャンプ
1,794件の閲覧回数
carstengroen
Senior Contributor II

I have a weird problem with SDK 2.9.1 on the RT1064 EVK.

I'm testing the USB MTP samples, and for some reason, only the FreeRTOS version will run. The lite bm and bm versions will both crash (PC ends somewhere in the 0x0020xxxx area and all control is lost. The FreeRTOS version just works perfectly.

(not related, but trying the BM versions of the MTP on my 1170-EVK just works)

Any chance that NXP could verify this (I have a Rev A of the 1064 EVK) ?

(I'm using Keil)

0 件の賞賛
返信
1 解決策
1,774件の閲覧回数
carstengroen
Senior Contributor II

So,

I found the error myself. It seems that the Keil projects for (at least) the BM versions of the MTP samples misses a "define" in the linker settings.

The FreeRTOS version of the MTP sample has the following set in "misc controls" in the linker settings:

--remove --predefine="-DXIP_BOOT_HEADER_ENABLE=1" --predefine="-D__stack_size__=0x2000" --predefine="-D__heap_size__=0x2000"

The BM (baremetal) versions of the MTP samples only have this set:

--remove --predefine="-D__stack_size__=0x2000"

This means that the scatterfile will not work correctly when placing code in FlexSPI/NOR Flash:

carstengroen_0-1615554941992.png

 

I updated the bare-metal versions of the MTP samples and they now also run perfectly

Maybe it is worth for NXP to check all the samples if the same error has been sneaking into some other samples

 

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,775件の閲覧回数
carstengroen
Senior Contributor II

So,

I found the error myself. It seems that the Keil projects for (at least) the BM versions of the MTP samples misses a "define" in the linker settings.

The FreeRTOS version of the MTP sample has the following set in "misc controls" in the linker settings:

--remove --predefine="-DXIP_BOOT_HEADER_ENABLE=1" --predefine="-D__stack_size__=0x2000" --predefine="-D__heap_size__=0x2000"

The BM (baremetal) versions of the MTP samples only have this set:

--remove --predefine="-D__stack_size__=0x2000"

This means that the scatterfile will not work correctly when placing code in FlexSPI/NOR Flash:

carstengroen_0-1615554941992.png

 

I updated the bare-metal versions of the MTP samples and they now also run perfectly

Maybe it is worth for NXP to check all the samples if the same error has been sneaking into some other samples

 

 

 

0 件の賞賛
返信