Author Topic: STM32F030 Bare metal - finding answers on documentation  (Read 2986 times)

0 Members and 6 Guests are viewing this topic.

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4564
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: STM32F030 Bare metal - finding answers on documentation
« Reply #25 on: April 27, 2026, 02:31:46 pm »
It is not available for DMA.

What do you mean? Here it works fine with DMA:

...

In the manual is written:
Quote
The Cortex®-M4 memory map includes two bit-band regions. These regions map each word
in an alias region of memory to a bit in a bit-band region of memory. Writing to a word in the
alias region has the same effect as a read-modify-write operation on the targeted bit in the
bit-band region.
In the STM32L41xxx/42xxx/43xxx/44xxx/45xxx/46xxx devices both the peripheral registers
and the SRAM1 are mapped to a bit-band region, so that single bit-band write and read
operations are allowed. The operations are only available for Cortex®-M4 accesses, and not
from other bus masters (for example, DMA).

The bold bit above.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2540
  • Country: 00
Re: STM32F030 Bare metal - finding answers on documentation
« Reply #26 on: April 27, 2026, 02:42:18 pm »
I lost hours because I didn't understand why bit-banding doesn't work with the ADC.
Appears that the bit-banding covers the address range from 0x40000000 to 0x400fffff and
the ADC, RNG, AES and GPIOx peripherals are outside that region. No warning, not mentioned anywhere...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf