using s32ds create bootloader an app

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

using s32ds create bootloader an app

1,542件の閲覧回数
yongwan
Contributor III

Hi

i want to make a bootloader project and a application project using s32ds

the bootloader run start at 0x00000000 in flash memory

the app run start at 0x0000c000 in flash memory

in app project ,i set the linker file s32k144_64_flash.ld

m_text            origin=0x0x0000c410,  length=0x00073bf0

but i found that when i download the file to the mcu ,the app run start at 0x00000000,

the code does not download at 0x0000c000 in flash memory

i want to download the app code at 0x0000c000 in flash memory

what other settings do i have to do?

タグ(3)
0 件の賞賛
2 返答(返信)

1,422件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

there is an example for RappID boot loader app - RAppID Boot Loader Utility 

pastedImage_2.png

You can use it as a reference project.

Moving m_text area to higher address is the only thing what you need to do:  

pastedImage_3.png

How you realized that your app starts from 0x00000000?

Jiri 

0 件の賞賛

1,208件の閲覧回数
jzhang
Contributor I

Hi Jiri, 

I am trying the BootLoader_MPC5748G example in s32DS, and the RAppID BL Tool.  However, I got a problem.

According to the instruction "From the 'RAppID BL Tool' product drop the bootloader application (.rbf file) onto the board".  How to drop the MPC5748G.rbf file?  I tried to enter bootloader mode and copied the MPC5748G.rbf onto the "boodloader" drive.  However, after MPC5478G.rbf is copied to DEVKIT-MPC5748G, the openSDA serial port can no longer be recognized by my computer and stays in "bootloader" mode even after it is re-plugged. 

If I don't enter the bootloader mode, then how can I drop MPC5748G.rbf to the DEVKIT board?  I tried to use S32DS to flash MPC5748G.rbf to the board, but got the following error. 

";device NXP, MPC5748G, 1x32x1520k, desc=CFlash

;begin_cs device=$00F90000, length=$005F0000, ram=$40000000

Loading programming algorithm ...
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
Error - no valid data in range of module.
Current content of flash does not match application to be programmed
CMD>EM

Erasing.
Module has been erased.
CMD>PM

Programming.
Processing Object File Data ...

No data to program."

Please help! Thanks!

Charlie  

0 件の賞賛