Monitoring and Tuning Using STMicroelectronics STM32 STM32L4xx

조회 수: 9 (최근 30일)
AHMED
AHMED 2023년 8월 17일
댓글: Ramakrishna 2024년 10월 15일
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
Goutham Varanasi 2023년 8월 30일
편집: Goutham Varanasi 2023년 8월 30일
Hi Ahmed,
In case you are using EVAL kit from ST, ensure the following
  • 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.
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
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.

Ramakrishna
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
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
Ramakrishna
Ramakrishna 2024년 10월 15일
I got XCP ERROR WITH H7board

댓글을 달려면 로그인하십시오.

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by