sipeed / M0sense_BL702_example

M0sense_BL702_example
Apache License 2.0
19 stars 2 forks source link

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

Open guozijing-zjk opened 1 year ago

guozijing-zjk commented 1 year ago

我不知道这个问题是否愚蠢😥。。。。 但是确实让我困惑了,我的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 commented 1 year ago

没人.....1031532333EC69EB77283236F8D39B27.jpg

taorye commented 1 year ago

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 commented 1 year ago

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 commented 10 months ago

尊敬的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 _ 直接这里提示没有引用蹦出来了........求大佬有时间解答一下啊啊啊啊啊 ps:来自一年多以后的回答......