cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H757I-EVAL / Issue of NDTR Access with UART and DMA

StrangeTau
Associate II

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

StrangeTau_2-1727225952152.png

# Error

StrangeTau_1-1727225517224.png
StrangeTau_0-1727225499417.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

StrangeTau_2-1727230590035.png StrangeTau_1-1727230568793.png

#2 stm32h7xx_hal_dma.h file

StrangeTau_3-1727230721434.png StrangeTau_0-1727238438490.png

 

View solution in original post

2 REPLIES 2

Is WON_UART.h one of your files?

Check also stm32h7xx_hal_conf.h for DMA structures being pulled into the build.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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

StrangeTau_2-1727230590035.png StrangeTau_1-1727230568793.png

#2 stm32h7xx_hal_dma.h file

StrangeTau_3-1727230721434.png StrangeTau_0-1727238438490.png