最终,sparkfun板边缘板今天到达;-)
遵循这份写得很好的指南:https://codelabs.developers.google.com/codelabs/sparkfun-tensorflow/#3当尝试使用tensorflow示例随附的uart_wired_update.py
脚本刷新Ambiq上的代码时,我陷入了以下NoResponseError问题
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
我的设置:
我试过了
uart_boot_host.py
脚本,也没有响应我可以用示波器来测量握手字节'0x14','0x55','0x9d','0xe9','0x0','0x0','0x8','0x0'最初是在TXO引脚上以115200传输的在编程 header 上-但是ambiq没有回复任何内容。
顺便提一句。板载演示正在运行,蓝色指示灯闪烁,并且识别出一些"is"。
欢迎任何输入。
有人知道护卫舰 bootstrap 的协议(protocol)吗?
从第一批主板上是否有任何CPU版本更改,或者可能是来自sparkfun意外编程的任何锁定位?
渴望TF精简版用户的rgds ;-)
最佳答案
我尝试使用rx/tx引脚上的示波器来测量实际的波特率,发现使用默认的OSX串行驱动程序的位时序非常不精确,应用程序降低了10%,当波特率很高时,会导致错误的读数并最终丢失字节。
更新到ch340串行驱动器后,时序得到了改善,并且位时序正确。
在921600bps时,单字节8N1应该为10.9uS
驱动安装
https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver
关于bootloader - Sparkfun Edge Bootloader问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55463159/