Other Parts Discussed in Thread: RM46L852, RM48L952, HALCOGEN
Hello,
I work on a bootloader based on SPNA196 exemple.
It works fine on RM48 MCU. I want to port this program on RM46 but it doesn't work. Erase or write operations stauts is in error.
Here is the code
do {
Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, pEraseStartAddr);
while ( FAPI_CHECK_FSM_READY_BUSY == Fapi_Status_FsmBusy );
Fapi_StatusType stat;
do {
stat = FAPI_GET_FSM_STATUS;
} while (stat != Fapi_Status_Success);
remaining -= flash_sector[j++].length;
pEraseStartAddr = flash_sector[j].start;
} while ((remaining > 0));
The variable stat contains the value 16 that indicates an error.
To port to RM46 device I have changed:
- the device to RM46L852 in CSS configuration
- the macro #define RM46 to #define RM48 in flash_defines.h
pEraseStartAddr is 0x00100000 which valid for both RM46 and RM48 devices.
Is there any difference between RM48 or RM46 that I miss ?
Thanks,
Thomas

