MPC5748 Sample Code not Running after Flashing RBF

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

MPC5748 Sample Code not Running after Flashing RBF

515 Views
maharajshreekum
Contributor III

I am trying to sun the sample codes from S32 sdk for MCP5748G after flashing the rbf file. The board is able to communicate successfully with Rappid tool for the serial boot loader.

But what happens is that if I try to flash any other sample code in it, the code runs only for one time after getting flashed. If I press reset or power reset the board, the code doesn't run. I have tried flashing the srec also from Rappid, but no success.

I have tried making the changes in the linker_flash of the sample code since the Release note of Rappid says "The MPC5748G and RBF bootloader occupies 16K memory block starting at 0x00F8C000".

Below is the linker_flash of the sample code :

/* Define FLASH */
FLASH_BASE_ADDR = DEFINED(__flash_base_addr__) ? __flash_base_addr__ : 0x01000000;
FLASH_SIZE = DEFINED(__flash_size__) ? __flash_size__ : 1856K;

/* Define SRAM */
SRAM_BASE_ADDR = DEFINED(__sram_base_addr__) ? __sram_base_addr__ : 0x40000000;
SRAM_SIZE = DEFINED(__sram_size__) ? __sram_size__ : 256K;

/* Define RAppID boot data address */
RAPPID_BOOT_APP_DELAY_ADDR = 0x00F90008;
RAPPID_BOOT_APP_KEY_ADDR = 0x00F9000C;

MEMORY
{
flash_rchw : org = 0x00F90000, len = 0x4
cpu0_reset_vec : org = 0x00F90000+0x10, len = 0x4
cpu1_reset_vec : org = 0x00F90000+0x14, len = 0x4
cpu2_reset_vec : org = 0x00F90000+0x04, len = 0x4
rappid_boot_data : org = 0x00F90000+0x08, len = 0x8

m_text : org = FLASH_BASE_ADDR, len = FLASH_SIZE
m_data : org = SRAM_BASE_ADDR, len = SRAM_SIZE
}

 

Where I am going wrong ???

0 Kudos
0 Replies