Problem with DMA from FLASH on STM32WBA52
- June 30, 2023
- 1 reply
- 2100 views
Hi all,
I am experiencing a problem with the DMA of the STM32WBA52 (on the NUCLEO-WBA52CG board) when using it to transfer data from FLASH to USART1 TX : part of the transmitted data is modified, i.e. not the data that is found in FLASH)
The problem only persists when the source is data in FLASH. When just changing the CSAR register to an address in RAM, everything works as expected (see the attached "DMA problem.txt").
When the instruction cache is activated (either 1-way or 2-way), the result is even worse.
Looking in the STM32WBA52 errata sheet, a similar problem is mentioned for FLASH to SRAM transferred (section 2.2.8). I'm not sure whether the problem mentioned there is the same.
Can somebody have a look at this and confirm that this is an error in the STM32WBA52 ?
Attached, you can find the cube MX config file (.ioc extension) and the main.c which contains the code I added. With main.c, the problem can be reproduced when line 144 is un-commented.
Best regards,
Jeroen