matlab创建ioc工程,STM32&simulink代码生成时提示未定义函数或变量’Pin_idx’

在MATLAB中创建IOC工程并尝试为STM32生成Simulink代码时遇到问题,错误提示未找到函数或变量'Pin_idx'。已确认GPIO设置为输出,IOC文件路径与config模块一致,但问题仍然存在。在构建过程中,还遇到了关于'ARM CMSIS SIN COS'代码替换库的警告,建议更改代码替换库设置以避免标准数学库冲突。最后,Real-Time Workshop在构建模型'stmdaima'时失败,提示需要将SYS Timebase Source更改为TIMER。
摘要由CSDN通过智能技术生成

请问解决了吗,这个问题困扰好久了,GPIO确认是设置了输出,ioc文件的路径和config模块中的路径也一致,但还是会出现这个问题,不过端口是可以选择的,在最后build时会报错

The "ARM CMSIS SIN COS" code replacement library includes the standard math library "C89/C90 (ANSI)". To avoid this warning, you can specify the code replacement library as "None" or remove the base CRL specification if applicable, then select the desired math library via the standard math library (TargetLangStandard) parameter.

### Real-Time Workshop build procedure for method: 'entry'

### Starting Real-Time Workshop build procedure for model: 'stmdaima'

### STM32CubeMx version in usage is: 6

### Windows version: 'win64'

*** stm32_make_rtw_hook(): 'RTWVerbose' is: 'on'

*** stm32_make_rtw_hook(): 'SimulationMode' is: 'normal'

### Model connectivity is: 'normal'

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值