Struggles with X-Cube-AI and printf(LC_print)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-20 5:36 AM
Hello everyone,
I am currently experimenting with X-Cube-AI with a NUCLEO-G474 (because i get some weird errors with NUCLEO-N6 [N6 Post] ). I am trying to run a very simple network with the validation application. I have some Questions which i have not been able to answer myself regarding X-Cube-AI.
I first tried to print something to my pc console. I used UART with the function HAL_UART_transmit. This works fine.
Then i want to do the same with the X-CUBE-AI package in use. The first thing i see is that syscalls.c is removed from the core folder and moved into X-Cube-AI/app. In app_x-cube-ai.c in MX_X_CUBE_AI_Process() ->aiValidationProcess() i found the function LC_PRINT which also uses HAL_UART_transmit. But i cant see nothing in my terminal.
I am not sure what i did wrong. Can someone help with this problem?
Solved! Go to Solution.
- Labels:
-
STM32CubeAI
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-21 8:52 AM
The validation application is a standalone application that works in conjunction with the ai_runner (or "stedgeai validate" command)
If you just want the code for the inference generated and a template of API usage, use the "Template application".
In that case we won't be using any communication back to the host and you can use it for your own needs.
Regards
In order 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
‎2025-03-21 6:23 AM
I found a fix. I have to use LPUART1 correctly with the right pins (PA2 and PA3).
Sadly i run into the next problem. In aiValidationProcess() the programm calls UART_WaitOnFlagUntilTimeout somewhere. There the programm is stuck in a while loop.
Maybe someone knows this problem already and has a fix?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-21 8:52 AM
The validation application is a standalone application that works in conjunction with the ai_runner (or "stedgeai validate" command)
If you just want the code for the inference generated and a template of API usage, use the "Template application".
In that case we won't be using any communication back to the host and you can use it for your own needs.
Regards
In order 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.
