HI,
board:DEVKIT-MPC5748G
i use S32DS for Power v2.1 create a MPC5748G core0 project, and change the linker file,because i need a custom SRAM area,so i add a new section.
I found my board(5748G) UTEST flash not empty, it look like was written to the factory. And the UTEST is OTP ,so i can't change it.
But i hope after call the SystemSoftwareReset(), my section ram data still keep in there.
so i set BIST in Bypass USER Mode follow the Reference Manual :
i hope the BIST skip my section ram ,and my code is below:
when i debug the code ,i found it will into the IVOR1_Handler when excute
STCU2->SKC = 0xD3FEA98B;
can you tell me why?
the attachmet is my UTEST file
best wish
haiyang
Hello,
You need to skip only certain MBIST part to keep your RAM content trough functional reset.
For skipping the whole Oflline BIST I recommend you to program into UTEST memory, add DCF record which points to 0xF7.
STCU2 Configuration Register (STCU2_CFG)
If the BIST was executed you can check in your RGM [FES] register:
Best regards,
Peter
hi,
thank you reply!
but ,I found my board(5748G) UTEST flash not empty, it look like was written to the factory.
so i can't erase and write the UTEST.
Attachment is my UTEST data.
best wish
haiyang
Hello,
You wont be able to delete the UTEST.
You will simply add new DCF record as I have described.
If you look at reference manual you will see that if you have multiple same records, last valid record is loaded and processed.
Best regards,
Peter
hi,
than you reply.
can you send me some reference manual about DCF ,i only have MPC5748GRM.
As you suggested, the DCF startaddr is 0x400300,and in my UTEST flash, from 0x400400 to 0x400FFF are fill by FF,so i can add a new DCF record to these empty area.
this is my new DCF record to skip the MBIST, if there any error?
S30D004004007F0000000008000C1B
but i try write this record ,is failure.
best wish
haiyang
Hello,
You can use our DCF calculator for composing of correct record:
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC57xx-DCF-records/ta-p/1114884
Just change the address for first free in your user space in UTEST.
DCF stop record: Basically first un-programmed 64 bit in memory.
So rewrite it with the one you intend to be read.
Best regards,
Peter