You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project with stm32h750 where the code is run from external qspi flash. That means in normal situation the qspi runs in memory mapped mode. Because we need occasionally write the flash we have a mechanism when part of code located in RAM aborts the memory mapping, writes the flash and reenable memory mapping again.
Now we are thinking of using DMA for some large data transfers over uart, which can be quite easily enabled but I found that it collides with our flash writing mechanism. The easiest way to try uart DMA was to enable LOG_BACKEND_UART_ASYNC (on stm32h7 it needs to fix zephyr code and mark internal buffer as __nocache but that's a different story).
With async uart I'm getting Precise data bus error on any flash write attempt. My guess is that the DMA get's confused and maybe should be paused during the flash write operation, but I don't know yet, how to do that.
Can anyone give me some hint?
The code for writing the flash is following (simplified)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a project with stm32h750 where the code is run from external qspi flash. That means in normal situation the qspi runs in memory mapped mode. Because we need occasionally write the flash we have a mechanism when part of code located in RAM aborts the memory mapping, writes the flash and reenable memory mapping again.
Now we are thinking of using DMA for some large data transfers over uart, which can be quite easily enabled but I found that it collides with our flash writing mechanism. The easiest way to try uart DMA was to enable
LOG_BACKEND_UART_ASYNC
(on stm32h7 it needs to fix zephyr code and mark internal buffer as__nocache
but that's a different story).With async uart I'm getting
Precise data bus error
on any flash write attempt. My guess is that the DMA get's confused and maybe should be paused during the flash write operation, but I don't know yet, how to do that.Can anyone give me some hint?
The code for writing the flash is following (simplified)
Beta Was this translation helpful? Give feedback.
All reactions