Problem burning program to MCU in KDS

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

Problem burning program to MCU in KDS

725 Views
matanhasan
Contributor I

hi!
I want to burn to my MCU, bootloader + main program from KDS.
I successfully burned my bootloader, but when i tried to burn the program, it failed ("J-Link GDB Server failed: Could not connect to target. Please check if target is powered and if ribbon cable is plugged properly.").

i think it might be an error in my MEMORY config (interrupts+text etc..)
my bootloader memory:
    m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E8
   m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x000FFBF0
   m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
   m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00010000
   m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

my main prog memory:
    m_interrupts (RX) : ORIGIN = 0x00004000, LENGTH = 0x000001E8
   m_text (RX) : ORIGIN = 0x000041E8, LENGTH = 0x000FBE18
   m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
   m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00010000
   m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

thank you for your help.

0 Kudos
2 Replies

499 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Matan,

Yes, there are some error in the the memory configuration.

The flash memory rang of bootloader shouldn't beyond the flash start address of your APP memory:

pastedImage_1.png

That is to say, the two flash can't overlap.

You can also have a look at this bootloader , check the DOC how to configure memoy:

Kinetis Bootloader to Update Multiple Devices in a Network for Cortex-M4 

Hope it helps


Have a great day,
TIC

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

0 Kudos

499 Views
matanhasan
Contributor I

OK thanks!
i'll try that. 

0 Kudos