changing MQX start address

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

changing MQX start address

458 Views
prashnathdodla
Contributor I

Hello we are using K20DX72, we developed serial boot loader based on AN2295 and it is working fine with bare metal code. Now we want to flash MQX application using boot loader. We modified the linker script to following address

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

   #cfmprotrom  (RX): ORIGIN = 0x00008400, LENGTH = 0x00000020

   rom         (RX): ORIGIN = 0x00008420, LENGTH = 0x0003FBE0  # Code + Const data  

   ram         (RW): ORIGIN = 0x1FFF8000, LENGTH = 0x00010000  # SRAM - RW data

but when we recompile the application the map file shows default address.

v_addr   p_addr   size     name

  00000000 00000000 00000400 .vectors   vectorrom

  00000400 00000400 00000010 .cfmprotect cfmprotrom

  00000420 00000420 00006B0C .main_application rom

  1FFF8000 00006F2C 00000150 .main_application_data ram

  1FFF8150 1FFF8150 00000020 .main_application_bss ram

  1FFF8170 1FFF8170 00000000 .kernel_data ram

  20007FF0 20007FF0 00000000 .end_of_kernel_data end_of_kd

  20007A00 20007A00 00000000 .boot_stack bstack

  20007C00 20007C00 00000000 .end_of_boot_stack end_bstack

  20007C00 0000707C 00000018 .romp      end_bstack

we are using CW10.2 and MQX 3.8. can anyone help. thanks in advance.

Best Regards

Prashanth

0 Kudos
1 Reply

212 Views
c0170
Senior Contributor III

Hello Prashnath dodla,

I have not any experience with a bootloader and MQX, anyway, there are couple of posts here on the community.

This seems to be the same question and it's already answered https://community.freescale.com/thread/304452

Regards,

c1070

0 Kudos