找回密码
 立即注册
查看: 966|回复: 3

全局不关中中断编译出错,是不是要修改中断向量

[复制链接]
  • 打卡等级:偶尔看看III
  • 打卡总天数:44
  • 最近打卡:2024-02-08 07:37:21

9

主题

31

回帖

349

积分

中级会员

积分
349
发表于 2023-9-3 04:06:44 | 显示全部楼层 |阅读模式
Build target 'CosyOS_STC32G_Demo'
compiling os_debug.c...
compiling os_iss.c...
compiling os_main.c...
compiling os_starter.c...
compiling os_sysidle.c...
compiling os_taskmge.c...
assembling .\Objects\os_taskmge.src...
compiling os_taskmgr.c...
compiling os_timtask.c...
compiling os_var.c...
compiling sv_int_loc.c...
compiling sv_task.c...
compiling sv_tick.c...
compiling mcucfg_80251.c...
compiling System_init.c...
compiling putchar.c...
compiling adckey.c...
compiling display.c...
compiling i2c_ps.c...
compiling MatrixKey.c...
compiling ntc.c...
compiling pwmb.c...
compiling rtc.c...
compiling uart2_3.c...
compiling STC32G_ADC.c...
compiling STC32G_CAN.c...
compiling STC32G_Clock.c...
compiling STC32G_Compare.c...
compiling STC32G_Delay.c...
compiling STC32G_DMA.c...
compiling STC32G_EEPROM.c...
compiling STC32G_Exti.c...
compiling STC32G_GPIO.c...
compiling STC32G_I2C.c...
compiling STC32G_LCM.c...
compiling STC32G_LIN.c...
compiling STC32G_NVIC.c...
compiling STC32G_PWM.c...
compiling STC32G_RTC.c...
compiling STC32G_Soft_I2C.c...
compiling STC32G_Soft_UART.c...
compiling STC32G_SPI.c...
compiling STC32G_Timer.c...
compiling STC32G_UART.c...
compiling STC32G_USART.c...
compiling STC32G_WDT.c...
compiling STC32G_ADC_Isr.c...
compiling STC32G_CAN_Isr.c...
compiling STC32G_Compare_Isr.c...
compiling STC32G_DMA_Isr.c...
Sources\Driver\isr\STC32G_DMA_Isr.c(47): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(64): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(91): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(112): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(136): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(157): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(181): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(202): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(226): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(247): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(271): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(304): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(325): error C168: interrupt: value not in range 0 ... 31
Sources\Driver\isr\STC32G_DMA_Isr.c(346): error C168: interrupt: value not in range 0 ... 31
compiling STC32G_Exti_Isr.c...
compiling STC32G_GPIO_Isr.c...
compiling STC32G_I2C_Isr.c...
compiling STC32G_LCM_Isr.c...
Sources\Driver\isr\STC32G_LCM_Isr.c(23): error C168: interrupt: value not in range 0 ... 31
compiling STC32G_LIN_Isr.c...
compiling STC32G_PWM_Isr.c...
compiling STC32G_RTC_Isr.c...
Sources\Driver\isr\STC32G_RTC_Isr.c(26): error C168: interrupt: value not in range 0 ... 31
compiling STC32G_SPI_Isr.c...
compiling STC32G_Timer_Isr.c...
compiling STC32G_UART_Isr.c...
compiling idle_hook.c...
compiling init_hook.c...
compiling start_hook.c...
compiling tick_hook.c...
Target not created.
Build Time Elapsed:  00:00:25
回复

使用道具 举报 送花

  • 打卡等级:以坛为家II
  • 打卡总天数:432
  • 最近打卡:2025-05-01 16:19:56

5

主题

1127

回帖

4263

积分

荣誉版主

积分
4263
发表于 2023-9-3 08:22:23 | 显示全部楼层
中断向量号超过了31,需要中断向量号扩展。在文件夹“软件工具”中,有相关说明和扩展插件。
回复 支持 反对

使用道具 举报 送花

  • 打卡等级:偶尔看看III
  • 打卡总天数:44
  • 最近打卡:2024-02-08 07:37:21

9

主题

31

回帖

349

积分

中级会员

积分
349
发表于 2023-9-3 09:14:33 | 显示全部楼层
Cos*** 发表于 2023-9-3 08:22
中断向量号超过了31,需要中断向量号扩展。在文件夹“软件工具”中,有相关说明和扩展插件。 ...

谢谢,插件刚才找到了,安装编译成功
回复 支持 反对

使用道具 举报 送花

  • 打卡等级:以坛为家I
  • 打卡总天数:330
  • 最近打卡:2025-05-02 07:03:31
已绑定手机

2

主题

136

回帖

715

积分

高级会员

积分
715
发表于 2024-4-30 10:51:32 | 显示全部楼层
截图202404301051289070.jpg
回复 支持 反对

使用道具 举报 送花

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )

GMT+8, 2025-5-2 15:07 , Processed in 0.122144 second(s), 73 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表