2024-03-12 01:21 AM
Hi!
I'm working with STM32CubeIDE and I want to send data via UART using the code below.
char *msg = "Hello\n";
HAL_UART_Transmit(&huart6, (uint8_t *) msg, strlen(msg), 100);
But I get an error like this:
What can I do about this issue?
Solved! Go to Solution.
2024-03-12 03:19 AM
I didn't understand what the problem was, but creating a new project solved my problem.
Thanks...
2024-03-12 02:22 AM - edited 2024-03-12 02:29 AM
Hello @Sule_Akcay
I've tested personally using the Nucleo-F756ZG and I can't reproduce the issue. Can you add your project and all details about your board, your IDE version,... Personally, I'm using the CubeIDE V1.14.1 and everything works fine.
Best Regards.
STTwo-32
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.
2024-03-12 02:42 AM
Did you
#include <string.h>
?
2024-03-12 03:19 AM
I didn't understand what the problem was, but creating a new project solved my problem.
Thanks...
2024-03-12 03:34 AM
When you get errors like that, it generally means that something went wrong sometime earlier in your code - leaving the compiler confused.
You haven't shown enough context to see what that might be.
But as it's fixed now, please mark your last post as the solution - so people can see that this issue is resolved.