Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于使用SHELL_EXPORT_CMD #205

Open
ouxueguo opened this issue Jan 2, 2025 · 3 comments
Open

关于使用SHELL_EXPORT_CMD #205

ouxueguo opened this issue Jan 2, 2025 · 3 comments

Comments

@ouxueguo
Copy link

ouxueguo commented Jan 2, 2025

在用arm-none-eabi交叉编译使用我能用SHELL_EXPORT_CMD导出命令吗?现在我编译时候发现
image
这个错误。

@NevermindZZT
Copy link
Owner

arm-none-eabi 应该是属于 GCC 吧,不应该编译到这个问题,这个是 keil 编译器使用的格式

@ouxueguo
Copy link
Author

ouxueguo commented Jan 8, 2025

是的通过按照readme文件修改未gcc选项也在ld文件增加
/* 添加独立的 shell_command 段 /
.shell_command ALIGNMENT : {
_shell_command_start = .;
KEEP(
(shellCommand)) /* 收集所有 shell_command 段的内容 */
_shell_command_end = .;
} > flash

编译通过但是好像会导致什么原因过一段时间重启。

@NevermindZZT
Copy link
Owner

是的通过按照readme文件修改未gcc选项也在ld文件增加
/* 添加独立的 shell_command 段 /
.shell_command ALIGNMENT : {
_shell_command_start = .;
KEEP(
(shellCommand)) /* 收集所有 shell_command 段的内容 */
_shell_command_end = .;
} > flash

编译通过但是好像会导致什么原因过一段时间重启。

重启的话,就得具体看看到底是哪里导致的重启了,串口能有输出吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants