Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error on nucleo-stm32f466re #43

Open
jaykorea opened this issue Sep 27, 2022 · 1 comment
Open

compile error on nucleo-stm32f466re #43

jaykorea opened this issue Sep 27, 2022 · 1 comment

Comments

@jaykorea
Copy link

jaykorea commented Sep 27, 2022

Hello.

Recently, I'm on a project using stm32 with ros

I should use this library to communicate with ros node, but compile error occurs like below

image

Plz let me know what would cause this issue...

entire error message is below

cannot convert 'uint8_t (*)[1024] {aka unsigned char (*)[1024]}' to 'const uint8_t* {aka const unsigned char*}' for argument '2' to 'HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef*, const uint8_t*, uint16_t)'

Sincerely looking forward to your answer

Thanks

@Robo-simon
Copy link

I had exactly the same error. I used this setup in a project for a STM32F767ZI, for this, I think it is following hardware - independent reason for the bug of the current commit of this repo:
original: HAL_UART_Transmit_DMA(huart, &(tbuf), twind);
fix: HAL_UART_Transmit_DMA(huart, (uint8_t*)&(tbuf), twind);

-> typecast (uint8_t*) for tbuf was missing, HAL_UART_Transmit_DMA seems to require everytime a const uint8_t *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants