Why cant i write into mem 0x40026410?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-04 3:36 AM
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?
Solved! Go to Solution.
- Labels:
-
ADC
-
DMA
-
STM32F2 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-04 3:42 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-04 3:42 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-04 3:53 AM
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
If i move the MX_DMA_Init before the ADC init everything works
