AnsweredAssumed Answered

Bare metal Startup code on S32V234

Question asked by vedha chalam on Jul 26, 2018

Hi NXP Community,

I am working on Bare metal starup code on S32v234 EVB board. I am facing issue with booting the image with boot device as flash(non-xip).

 

I have provided below the steps followed and working/non-working scenarios in starup code and uboot code

 

a)U-boot code:

Working case(Image -> RAM):

1) uboot image(.bin) generated

2) Load the generated image(.bin) to specific address in SRAM directly with Trace32

3) uboot image is working and console log output is printed

 

Working case(Image -> Flash(non-XIP)):

1) uboot image(.bin) generated

2) Add IVT header and qspi commands to the generated bin

3) Flash the image to Internal flash(non-xip)

4) Boot the board and uboot image is working and console output is printed

 

b) Startup code:

Working case(Image ->RAM):

1) Startup code image(.bin) generated

2) Load the generated image(.bin) to specific address in SRAM directly with Trace32

3) Startup code is working and console log output is printed

 

Non-working case(Image -> Flash(non-XIP)):

1) Startup code(.bin) generated

2) Add IVT header and qspi commands to the generated bin -> the IVT header fields are updated with reference to working u-boot code 

3) Flash the image to Internal flash(non-xip)

4) Boot the board and startup code image is not working and no console output is printed

 

Could you please let me know if any other modification is required apart from IVT header and DCD information for Boot ROM to load the image from flash to SRAM and start execution.

 

Thanks and Regards,

Vedhachalam

Outcomes