This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM6442:MCU GPIO 中断路由器的未声明标识符

Guru**** 2481465 points
Other Parts Discussed in Thread: SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1457513/am6442-undeclared-identifier-for-mcu-gpio-interrupt-routers

器件型号:AM6442
主题中讨论的其他器件:SysConfig

工具与软件:

您好!

我正在尝试升级工程以使用新的 MCU+ SDK 10.1、但出现编译错误、指出中断路由器编号未声明。 如下所示。

****项目 IO_Controller 的配置调试构建****

"C:\\ti\\ccs1281\\ccs\\utils\\bin\\gmake"-k -j 24 all -O

构建文件:"../gpio.c"
调用:ARM 编译器
"c:/ti/ti-cgt-armllvm_4.0.1.LTS/bin/tiarmclang.exe /ti/mcu_plus_sdk_am64x_10_01_00_32/source /ti/mcu_plus_sdk_am64x_10_01_00_32/source/kernel/freertos/FreeRTOS-Kernel/include /ti/mcu_plus_sdk_am64x_10_01_00_32/source/kernel/freertos/config/am64x/m4f /Users/BrycenHillukka/workspace_v12/IO_Controller/Debug/syscfg -c -mcpu=cortex-m4 -mfloat-abi=hard -mlittle-endian -mthumb -i"C:/ti/ti-cgt-armllvm_4.0.1.LTS/include/c /ti/mcu_plus_sdk_am64x_10_01_00_32/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F -i"C:gpio"-i"C:gpio"-i"C:gpio"-mc_am64X -d_debug_=1 -g -wall -wno-gno-mp-gpio-o gpio-t"-mc-no gpio-t"-t"-mc-no gpio 大小不是"gpio-mpio"-t"-mpio-t"-t"-mp -mp -t"-mp:"-t"-mpio-t"。
subdir_rules.mk:9:目标"gpio.o"的配方失败
../gpio.c:253:142:错误:使用未声明标识符"CSLR_MCU_M4FSS0_CORE0_INTR_MAIN_GPIOMUX_INTROUTER0_OUTP_5"
253 | DIGITAL_INPUT_INIT (DIGITAL_INPUT_BASE_addr[i]、DIGITAL_INPUT_PIN[i]、DIGITAL_INPUT_GPIO_DIREC[i]、DIGITAL_INPUT_GPIO_TRIG_TYPE[i]、DI1_INTR_NUM、 &GPIO_ISR);
|^
C:/Users/BrycenHillukka/workspace_v12/IO_Controller/Debug/syscfg ti_drivers_config.h:108:27:注意:已从宏"DI1_INTR_NUM"扩展
108 |#define DI1_INTR_NUM (CSLR_MCU_M4FSS0_COR0_INTR_MAIN_GPIOMUX_INTROUTER0_OUTP_5)
|^

我过去遇到过这个错误、该错误已在该线程中解决。  https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1343782/sk-am64b-interrupt-number-is-an-undeclared-indentifier

同样的修复方法在这个新版本的 MCU+ SDK 上不起作用。 我还注意到、新的 MCU+ SDK 的 source/drivers/目录中没有.meta 文件夹。 如何解决此问题? 我是否可以采取进一步的步骤、以便下次升级 MCU+ SDK 时不会遇到此问题?

感谢您的帮助、

Brycen