EBTresos demo error

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

EBTresos demo error

2,712 Views
TWL
Contributor III

8e806b56f31b45ea95a38bccf2c6568b.png8e806b56f31b45ea95a38bccf2c6568b.png124d233c837e42c08316599ecec8728f.png124d233c837e42c08316599ecec8728f.pngWhen I use EB to configure MEM andFLS , run the official demo provided by EB to write 8192 data points, after running the code, the verification of the read and sent data fails. By observing the flash content through memory, I can see that there are errors in the rxBuffer and the data written to the flash is also incorrect.

S32K312EVB-Q172

Tags (1)
0 Kudos
Reply
5 Replies

2,677 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @TWL,

Could you please verify whether the sector is erased before programming?

Also, which S32K3xx device are you using, and what version of the RTD driver is currently in use?

To help us investigate further, please share the .xdm files from your Tresos configuration, along with the main.c file containing all the FLS-related function calls.

 

Regards,

Daniel

 

0 Kudos
Reply

2,646 Views
TWL
Contributor III

Hi!

This project

device:S32K312 172pin

RTD:SW32K3_S32M27x_RTD_R21-11_6.0.0_D2506

sector:0x100A000

This zip file contains the main.c and the xdm configuration file.

 

 

0 Kudos
Reply

2,602 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @TWL,

I reviewed main.c and noticed that status errors from the MemAcc APIs are not being checked.
The code just loops while operations are pending, but it doesn’t seem to handle error conditions.
Can you confirm whether any error codes are returned by MemAcc_GetJobStatus() of these calls: MemAcc_Erase(), MemAcc_BlankCheck(), or MemAcc_Write()?

 

Regards,

Daniel

0 Kudos
Reply

2,577 Views
TWL
Contributor III

Hi! .@danielmartynek

I checked the functions you mentioned and their return values are all "ok", but when performing ExampleCheckData, the return value is false. I modified the sector being operated on, and it's currently 0x10002000. When I checked the memory, I found that the value at 0x10003600 is 0xff, but the corresponding txbuffer value is 0, so the check between txbuffer and rxbuffer returns false.

0 Kudos
Reply

2,544 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @TWL,

Is there Cache enabled in the MPU region at the address?

Can you disable MPU in the startup of the project and test it again?

 

Regards,

Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2172377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEBTresos%20demo%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2172377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%228e806b56f31b45ea95a38bccf2c6568b.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228e806b56f31b45ea95a38bccf2c6568b.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357634i0F2BE8D598689527%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%228e806b56f31b45ea95a38bccf2c6568b.png%22%20alt%3D%228e806b56f31b45ea95a38bccf2c6568b.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3E8e806b56f31b45ea95a38bccf2c6568b.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22124d233c837e42c08316599ecec8728f.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22124d233c837e42c08316599ecec8728f.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357635iA8941A98AE95E741%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22124d233c837e42c08316599ecec8728f.png%22%20alt%3D%22124d233c837e42c08316599ecec8728f.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3E124d233c837e42c08316599ecec8728f.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3EWhen%20I%20use%20EB%20to%20configure%20MEM%20andFLS%20%2C%20run%20the%20official%20demo%20provided%20by%20EB%20to%20write%208192%20data%20points%2C%20after%20running%20the%20code%2C%20the%20verification%20of%20the%20read%20and%20sent%20data%20fails.%20By%20observing%20the%20flash%20content%20through%20memory%2C%20I%20can%20see%20that%20there%20are%20errors%20in%20the%20rxBuffer%20and%20the%20data%20written%20to%20the%20flash%20is%20also%20incorrect.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32K312EVB-Q172%2Fpd-p%2FS32K312EVB-Q172%22%20class%3D%22lia-product-mention%22%20data-product%3D%223493-1%22%20target%3D%22_blank%22%3ES32K312EVB-Q172%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2174336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EBTresos%20demo%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2174336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250135%22%20target%3D%22_blank%22%3E%40TWL%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EIs%20there%20Cache%20enabled%20in%20the%20MPU%20region%20at%20the%20address%3F%3C%2FP%3E%0A%3CP%3ECan%20you%20disable%20MPU%20in%20the%20startup%20of%20the%20project%20and%20test%20it%20again%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2173897%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EBTresos%20demo%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2173897%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi!%20.%40%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edanielmartynek%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3EI%20checked%20the%20functions%20you%20mentioned%20and%20their%20return%20values%20are%20all%20%22ok%22%2C%20but%20when%20performing%20ExampleCheckData%2C%20the%20return%20value%20is%20false.%20I%20modified%20the%20sector%20being%20operated%20on%2C%20and%20it's%20currently%200x10002000.%20When%20I%20checked%20the%20memory%2C%20I%20found%20that%20the%20value%20at%200x10003600%20is%200xff%2C%20but%20the%20corresponding%20txbuffer%20value%20is%200%2C%20so%20the%20check%20between%20txbuffer%20and%20rxbuffer%20returns%20false.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2173568%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EBTresos%20demo%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2173568%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250135%22%20target%3D%22_blank%22%3E%40TWL%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI%20reviewed%20main.c%20and%20noticed%20that%20status%20errors%20from%20the%20MemAcc%20APIs%20are%20not%20being%20checked.%3CBR%20%2F%3EThe%20code%20just%20loops%20while%20operations%20are%20pending%2C%20but%20it%20doesn%E2%80%99t%20seem%20to%20handle%20error%20conditions.%3CBR%20%2F%3ECan%20you%20confirm%20whether%20any%20error%20codes%20are%20returned%20by%20MemAcc_GetJobStatus()%20of%20these%20calls%3A%20MemAcc_Erase()%2C%20MemAcc_BlankCheck()%2C%20or%20MemAcc_Write()%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2172777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EBTresos%20demo%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2172777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250135%22%20target%3D%22_blank%22%3E%40TWL%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20verify%20whether%20the%20sector%20is%20erased%20before%20programming%3F%3C%2FP%3E%0A%3CP%3EAlso%2C%20which%20S32K3xx%20device%20are%20you%20using%2C%20and%20what%20version%20of%20the%20RTD%20driver%20is%20currently%20in%20use%3F%3C%2FP%3E%0A%3CP%3ETo%20help%20us%20investigate%20further%2C%20please%20share%20the%20.xdm%20files%20from%20your%20Tresos%20configuration%2C%20along%20with%20the%20main.c%20file%20containing%20all%20the%20FLS-related%20function%20calls.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E