cancel
Showing results for 
Search instead for 
Did you mean: 

Why does HAL_SPI_Transmit_DMA set the FLASH_SR_WRPERR Error Flag?

TBich
Associate

I use the internal EEPROM of my STM32L071 to store a Device Configuration. All Testing with writing and reading my Structure or just single Elements of my Structures are working fine.

After the Device runs a while, I needed to store an updated Configuration. There an error occured because the FLASH_SR_WRPERR Error Flag was set.

Using the Debugger from Keil µVision, I was able to see that the Error Flag was set after following line from HAL_SPI_Transmit_DMA

(line 1279 in stm32l0xx_hal_spi.c)

hspi->hdmarx->XferHalfCpltCallback = (void (*)(DMA_HandleTypeDef *))NULL;

Is there any known reason for this behaviour? How should I handle this?

0 REPLIES 0