how set the MPC5748G BIST into Bypass USER Mode

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

how set the MPC5748G BIST into Bypass USER Mode

247 Views
haiyang
Contributor II

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.

haiyang_1-1712912777972.png

 

haiyang_2-1712912790479.pnghaiyang_3-1712912828227.png

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 :

haiyang_0-1712912745498.png

 

i hope the BIST skip my section ram ,and my code is below:

 

haiyang_4-1712912847753.png

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 

 

 

 

Tags (1)
0 Kudos
5 Replies

209 Views
petervlna
NXP TechSupport
NXP TechSupport

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)

petervlna_1-1713163726538.png

If the BIST was executed you can check in your RGM [FES] register:

petervlna_2-1713163809268.png

 

Best regards,

Peter

 

 

 

0 Kudos

205 Views
haiyang
Contributor II

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

0 Kudos

202 Views
petervlna
NXP TechSupport
NXP TechSupport

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.

petervlna_0-1713179989146.png

Best regards,

Peter

 

0 Kudos

195 Views
haiyang
Contributor II

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.

haiyang_0-1713182702425.png

best wish

haiyang

0 Kudos

185 Views
petervlna
NXP TechSupport
NXP TechSupport

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.

petervlna_0-1713248269295.png

DCF stop record: Basically first un-programmed 64 bit in memory.

petervlna_1-1713248427538.png

So rewrite it with the one you intend to be read.

Best regards,

Peter

 

 

0 Kudos