Rappid boot loader for MPC5744P

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

Rappid boot loader for MPC5744P

Jump to solution
3,534 Views
kentlin
NXP Employee
NXP Employee

Hello Sir,

 

We found an error message when using the Rappid bootloader for MPC5744P.

Dose that mean the Rappid bootloader doesn't support MPC5744P?

Could you help?

 Capture.JPG

Thanks a lot.

Best Regards,

Kent

1 Solution
2,061 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi Kent, 

It is relatively simple. First you need to create a New S32DS Project for the MCP5744P.

Then, once the project is created, you will use a trick:

1: go to Debug Configuration

2: select the Flash launch configuration

3. change the project elf to the rbf file you wish to program on flash

Capture.JPG

4. click on Debug and that will flash the rbf into the MPC

Hope this helps!

Daniel

View solution in original post

8 Replies
2,063 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi Kent, 

Just to clarify your question:

- do you want to know how to program/write an ELF file using S32DS for Power Architecture existing UI for flash programming?

or

- do you want to implement a flash programming algorithm using S32DS for PA ?

Best regards,

Daniel

0 Kudos
2,063 Views
yankuang1
Contributor III

I want to know how to program/write the MPC5744P.rbf using S32DS for PA

0 Kudos
2,062 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi Kent, 

It is relatively simple. First you need to create a New S32DS Project for the MCP5744P.

Then, once the project is created, you will use a trick:

1: go to Debug Configuration

2: select the Flash launch configuration

3. change the project elf to the rbf file you wish to program on flash

Capture.JPG

4. click on Debug and that will flash the rbf into the MPC

Hope this helps!

Daniel

2,065 Views
raduivan
NXP Employee
NXP Employee

Hi Kent,

   The MPC5744P is supported by the RAppid bootloader. Before using this tool you need to write MPC5744P.rbf  to the target (see ${InstallDir}\mctbx_pnt\tools\BootLoader\RBF_Files\MPC5744P.rbf). You can use "S32 Design Studio for Power Architecture" to perform the flash write. After you need to reset the board and try to use the bootloader directly. 

Regards,

Radu

0 Kudos
2,063 Views
yankuang1
Contributor III

Hi Radu,

I want to know how to use use "S32 Design Studio for Power Architecture" to perform the flash write.

0 Kudos
2,063 Views
kentlin
NXP Employee
NXP Employee

Hello Radu,

Do I need to change the memory allocation of my application code when using the rbf bootloader?

Thanks a lot,

Best Regards,

Kent

0 Kudos
2,063 Views
raduivan
NXP Employee
NXP Employee

Hi Kent,

   You have to define the appKey and other symbols, please see below an example but you can also generate the code as reference, BAM option enable, using the Toolbox and look how the BAM is used. For more details please see "RAppidBL_UserManual.pdf".

#pragma section R ".appDelay" ".uappDelay" data_mode=far_abs

__declspec(section ".appDelay") const uint32_t appDelay = 5000000;

#pragma section R ".appKey" ".uappKey" data_mode=far_abs

__declspec(section ".appKey") const uint32_t appKey = 0x55AA55AA;

#pragma section R ".appKeyAddr" ".uappKeyAddr" data_mode=far_abs

lcf 

GROUP :
{
.rcw LOAD(0x00FA0000): {}
.appDelay LOAD(0x00FA0008): {KEEP(*(.appDelay))}
.appKeyAddr LOAD(0x00FA000C): {KEEP(*(.appKeyAddr))}
} > word

GROUP :
{
.xptn_vectors (VLECODE) LOAD(0x011FF000): { }
.appKey LOAD(0x011FF110): {KEEP(*(.appKey))}

} > exception_handlers

pastedImage_1.png

Best regards,

Radu

0 Kudos
2,067 Views
kentlin
NXP Employee
NXP Employee

Hi Radu,

After programming the rbf file to MCU, then reset the MCU ,it can't communicate with Rappid bootloader GUI.

But it can work without manual reset. which is not the same as you mentioned.

There is the other quesion. The application code can not work normally after the Rappid bootloader programs the MCU successfully.

Does the application code need to be allocated in a specific flash address?

Thanks a lot.

Best Regards,

Kent

0 Kudos