Getting an error while trying to connect custom Board based STM32L4 Series Chipset

23 views (last 30 days)
Hi, I just want to build model for my custom board stm32l431rct6 via stm32f303vct6 discovery board, So Iniatially I faced lot of struggles, so I ve decided to build a model for only Disco board, I can able to build, deploy and run the model and also can able to do monitor and run the model via vcp protocol( this is the main concern which I am facing rn ). I can do this in disco board....In custom as far as in STM32L4 Series Uart2 is the standard one for the vcp protocol so tapped the wire directly from it which is connected to JP4 pins in STLINK Disco board for the protocol...so Iniatially I can able to build, deploy and run the basic model in custom board but I cant able to do the same thing in Monitor and run mode and Im getting the this error.

Answers (1)

Leepakshi
Leepakshi ungefär 3 timmar ago
Hi Karthika,
The error you are seeing in External Mode (OPEN_PROTOCOL Connect command failed) typically occurs when the model running on the target does not match the host model due to checksum mismatch. This can happen if:
  1. The model is set to 'Accelerator' mode in the SIMULATION tab at the time of build. Try changing the simulation mode back to 'Normal' before you attempt to run the simulation in external mode on your target.
  2. Model was rebuilt but not redeployed on the target.
  3. External mode configuration (communication interface, baud rate, etc.) differs between host and target.
Hope it helps!

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!