2174622_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2174622_en-US

2174622_en-US

Read/write error when using EB sample project to operate Flash.

Currently, I am using EB to configure DFlash read/write, and when I use the demo provided by EB to read/write, there is a situation that the txbuffer and rxbuffer data can not be corresponded to each other, or there are some locations in memory where the corresponding data is not written.

My current environment

device: S32K312 172pin

RTD: SW32K3_S32M27x_RTD_R21-11_6.0.0_D2506

Sector of operation: 0x100A0000

In the zip is the XDM file and main.c for mem and fls that I configured.

Re: 使用EB示例工程操作Flash出现读写错误

Hi@TWL

Okay, the solution is useful to click on "Accepted Solution", which can be used as a reference for those who follow it.

Re: 使用EB示例工程操作Flash出现读写错误

I changed the address of Mem Access Code Erase, write as you gave and it works. Thank you for your help.

Re: 使用EB示例工程操作Flash出现读写错误

Hi@TWL

You can check the MCRS- >RWE to check if a RWE error is the cause.Senlent_0-1758866698359.png

You can refer to the settings in this picture before testing

Senlent_2-1758869264584.png

Reference solutions for similar problems

https://community.nxp.com/t5/S32K/S32K341-Issue-with-Mem-43-INFLS-on-S32DS3-6-2-and-RTD6-0-0/m-p/213...




Re: 使用EB示例工程操作Flash出现读写错误

Hi@TWL

1. The file configuration you provided still has errors, I made changes:

Senlent_0-1758852955612.png

2. I enabled CACHE.

Senlent_1-1758853017694.pngSenlent_2-1758853026103.png

Results of the test:

Senlent_3-1758853053276.png

Attached is the compiled elf file, you can test it yourself.

Re: 使用EB示例工程操作Flash出现读写错误

Hi!

I resend an XDM file. At the same time, when I use MEM for PFLASH reading again, there is a hardfault when I operate the section 0x00400000-0x004FFFFF, so I modified the configuration in EB to read and write after operating the 0x00500000 address, but the reading and writing also occurs when there are no writes or incorrect read data.

The zip contains the xdm file, main and ld files

Re: 使用EB示例工程操作Flash出现读写错误

Hi@TWL

I opened the config file you provided and I opened it I realized that it doesn't match up ah, it's wrong.

Senlent_0-1758779255592.png


标记 (1)
无评分
版本历史
最后更新:
‎11-21-2025 05:47 PM
更新人: