Open chtfrank opened 1 year ago
build & flash, just run the below
# build & generation binarys
$ git clone https://github.com/advaitjain/tflite-micro-sparkfun-edge-examples.git edge
$ cd edge
$ make examples # build all examples
$ cd gen/bin
$ arm-none-eabi-objcopy -O binary micro_speech micro_speech.bin
$ git clone https://github.com/sparkfun/Apollo3_Uploader_ASB ASB
$ cp micro_speech.bin ASB
$ python3 asb.py --bin ./micro_speech.bin --load-address-blob 0x20000 --magic-num 0xCB -o ./tmp_micro_speech.bin --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 921600 -port /dev/ttyUSB0 -r 2 -v # Serial port /dev/ttyUSB0
----
Header Size = 0x80
original app_size 0x1bbb0 ( 113584 )
load_address 0xc000 ( 49152 )
app_size 0x1bbb0 ( 113584 )
w0 = 0xcb01bc30
Security Value 0x10
w2 = 0x10008080
addrWord = 0xc000
versionKeyWord = 0x0
child0/feature = 0xffffffff
child1 = 0xffffffff
crc = 0x9c6a21c0
Writing to file ./tmp_micro_speech.bin_OTA_blob.bin
testing: ./tmp_micro_speech.bin_OTA_blob.bin
Header Size = 0x60
app_size 0x1bc30 ( 113712 )
Writing to file ./tmp_micro_speech.bin_Wired_OTA_blob.bin
Image from 0x0 to 0x1bc30 will be loaded at 0x20000
Connecting over serial port /dev/ttyUSB0...
Sending Hello.
Received response for Hello
Bootloader connected
Received Status
length = 0x58
version = 0x5
Max Storage = 0x4ffa0
Status = 0x2
State = 0x7
AMInfo =
0x1
0xff2da3ff
0x55fff
0x1
0x4cd00005
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
Sending OTA Descriptor = 0xfe000
Sending Update Command.
number of updates needed = 1
Sending block of size 0x1bc90 from 0x0 to 0x1bc90
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 8180
Sending Data Packet of length 7468
Sending Reset Command.
Tries = 0
Upload complete!
Hi all, I tried to fix this problem several days, but I still cannot find the solution. Could someone help me? Thx in advance. I use the Apple Os, and have installed all the tools required, such as python, make, git and so on. Here are my steps:
git clone https://github.com/advaitjain/tflite-micro-sparkfun-edge-examples.git
make TARGET=sparkfun_edge micro_speech
I donnt know how to search the solution, it has taken many days for me to find the answer. Thx everyone.