本帖最后由 puyu 于 2024-9-28 16:21 编辑
#申请原创#
最近试用了下 lksconfig,很有潜力,只是现在小问题还比较多希望厂家多测试迭代下。
软件版本:lksconfig v1.1.7
MCU: LKS32MC037LM6S8B
工程配置文件已经上传到附件。
iron_lks_test.zip
(2.43 KB)
1. 运放的引脚配置不全,缺了 OPA1 的配置


2. 定时器的中断使能无法同时打开多个中断,只能单选



3. ADC 缺了对采样顺序和通道的配置
4. 生成的 MCPWM 引脚初始化代码出现了不正确的变量名 GPIO_Pin_ 和 GPIO4,看起来像是多余的,通不过编译

GPIO_StructInit(&GPIO_InitStruct);
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_-1;
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_OUT;
GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStruct.GPIO_PODEna = DISABLE;
GPIO_Init(GPIO4, &GPIO_InitStruct);
5. 在 GCC 环境中,生成的代码没有包含 __nop () 的定义
lks32mc03x_periph_driver/Source/lks32mc03x_uart.c:212:13: warning: implicit declaration of function '__nop' [-Wimplicit-function-declaration]
212 | __nop();

6. 链接时出现警告
..../arm-none-eabi/bin/ld.exe: warning: ..../lks32mc03x_periph_driver/Source/lks32mc03x_nvr.lib(lks32mc03x_nvr.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
顺带一提,空项目用 GCC 编译出来 ram 直接用掉 68% 正常吗,这还没加 FOC 驱动……

|