2024-09-24 06:55 PM
Hello
I want to access the NDTR value, and I'm porting the user codes from ARM KEIL to STM32CubeIDE.
When I used ARM KEIL, I was able to access the NDTR value, but now I'm using STM32CubeIDE and I cannot access it.
currently, I don't know where the issue is in the user code, and I assume to issue with Instance declaration, but I declared Instances such as huart1 and hdma_usart1_rx.
Any help is greatly appreciated!
Friendly regards, Tau
# Declaration of instances
# Error
Solved! Go to Solution.
2024-09-24 07:29 PM - edited 2024-09-24 09:28 PM
Hello @Tesla DeLorean
Thank you for your prompt response and congrating me!!
+) The issue has been solved, and I modified type of instance, member of __DMA_HandleTypeDef from void to DMA_Stream_TypeDef.
After checking files with DMA, there are no problems.
Isn't it a problem related declarations of UART_HandleTypeDef and DMA_HandleTypeDef, by any chance?
#1 stm32h7xx_hal_conf.h file
#2 stm32h7xx_hal_dma.h file
2024-09-24 07:00 PM
Is WON_UART.h one of your files?
Check also stm32h7xx_hal_conf.h for DMA structures being pulled into the build.
2024-09-24 07:29 PM - edited 2024-09-24 09:28 PM
Hello @Tesla DeLorean
Thank you for your prompt response and congrating me!!
+) The issue has been solved, and I modified type of instance, member of __DMA_HandleTypeDef from void to DMA_Stream_TypeDef.
After checking files with DMA, there are no problems.
Isn't it a problem related declarations of UART_HandleTypeDef and DMA_HandleTypeDef, by any chance?
#1 stm32h7xx_hal_conf.h file
#2 stm32h7xx_hal_dma.h file