Failed to generate all binary outputs问题的可能原因以及解决办法!

本文介绍了在使用Simulink时遇到'Failed to generate all binary outputs'错误的原因分析,重点提到可能由于将MATLAB的C语言编译器更改为MinGW64所致。解决方法是在MATLAB命令窗口执行'mex -setup',重新设置编译器为系统默认,以解决报错问题。
摘要由CSDN通过智能技术生成
我们在使用simulink开发硬件的时候有时候会遇到Failed to generate all binary outputs.这样的问题,导致代码生成错误。我最近也遇到这个问题,搞了一个晚上,弄明白我这个过程中产生问题的原因。我是用simulink开发STM32,我的错误信息如下:

### Real-Time Workshop build procedure for method: 'entry
### modelName: 'STM32LED11
### gcs: 'STM32LED11
### bdroot: 'STM32LED11

### Starting Real-Time Workshop build procedure for model: STM32LED11
### Windows version:win64
### Model connectivity is: normal
### Create verification block: None
Code Generation  2  3
Elapsed: 46 sec
### Generating code into build folder: I:\STM32CubeMX\STM32LED11_stm32
Output port 2 of 'STM32LED11/Subsystem/ADC_Read' is not connected. [2 similar]
Component: Simulink | Category: Block warning
Parameter precision loss occurred for 'Value' of 'STM32LED11/Subsystem/Volt'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'.
Component: Simulink | Category: Block warning
----------->STM32 MCU:stm32f4
### Real-Time Workshop build procedure for method: 'before_tlc
### modelName: 'STM32LED11
### gcs: &#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值