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

uf2文件为啥只能和电脑相连时才能跑?(Why can uf2 files only be run when connected to a computer?) #2

Open
guozijing-zjk opened this issue Dec 22, 2022 · 4 comments

Comments

@guozijing-zjk
Copy link

guozijing-zjk commented Dec 22, 2022

我不知道这个问题是否愚蠢😥。。。。
但是确实让我困惑了,我的M0sense与电脑相连时,uf2程序才可以运行,假如我用电池给M0Sense供电,竟然不会工作..........为什么啊。
!!!我确定uf2文件在与电脑断开时侯并没有丢失!!!

意思就是我把usb线插在电脑上,M0Sense才运行案例中的uf2(点灯程序,别的也一样),当我把usb插到充电宝上,M0Sense将不会工作.......之后我插在电脑上又开始工作了???😭😭😭

English:
I don't know if this question is stupid 😥...
But it does confuse me, when my M0sense is connected to a computer, the uf2 program can run, if I use the battery to power M0Sense, it will not work.......... Why.
!!!I'm sure the uf2 file wasn't lost when it was disconnected from my computer!!!

It means that I plug the USB cable into the computer, M0Sense only runs the uf2 (lighting program, everything else) in the case, when I plug the USB into the charging bank, M0Sense will not work....... After that, I plugged in the computer and started working again??? 😭😭😭

@guozijing-zjk guozijing-zjk changed the title uf2文件为啥只能和电脑相连时才能跑? uf2文件为啥只能和电脑相连时才能跑?(Why can uf2 files only be run when connected to a computer?) Dec 22, 2022
@guozijing-zjk
Copy link
Author

guozijing-zjk commented Dec 29, 2022

没人.....1031532333EC69EB77283236F8D39B27.jpg

@taorye
Copy link
Collaborator

taorye commented Jan 10, 2023

Dear guozijing-zjk:

I'm so sorry that has no reply for a long time.

But of course here is one.

How about remove the usb_stdio from the cmake config below which in the file CMakeLists.txt.

set(TARGET_REQUIRED_LIBS usb_stack shell usb_stdio)

Show me the result, hope it will work.

@guozijing-zjk
Copy link
Author

Dear guozijing-zjk:

I'm so sorry that has no reply for a long time.

But of course here is one.

How about remove the usb_stdio from the cmake config below which in the file CMakeLists.txt.

set(TARGET_REQUIRED_LIBS usb_stack shell usb_stdio)

Show me the result, hope it will work.

哇哦,谢谢你我去试试

@guozijing-zjk
Copy link
Author

尊敬的guozijing-zjk

很抱歉很久没有回复了。

但当然,这里有一个。

如何从下面的 cmake 配置中删除该文件中的 .usb_stdio``CMakeLists.txt

set(TARGET_REQUIRED_LIBS usb_stack shell usb_stdio)

向我展示结果,希望它能起作用。

吃灰一年的m0sense又让我拿出来了.......

大佬我试过你推荐的那个方法,把CMakeLists.txt中的:
set(TARGET_REQUIRED_LIBS usb_stack shell usb_stdio)里面的"usb_stdio删掉了,但是无法编译啊啊啊啊啊"
555
#include <usb_stdio.h> 直接这里提示没有引用蹦出来了........求大佬有时间解答一下啊啊啊啊啊
ps:来自一年多以后的回答......

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