KSDK2.1 FLASH_xxxxOnce and DMA

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

KSDK2.1 FLASH_xxxxOnce and DMA

667 Views
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

Labels (1)
0 Kudos
Reply
2 Replies

472 Views
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 Kudos
Reply

472 Views
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 Kudos
Reply