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

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

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

Jump to solution
4,872 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,773 Views
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.

View solution in original post

0 Kudos
Reply
4 Replies
1,773 Views
Yuri
NXP Employee
NXP Employee
0 Kudos
Reply
1,773 Views
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 Kudos
Reply
1,774 Views
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 Kudos
Reply
1,773 Views
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 Kudos
Reply