cancel
Showing results for 
Search instead for 
Did you mean: 

Why cant i write into mem 0x40026410?

Javier1
Principal

stm32f207zg (nucleo-f207zg)

Hi, im trying to write into my DMA2 Stream0 CR register (mapped as 0x40026410).

But that memory addr cannot be written not with my init code nor manually trough the STM32IDE debugging tools .

Is there any memory protection or lock i am missing?

0693W00000GWRvlQAH.gif0693W00000GWRvWQAX.gif

we dont need to firmware by ourselves, lets talk
1 ACCEPTED SOLUTION

Accepted Solutions
Bruno_ST
ST Employee

Hello @Javier Muñoz​ 

Just a basic question: Did you enable the DMA2 clock ? (RCC_AHB1ENR bit 22) ?

(or call corresponding HAL/LL to do it)

BR,

Bruno

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Bruno_ST
ST Employee

Hello @Javier Muñoz​ 

Just a basic question: Did you enable the DMA2 clock ? (RCC_AHB1ENR bit 22) ?

(or call corresponding HAL/LL to do it)

BR,

Bruno

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Howdy @Bruno_ST​ 

Ding ding ding!, that was it.

Im using autogenerated CUBEMX code.

It looks like CubeMX places ADCDMA config after the DMA clock is enabled (RCC->AHB1ENR), so thats why it wasnt working

0693W00000GWS5bQAH.pngIf i move the MX_DMA_Init before the ADC init everything works

we dont need to firmware by ourselves, lets talk