Bootloader Problem on kenetis k53

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

Bootloader Problem on kenetis k53

跳至解决方案
2,200 次查看
Garil
Contributor III

Hi Guys,

Im trying to implement the bootloader  on my custom board with the Kenetis K53 MCU using MQX

im facing the the following problem :  ""No source available for "0xFFFFFFFE (0xFFFFFFFE)() "" this is due to the change in the linker file.

SO IM NOT ABLE TO DEBUG MY BOOTLOADER APP

basically im just following the AN4370 document which explain stuff related to the bootloader and so on, im still in the first step i cannot event debug my

bootloader application due to the error above.

can someone please tell me where is the error in the below linker file, or why the above error occur?

WORKING

vectorrom   (RX): ORIGIN = 0x00000000, LENGTH = 0x00000400

   cfmprotrom  (RX): ORIGIN = 0x00000400, LENGTH = 0x00000010

   rom         (RX): ORIGIN = 0x00000420, LENGTH = 0x0007FBE0  # Code + Const data  

   ram         (RW): ORIGIN = 0x1FFF0000, LENGTH = 0x00020000  # SRAM - RW data

NOT WORKING

vectorrom   (RX): ORIGIN = 0x0000A000, LENGTH = 0x00000400

   cfmprotrom  (RX): ORIGIN = 0x0000A400, LENGTH = 0x00000010

   rom         (RX): ORIGIN = 0x0000A420, LENGTH = 0x00075BE0  # Code + Const data  

   ram         (RW): ORIGIN = 0x1FFF0000, LENGTH = 0x00020000  # SRAM - RW data

beside these changes, i set the rom vector to 0 basically in the config file i have

#define MQX_ROM_VECTORS      0

there are some other change to do, do i  have a mistake in the changes above, can someone make me understand how to change the linker file correctly?

thx in advance,

BR

Wilson

标记 (3)
1 解答
1,757 次查看
c0170
Senior Contributor III

Hello wilson garil,

have you looked into these threads:

Bootloader problem - changing lcf file causes failure

Debugging code starting at 0xC000

Particularly second link could solve debugging problem. Do you use CodeWarrior?

Regards,

c0170

在原帖中查看解决方案

2 回复数
1,758 次查看
c0170
Senior Contributor III

Hello wilson garil,

have you looked into these threads:

Bootloader problem - changing lcf file causes failure

Debugging code starting at 0xC000

Particularly second link could solve debugging problem. Do you use CodeWarrior?

Regards,

c0170

1,757 次查看
Garil
Contributor III

Hi Martin

Sorry, this thread have not been updated by me since i solved the problem base on the second link that you provided above

anyway the problem was the debugger configuration as show in the thread of the link two.

thx for you reply

BR

Wilson