Problem on bare metal application using SABRE AI and DS-5

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

Problem on bare metal application using SABRE AI and DS-5

ソリューションへジャンプ
5,554件の閲覧回数
falcobapp
Contributor I

Hello,

i just started on working with an i.MX6 Sabre AI platform and want to work bare metal.

Is there anybody who knows the configuration and scripts needed to execute to get DS-5 connected to the board to load the application?

Thanks,

Falco

ラベル(1)
0 件の賞賛
返信
1 解決策
2,455件の閲覧回数
Yuri
NXP Employee
NXP Employee

Your load address (0x8000) seems me suspicious :

"Failed to write 5.068 bytes to address S:0x00008000"


i.MX6 has following address ranges for applications (Table 2-1. System memory map of the Reference
Manual) :

0090_0000 - 0093_FFFF     internal RAM (OCRAM), useful for small applications, since there is no need for DRAM init.

1000_0000 - FFFF_FFFF     DRAM

So, please try to rebuild the application using correct link file, or just correct application memory map.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,455件の閲覧回数
Yuri
NXP Employee
NXP Employee
0 件の賞賛
返信
2,455件の閲覧回数
falcobapp
Contributor I

Hello Yuri,

thanks for that fast reply!

I already tried to use those scripts, and it looks like i get connected to the target. But when trying to load the application i get the following messages in the debug window:

Stopping running target Freescale - i.MX6 Quad (Generic) on USB:001567 on connection

Connected to running target Freescale - i.MX6 Quad (Generic) on USB:001567

Execution stopped at: S:0x00000FC4

S:0x00000FC4   BX       lr

loadfile "C:\XXX\Debug\testARM.axf"

ERROR(CMD16-TAD274-NAL18):

! Failed to load "testARM.axf"

! Failed to write 5.068 bytes to address S:0x00008000 while writing block of 4.096 bytes to address S:0x00008000

! Bus error on memory operation.

Target Message: Memory access caused precise abort.

Debug Precise Abort Registers : DFSR = 0x00001808, DFAR = 0x00008000

cd "C:\XXX\WorkspaceARM"

Working directory "C:\XXX\WorkspaceARM"

set debug-from main

start

WARNING(CMD399-COR168):

! Failed to start the target

! No function named "main" could be found

WARNING(CMD407): Trying the entry point instead

ERROR(CMD426): Cannot find symbol to start or entrypoint, the file or load commands may be used to set the entrypoint

wait

source /v "C:\opt\imx6_platform_sdk\tools\ds5\MX6Q_SabreSD_DDR3_v1.6.ds"

+stop

WARNING(CMD315): Target is not running

And here i am not sure how to fix that issue.

0 件の賞賛
返信
2,456件の閲覧回数
Yuri
NXP Employee
NXP Employee

Your load address (0x8000) seems me suspicious :

"Failed to write 5.068 bytes to address S:0x00008000"


i.MX6 has following address ranges for applications (Table 2-1. System memory map of the Reference
Manual) :

0090_0000 - 0093_FFFF     internal RAM (OCRAM), useful for small applications, since there is no need for DRAM init.

1000_0000 - FFFF_FFFF     DRAM

So, please try to rebuild the application using correct link file, or just correct application memory map.

0 件の賞賛
返信
2,455件の閲覧回数
falcobapp
Contributor I

Got the problem solved. The change of the setting in DS-5 eclipse worked when setting up the adress spaces corectly and update the apropriate linker skript and use of debugger-script.

Thanks a lot Yuri!!

0 件の賞賛
返信