S32K3xx UDS BootLoader

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

S32K3xx UDS BootLoader

2,942 Views
Alicetian
Contributor I

Hello,

My BootLoader project implemented flashing based on the UDS protocol,Flash drive function is implemented by configuring EB, The EB version is 28.2.0, The RTD version is 2.0.2.

To prevent the erase and write functions from being accidentally triggered,I want to generate the erase and write functions directly into the RAM interval,The Flash driver is only downloaded to the corresponding RAM zone during the flashing process through the host computer software,Can you give me some suggestions or if you can provide a S32K3xx FlashDriver demo.

 

0 Kudos
Reply
3 Replies

2,926 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Alicetian 

Included in the RTDs comes a flash example for S32K3xx (Flash_Example_S32K3xx). The application functionality is:

Mcu_Init, Mcu_InitClock, Mcu_SetMode
Initialize the clock sources and the clock tree and configure the clock gating of the peripherals.

Fls_Init
Initialize the Fls driver.

Fls_Erase, Fls_MainFunction, Fls_GetStatus
Erase entire the flash sectors configured. Fls_Erase is used to set job erase, Fls_MainFunction to start executing erase job and Fls_GetStatus checks the status of erase execution.

Fls_Write, Fls_MainFunction, Fls_GetStatus
Write data to flash.

Fls_Read, Fls_MainFunction, Fls_GetStatus
Read data from flash memory.

Fls_Compare, Fls_MainFunction, Fls_GetStatus
Compare data from flash memory with source data.

 

B.R.

VaneB

0 Kudos
Reply

2,918 Views
Alicetian
Contributor I

Hello,

I've seen the flash example for S32K3xx (Flash_Example_S32K3xx),I also have a certain understanding of the functions you mentioned.

By looking at the code, I learned that the erase function and the write function are generated to the Flash address,When performing the erase or write function, the Flash address data is copied to the RAM address, and the RAM address data is actually executed.

Now I want to generate the erase function and the write function directly to the RAM address,Do not generate to Flash addresses,How can I modify this Flash driver?

0 Kudos
Reply

2,898 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Alicetian 

We do not guarantee the functionality of the driver when modified, so this is left to your implementation.

0 Kudos
Reply