Cannot debug internal RAM DS-5 Vybrid projects. External RAM works.

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

Cannot debug internal RAM DS-5 Vybrid projects. External RAM works.

ソリューションへジャンプ
3,135件の閲覧回数
rocketdawg
Contributor II

using 4.1.0.1

DS-5 5.19

using TWR-VF65GS10 dev board

I can build hello world or other projects and choose internal RAM or external RAM debug

external RAM works

internal RAM gives error something like this.

Stopping running target Freescale - Vybrid VF6xx on TCP:localhost on connection

Connected to running target Freescale - Vybrid VF6xx on TCP:localhost

Execution stopped at: S:0x8003984C

loadfile "C:\Freescale\Freescale_MQX_4_1\usb\host\examples\hid\keyboard\build\ds5\hid_kbd_twrvf65gs10_a5\Int Ram Debug\hid_kbd.axf"

S:0x8003984C   MOV      pc,lr

Target Message: Memory access caused precise abort.

Debug Precise Abort Registers : DFSR = 0x00000805, DFAR = 0x3F000000

ERROR(CMD16-TAD274-NAL18):

! Failed to load "hid_kbd.axf"

! Failed to write 105,808 bytes to address S:0x3F000000 while writing block of 4,096 bytes to address S:0x3F000000

! Bus error on memory operation.

cd "C:\Users\dthedens\Documents\DS-5Workspace2"

Working directory "C:\Users\dthedens\Documents\DS-5Workspace2"

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

core 1

Current core is 1 (ID 1) - stopped in [S:0x8003984C]

0 件の賞賛
返信
1 解決策
2,335件の閲覧回数
rocketdawg
Contributor II

found the issue.

looks like this does not work for DS-5 so I commented out the #error

#if __IAR_SYSTEMS_ICC__

#pragma section = "KERNEL_DATA"

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__sfb("KERNEL_DATA"))

#elif defined(__CC_ARM)

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__KERNEL_DATA_START)

#elif defined(__GNUC__)

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__KERNEL_DATA_START)

#else

//#error UNKNOWN COMPILER - IMPLEMENT ME!!!

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__KERNEL_DATA_START)

#endif

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,336件の閲覧回数
rocketdawg
Contributor II

found the issue.

looks like this does not work for DS-5 so I commented out the #error

#if __IAR_SYSTEMS_ICC__

#pragma section = "KERNEL_DATA"

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__sfb("KERNEL_DATA"))

#elif defined(__CC_ARM)

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__KERNEL_DATA_START)

#elif defined(__GNUC__)

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__KERNEL_DATA_START)

#else

//#error UNKNOWN COMPILER - IMPLEMENT ME!!!

#define BSP_DEFAULT_START_OF_KERNEL_MEMORY      ((void *)__KERNEL_DATA_START)

#endif

0 件の賞賛
返信
2,333件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi David,

Please check the document attached, this may helps.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
2,333件の閲覧回数
rocketdawg
Contributor II

Thanks

I think that separate documents for different tools/dev kits is a better way to go.

I hope these make their way into the next release.

The topics are similar in the "one size fits all" "Getting Started with Freescale MQX™ RTOS Rev. 15" document in the ./docs directory.

One thing I noticed is, section 3.1 the second screen shot is not what I see in DS-5.19

the "Bare Metal Debug" only has entries for A5 or M4 and the "Target Connection" is a dialog box that selects CMSIS-DAT, ULINK Pro, ULINKPro D.   interesting, no DSTREAM.

you might want to update that screen shot

this document is missing all the content about the twrvf65gs10  jumper selections for USB and the serial port found in

Getting Started with Freescale MQX™ RTOS Rev. 15 section 8.1.2

If this information is to be elsewhere, then it would be nice to have a link or reference to point to.

I have not yet got the uart to work.

0 件の賞賛
返信