我要实现半物理仿真,就是通过matlab实现可以直接控制stm32板子,实际上是通过xcp on
串口实现的,但是在测试的时候发现,这个串口可以正常发送和接收数据,但是一旦把这个串口只让其进行版物理仿真就报错。直接刷写程序是可以的,最后查到问题了
解决办法:
1,Why am I receiving a XCP Internal timeout error when starting External Mode on an STM32 Board using the “Embedded Coder Support Package for STMicroelectronics STM32 Processors”?
按照这个设置方法就可以,点击如图工具的那个按钮就可以把下面DMA移到上面了
In USART, DMA is being used. This means DMA initialization must execute before the initialization of any USART to make the peripherals work as expected. If USART is initialized before DMA, this issue can occur. Please follow the below steps to work around this issue:
- Open the IOC file ass