-
Notifications
You must be signed in to change notification settings - Fork 89
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
您好,是否支持OTA升级固件 #5
Comments
是的,当前还没实现这一部分,后续将会加入 OTA 。 |
实际上在 PlatformIO 下是可以通过 USB 直接烧写程序(无需手动按住 boot 进入下载模式)的,使用以下方法: 在 "--before", board.get("upload.before_reset", "default_reset"), 替换为: "--before", board.get("upload.before_reset", "usb_reset"), |
通过这种方式可以让 X-Knob 自动进入下载模式,下载完成后会自动重启。 这样更加方便,也不用再给程序增加额外的 OTA 逻辑。所以当前不会考虑增加 WiFi OTA 了。 后续还要继续研究如何通过 platformio 传入这个参数,而不用这种 hack 模式。我参考文档试了一下在 platformio.ini 文件中增加参数会报错: upload_flags =
--before usb_reset |
不知道你这里的最新master分支是否同步了我最新的 commit fc59180 由于我之前是把 usb 初始化了 cdc 设备,所以没办法通过 usb 直接下载,取消 cdc 的初始化就可以了。 所以,在这种情况下,你可能需要先手动刷入最新的固件,以后就可以通过 usb 下载了。 |
回家试试谢谢 |
没有OTA升级的话,装配好之后极度不方便。串口无法引出外壳。
The text was updated successfully, but these errors were encountered: