-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hello, I am facing the same issue as the one referenced below. I have taken the necessary steps to ensure that the driver is not causing issues. I have also tried making my baud rate 115200. I am on Ubuntu 22.04. Any tips on how to get around this?
All, just got my new SparkFun Edge, trying to build and flash test program, build is OK, but flashing failed.
I'm using Ubuntu 19.10. I've followed this link https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all#linux
So CH341 driver issue is not a problem, after plugin the USB serial to my PC, dmesg shows:
[66495.174916] usb 1-1.2: new full-speed USB device number 23 using ehci-pci
[66495.284880] usb 1-1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[66495.284885] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[66495.284888] usb 1-1.2: Product: USB Serial
[66495.285859] ch34x 1-1.2:1.0: ch34x converter detected
[66495.287652] usb 1-1.2: ch34x converter now attached to ttyUSB3
Following this step, https://learn.sparkfun.com/tutorials/using-sparkfun-edge-board-with-ambiq-apollo3-sdk/, I tried to flash Code to Board
$ make bootload
../../../../../tools/apollo3_scripts/create_cust_image_blob.py --bin bin/example1_edge_test.bin --load-address 0xC000 --magic-num 0xCB -o bin/main_nonsecure_ota --version 0x0
Header Size = 0x80
original app_size 0x4a98 ( 19096 )
load_address 0xc000 ( 49152 )
app_size 0x4a98 ( 19096 )
w0 = 0xcb004b18
Security Value 0x10
w2 = 0x10008080
addrWord = 0xc000
versionKeyWord = 0x0
child0/feature = 0xffffffff
child1 = 0xffffffff
crc = 0xbf984a8b
Writing to file bin/main_nonsecure_ota.bin
../../../../../tools/apollo3_scripts/create_cust_wireupdate_blob.py --load-address 0x20000 --bin bin/main_nonsecure_ota.bin -i 6 -o bin/main_nonsecure_wire --options 0x1
Header Size = 0x60
app_size 0x4b18 ( 19224 )
Writing to file bin/main_nonsecure_wire.bin
Image from 0x0 to 0x4b18 will be loaded at 0x20000
../../../bsp/tools/uart_wired_update_sparkfun.py -b 921600 /dev/ttyUSB3 -r 1 -f bin/main_nonsecure_wire.bin -i 6
Connecting with Corvette over serial port /dev/ttyUSB3...
Sending Hello.
No response for command 0x00000000
Traceback (most recent call last):
File "../../../bsp/tools/uart_wired_update_sparkfun.py", line 343, in
main()
File "../../../bsp/tools/uart_wired_update_sparkfun.py", line 44, in main
connect_device(ser)
File "../../../bsp/tools/uart_wired_update_sparkfun.py", line 63, in connect_device
response = send_command(hello, 88, ser)
File "../../../bsp/tools/uart_wired_update_sparkfun.py", line 240, in send_command
raise NoResponseError
main.NoResponseError
make: *** [Makefile:197: bootload] Error 1
Originally posted by @neilengineer in sparkfun/SparkFun_Edge_BSP#3 (comment)