Hi,
Request any advice/suggestion on what I am doing wrong. I am trying to run the ‘hello world’ example on my Sparkfun Edge board as described in Chapter 6 of TnyML book by Pete Warden & Daniel Situnayake. Here is my set up:
- 
laptop: Dell Inspiron 5558 with windows 10 home 
- 
Installed Virtual box 6.1 and VM running Ubuntu 20.04.1 and extensions 
- 
Attached Sparkfun board with serial basic breakout to a USB port on my laptop 
- 
Configured USB port is I communicate with it from Ubuntu VM 
- 
I then ran everything as described in the book starting on page 115 as follows: 
- 
export DEVICENAME=/dev/ttyUSB0 
- 
export BAUD_RATE=921600 
- 
Then held down button 14 on the Sparkfun board, reset by pressing RST, and then ran the python program as below. 
- 
It prints the ‘Sending Hello’ message, and after sometime it produces the error message as shown. And the same result with many tries. Only difference is once in a while, it sayd received 49 bytes instead of 11 more often 
- 
Appreciate any input. 
ram@ram-VirtualBox:~/tinyml/tensorflow$ python3 tensorflow/lite/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/tools/apollo3_scripts/uart_wired_update.py -b $BAUD_RATE $DEVICENAME -r 1 -f main_nonsecure_wire.bin -i 6
Connecting with Corvette over serial port /dev/ttyUSB0…
Sending Hello.
No response for command 0x00000000
received bytes 11
[‘0xdc’, ‘0x68’, ‘0x7’, ‘0x87’, ‘0x88’, ‘0x80’, ‘0x80’, ‘0x83’, ‘0x80’, ‘0x80’, ‘0x80’]
Traceback (most recent call last):
File “tensorflow/lite/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/tools/apollo3_scripts/uart_wired_update.py”, line 338, in
main()
File “tensorflow/lite/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/tools/apollo3_scripts/uart_wired_update.py”, line 40, in main
connect_device(ser)
File “tensorflow/lite/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/tools/apollo3_scripts/uart_wired_update.py”, line 60, in connect_device
response = send_command(hello, 88, ser)
File “tensorflow/lite/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/tools/apollo3_scripts/uart_wired_update.py”, line 237, in send_command
raise NoResponseError
main.NoResponseError
Cheers
Ram