AnsweredAssumed Answered

firmware upgrade using FSL kinetis bootloader 1.2.0 on FRDM k22f board

Question asked by Ronak Panchal on Aug 20, 2015
Latest reply on Aug 21, 2015 by Ronak Panchal

Hello,

 

I am working on fsl kinetis bootloader 1.2.0 for upgrading firmware using uart on FRDM k22f board with KDS.

I have checked it with the given kinetis updater utility and uploaded the "led_demo_FRDM-K22F_a000.bin".

It's working successfully.

 

Now , i have developed small demo application of led blinking using processor expert which is working properly when directly tested(without bootloader).

Then i have changed linker file for bootloader application.

 

Given below is linker configuration for my application:

 

HEAP_SIZE  = DEFINED(__heap_size__)  ? __heap_size__  : 0x00;

STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400;

/* Specify the memory areas */

MEMORY {

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

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

  m_interrupts_ram      (RW)  : ORIGIN = 0x1FFF0000 , LENGTH = 0x00000400

  m_text                (RX)  : ORIGIN = 0x0000A410 , LENGTH = 0x00075BF0

  m_data                (RW)  : ORIGIN = 0x1FFF0400 , LENGTH = 0x0000FC00

  m_data_2              (RW)  : ORIGIN = 0x20000000 , LENGTH = 0x00010000

}

 

But sometimes its working and sometimes its not working.

 

During debug i have found that,

(*)  demo led app :

 

app starting address - 0xa3e1

stack pointer - 0x1fff0400

 

(*) my app :

 

app starting address - 0xa4d9

stack pointer - 0x20010000

 

1) what could be the reason for such problem?

 

2) How to set and configure the "Bootloader configuration area"?

 

any help would be appreciated.

Thanks in advance..!

Outcomes