器件型号: MSPM0G3507
您好、
如果有一个空示例(工程)可以使用 printf...将调试文本写入 CIO 控制台、我将不胜感激。
我在向导和 TI 编译器中的空工程中试用了该软件。 是有效的。
但是、`-heap_size=512`等尝试(如各种线程中所述)没有任何帮助。 GCC 必须提供哪些参数才能将输出发送给 CIO?
CCS 20.4.0.13
感谢您的支持!
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.
器件型号: MSPM0G3507
您好、
如果有一个空示例(工程)可以使用 printf...将调试文本写入 CIO 控制台、我将不胜感激。
我在向导和 TI 编译器中的空工程中试用了该软件。 是有效的。
但是、`-heap_size=512`等尝试(如各种线程中所述)没有任何帮助。 GCC 必须提供哪些参数才能将输出发送给 CIO?
CCS 20.4.0.13
感谢您的支持!
如果我尝试更改堆栈或堆大小、我在构建时遇到错误。
将 heap_size=0x400 添加到 GNU 链接器命令:
[26]Construction target:“empty_compilergc.out"</s>“
[27]Killing:GNU Linker
[28]“C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe /ti/mspm0_sdk_2_09_00_01/source/ti/driverlib/lib/gcc/m0p/mspm0g1x0x_g3x0x /Users/.../empty_compilerGCC “@“device.opt"-O2“-O2 -ffunction-sections -Fdata-sections -g -gdwarf-3 -gstrict-dwarf -wall -mthum-mfloat-abi=soft -wl /ti/mspm0_sdk_2_09_00_01/source、-map /.../empty_compilerGCC/Debug/syscfg、“、\“ empty_compilergc.map\“/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp
[29]arm-none-eabi-gcc-9.2.1.exe:错误:无法识别的命令行选项'--heap_size=0x400'
将 STACK_size=0x400 添加到 GNU 链接器命令:
调用:GNU 链接器
[28]“C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe /ti/mspm0_sdk_2_09_00_01/source/ti/driverlib/lib/gcc/m0p/mspm0g1x0x_g3x0x /Users/.../empty_compilerGCC “@“device.opt"-O2“-O2 -ffunction-sections -Fdata-sections -g -gdwarf-3 -gstrict-dwarf -wall -mthum-mfloat-abi=soft -wl /ti/mspm0_sdk_2_09_00_01/source、-map /Users/.../empty_compilerGCC/Debug/syscfg、“、\“ empty_compilergc.map\“/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v6-m/nofp
[29]arm-none-eabi-gcc-9.2.1.exe:错误:无法识别的命令行选项'--stack_size=0x400'
#include "ti_msp_dl_config.h"
#include <stdio.h>
int main(void)
{
SYSCFG_DL_init();
fflush(stdout);
printf("Hello world\n");
fflush(stdout);
while (1) {
}
}
在工程设置中、没有要编辑的特殊栈或堆大小输入字段(例如,使用 TI 编译器...)。 