GDB PEmicro code loading problem

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

GDB PEmicro code loading problem

627 Views
sudhakarp
Contributor V

Hi,

i am using FRDMk64f, KDS 2.0 and KSDK1.1.0 example. using KDS 2.0 i loaded my code using Flash option. i have Multilink universal board.

i loaded hello example code and timer example code . each have different linker file. but code was not executing why..? if i load hello example code only its working fine. if i load both code same time its not working why? linker fill will be different. this testing i am doing for bootloader and application code purpose.

 

hello example linker file:

MEMORY

{

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

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

  m_text                (RX)  : ORIGIN = 0x00000410, LENGTH = 0x0000FBF0

  m_data                (RW)  : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000

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

}

timer example linker file:

MEMORY

{

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

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

  m_text                (RX)  : ORIGIN = 0x00010000, LENGTH = 0x000EFBF0

  m_data                (RW)  : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000

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

}

first i loaded hello code after that i loaded timer code but its not working.? if i loaded only "hello" example code its working. i am sure address was not collide with both code. can you give some idea why its not loading both code at the same time. (i mean one by one).

 

i added both file .SREC also. in flash demo program(or hello world program ) i am jumping to 0xFBF0 location using following function

static void (*appl_ptr)( void ) = 0xFBF0;

 

so i am calling "appl_ptr();" like this.(for jumbing to other application code). but its not working

 

regards,

sudhakar p

Original Attachment has been moved to: flash_demo_frdmk64f.srec.zip

Original Attachment has been moved to: hello_world_frdmk64f.srec.zip

0 Kudos
2 Replies

389 Views
soledad
NXP Employee
NXP Employee

Hello,

We note that this issue is the same that the thread how to do linker setup  so, we will answer you in the thread how to do linker setup

Have a nice day!

0 Kudos

389 Views
sudhakarp
Contributor V

Hi,

I am waiting for answer..  Please give some solution.

Regards,

Sudhakar p

0 Kudos