KSDK2.1 FLASH_xxxxOnce and DMA

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

KSDK2.1 FLASH_xxxxOnce and DMA

666 次查看
manfredschnell
Contributor IV

Hello,

 

we use KSDK2.1 with K64 and IAR Workbench.

 

In our Software we use the functions FLASH_ProgramOnce() and FLASH_ReadOnce() to store and read the MAC and serial number of our device.

The software uses several DMA Services (ADC, I2S, 2x SPI).

 

When I call one of the functions FLASH_ProgramOnce() or FLASH_ReadOnce() while a DMA access to Memory is active, my System stops at 0xfffffffe <unknown handler>.

 

It seems to conflict reading from one-time Memory with Software while using DMA with Flash-Memory at the same time.

 

Can someone tell me something about that correlation?

How can I avoid this situation?

 

Best regards

Manfred

标签 (1)
0 项奖励
回复
2 回复数

471 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Manfred,

Frankly speaking, I never experience such issue.

As a workaround, can you write the data to the program flash instead of IFR?

BR

Xiangjun Rong

0 项奖励
回复

471 次查看
manfredschnell
Contributor IV

Hi Xiangjun Rong,

thank you for your answer.

I use a workaround with RAM buffer:

In my application I read MAC and Serial number at startup from one-time-Memory and store the values in a RAM buffer.

Then my application reads the values from RAM.

I try to get a closer look to the circumstances when the error happens.

I'll be back with more Information.

Best regards

Manfred

0 项奖励
回复