Sparkfun Edge Bootloader问题 [英] Sparkfun Edge bootloader problems

查看:233
本文介绍了Sparkfun Edge Bootloader问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最后,sparkfun板边缘板今天到达;-)

Finally the sparkfun board edge boards arrived today ;-)

遵循这份精心编写的指南: https://codelabs.developers.google .com/codelabs/sparkfun-tensorflow/#3 在尝试使用tensorflow示例随附的uart_wired_update.py脚本在Ambiq上刷新代码时,我遇到了以下NoResponseError问题:

Following this well written guide : https://codelabs.developers.google.com/codelabs/sparkfun-tensorflow/#3 i am stuck with the following NoResponseError when trying to flash the code on the Ambiq, with the uart_wired_update.pyscript, that comes with tensorflow examples

opprud$ python3 tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/apollo3_scripts/uart_wired_update.py -b 115200 /dev/cu.usbserial-1430 -r 1 -f main_nonsecure_wire.bin -i 6

MOJ/Connecting with Corvette over serial port /dev/cu.usbserial-1430...

Sending Hello.

No response for command 0x00000000

Traceback (most recent call last):

  File "tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/apollo3_scripts/uart_wired_update.py", line 336, in <module>

    main()

  File "tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/apollo3_scripts/uart_wired_update.py", line 38, in main

    connect_device(ser)

  File "tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/apollo3_scripts/uart_wired_update.py", line 58, in connect_device

    response = send_command(hello, 88, ser)

  File "tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/apollo3_scripts/uart_wired_update.py", line 235, in send_command

    raise NoResponseError

__main__.NoResponseError

我的设置:

  • Macbook pro,尝试了旧的15英寸和新的13英寸
  • Sparkfun串行基本突破,USBC版本(默认跳至3v3)
  • FTDI 3v3串行电缆

我尝试过

  • 两个不同的边缘板,具有正确的Key14&重置组合+其他变体和计时
  • 旧版Macbook上的旧版USB
  • 带有USB C的新Macbook
  • FTDI 3v3串行电缆可替代Sparkfun串行板
  • 在tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/bootloader_scripts/uart_boot_host.py中运行替代的uart_boot_host.py脚本,也没有响应
  • two different edge boards, with the correct Key14 & reset combo + misc variants and timing
  • legacy USB on old Macbook
  • new Macbook w USB C
  • FTDI 3v3 serial cable as alternative to sparkfun serial board
  • Running an alternative uart_boot_host.py script in tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/bootloader_scripts/uart_boot_host.py, also no response

我可以在一定范围内测量握手字节'0x14','0x55','0x9d','0xe9','0x0','0x0','0x8','0x0'最初是在115200编程标头上的TXO引脚-但歧义字未回复任何内容.

I can measure, with a scope, the handshake bytes '0x14', '0x55', '0x9d', '0xe9' '0x0', '0x0', '0x8', '0x0' being transmitted initially at 115200 on the TXO pin on the programming header - but the ambiq is not replying anything.

顺便说一句.板载演示正在运行,蓝色指示灯闪烁,并且识别出一些是".

btw. The onboard demo is running, blue led flashing, an some "yes's" are being recognized.

欢迎任何输入.

有人知道护卫舰引导程序的协议吗?

Does anyone know the protocol for the corvette bootloader ?

第一批主板上是否有任何CPU版本更改,或者可能是来自sparkfun意外编程的任何锁定位?

Are there any CPU revision changes from the first batch of boards, or possibly any lock bits programmed accidentally from sparkfun ?

rgds;-)

推荐答案

我尝试使用rx/tx引脚上的示波器来测量实际波特率,并发现使用默认OSX串行驱动程序的位时序不太精确,应用程序10%关闭,导致波特率很高时导致错误的读数,并最终丢失字节.

I tried measuring the actual baudrate with a scope on rx/tx pins, and saw that the bit timing using default OSX serial driver is rather imprecise, app 10% off, causing faulty readings, and ultimately missing bytes, when the baudrate are high.

更新到ch340串行驱动程序后,时序得到了改善,并且位时序正确. 在921600bps时,单字节8N1应该为10.9uS

After updating to the ch340 serial driver, timing improved, and the bit timings were correct. At 921600bps, a single byte 8N1 is supposed to be10.9uS

驱动程序安装 https://github.com/adrianmihalko/ch340g-ch34g- ch34x-mac-os-x-driver

这篇关于Sparkfun Edge Bootloader问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆