- L4 based IOC is being used and you may follow the process mentioned in task1 of Getting Started with STMicroelectronics STM32 Processor Based Boards - MATLAB & Simulink - MathWorks India to create the IOC file for L4 based hardware.
- If you want to use native USART that is capable of the serial over USB, USART is to be updated in Simulink Configuration settings and USART should be matching with the one in IOC.
- Also, COM port need to be updated in Simulink Configuration settings.
- If you are not using the native USART, you may need to use external FTDI and corresponding USART configuration and COM port are to be updated in IOC and Configuration settings.
Monitoring and Tuning Using STMicroelectronics STM32 STM32L4xx
2 次查看(过去 30 天)
显示 更早的评论
I am trying to do the example "Communicating with STMicroelectronics STM32F4xx Based Hardware Board" but I received connection error. The board is working well when I tried Built,Deploy&Start,so it can comminicate through ST-Link but It cannot through the UART. What can be the reason. Thank you for your answers.
1 个评论
Goutham Varanasi
2023-8-30
编辑:Goutham Varanasi
2023-8-30
Hi Ahmed,
In case you are using EVAL kit from ST, ensure the following
If custom board is being used, external FTDI cable need to be used and configuration settings has to be updated accordingly in IOC and Simulink Configuration settings.
If the issue persists, you may connect with Mathworks Technical Support with associated files and description of the issue and setup details.
回答(2 个)
AADITHYA KUMAR
2023-10-17
the USART 1 pins are also multiplexed with the USB pins and also has 4.7 uF of capacitors connected to them due to which the characters gets distorted and therefore the communication gets effected. So use other USART rather than USART 1.
0 个评论
Ramakrishna
2024-10-10
HI, Im having the same issue and i tried most of the things out but couldnt find any solution.
I just want to ask that did you over come it (any solution)Please reply IM struggling with this for 2 days
3 个评论
Ramakrishna
2024-10-15
Okay sir, And I want to ask one more thing How to read analog values I have tried different ways but none of them worked. Please suggest any method..
And the XCP ERROR Ive tried the same thing with nucleo stm32F302R8 it work perfectly #with monitor and tune after changing baud rate
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!