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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
5,560 次查看
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,461 次查看
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,461 次查看
Yuri
NXP Employee
NXP Employee
0 项奖励
回复
2,461 次查看
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,462 次查看
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,461 次查看
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 项奖励
回复