KEIL编译时Warning: C3008W: splitting LDM/STM has no benefit的消除

本文介绍了解决在编译C程序时出现的C3008WsplittingLDM/STM警告的方法。在CM内核的魔术棒OptionforTarget中,取消选择C/C++选项卡下的SplitLoadandStoreMultiple选项,即可消除警告。对于CortexM系列,由于其能保存STM/LDM的REG读写状态,因此无需使用SplitLDM/STM编译选项。
部署运行你感兴趣的模型镜像

有时在多次修改程序后编译时出现报警,前面是某个C程序比如main.c:,后面跟着:Warning: C3008W splitting LDM/STM has no benefit

解决办法:若是CM内核的,则在魔术棒Option for Target中C/C++选项卡下的Split Load and Store Multiple选项,去掉打勾不要选,重新编译就好了。

百度有人说CM3中r1pn的Bug报错不是这么回事,我没遇到过;
并且指明:Cortex M系列由于能保存STM/LDM的REG读写状态,所以不需要加Split LDM/STM的编译选项了。

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

Build started: Project: Test1 *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'E:\Keil_v5\ARM\ARMCC\Bin' Build target 'Test1' compiling main.c... Warning: C4008W: splitting LDM/STM has no benefit ../Core/Src/main.c: 1 warning, 0 errors compiling stm32f1xx_hal_msp.c... Warning: C4008W: splitting LDM/STM has no benefit ../Core/Src/stm32f1xx_hal_msp.c: 1 warning, 0 errors compiling i2c.c... Warning: C4008W: splitting LDM/STM has no benefit ../Core/Src/i2c.c: 1 warning, 0 errors compiling usart.c... Warning: C4008W: splitting LDM/STM has no benefit ../Core/Src/usart.c: 1 warning, 0 errors compiling stm32f1xx_hal_gpio.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c: 1 warning, 0 errors compiling stm32f1xx_hal_flash.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c: 1 warning, 0 errors compiling stm32f1xx_hal_rcc_ex.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c: 1 warning, 0 errors compiling stm32f1xx_it.c... Warning: C4008W: splitting LDM/STM has no benefit ../Core/Src/stm32f1xx_it.c: 1 warning, 0 errors compiling gpio.c... Warning: C4008W: splitting LDM/STM has no benefit ../Core/Src/gpio.c: 1 warning, 0 errors compiling stm32f1xx_hal.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c: 1 warning, 0 errors compiling stm32f1xx_hal_rcc.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c: 1 warning, 0 errors compiling stm32f1xx_hal_gpio_ex.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c: 1 warning, 0 errors compiling stm32f1xx_hal_cortex.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c: 1 warning, 0 errors compiling stm32f1xx_hal_pwr.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c: 1 warning, 0 errors compiling stm32f1xx_hal_dma.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c: 1 warning, 0 errors compiling stm32f1xx_hal_i2c.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c: 1 warning, 0 errors compiling stm32f1xx_hal_exti.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c: 1 warning, 0 errors compiling stm32f1xx_hal_flash_ex.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c: 1 warning, 0 errors compiling stm32f1xx_hal_uart.c... Warning: C4008W: splitting LDM/STM has no benefit ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c: 1 warning, 0 errors linking... Test1\Test1.axf: Error: L6218E: Undefined symbol SystemClock_Config (referred from main.o). Test1\Test1.axf: Error: L6218E: Undefined symbol hi2c1 (referred from main.o). Test1\Test1.axf: Error: L6218E: Undefined symbol huart1 (referred from main.o). Not enough information to list image symbols. Not enough information to list load addresses in the image map. Finished: 2 information, 0 warning and 3 error messages. "Test1\Test1.axf" - 3 Error(s), 19 Warning(s). Target not created. Build Time Elapsed: 00:01:33
08-01
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值