I am working on getting the Micro Voice demo working on the Artemis RedBoard. I have been taking the steps used to get it working on the Edge and Edge 2, and just running it. There is a general walk through here: https://codelabs.developers.google.com/ … sorflow/#0
I am pretty sure I need to point to the BSP for the RedBoard instead. I have managed to at least get it to compile and have it spit out some info over Serial.
I am running this on OSX. You will have to use brew or MacPorts to get a newer version of make and then make sure the updated version is used as the default.
I am using the SparkFun fork of TensorFlow, which @liquid.soulder has been updating to work with the Edge 2 and the latest version of the Ambiq SDK.
Here are the steps I take:
git clone https://github.com/sparkfun/tensorflow.git
cd tensorflow
gmake -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=sparkfun_edge2 micro_speech_bin
Oddly, I have to run this twice because I get a sed error. it works fine the second time.
I then use this command to flash the compiled bin. In order to flash, I need to pull the boot loader pin high. Follow the directions here: viewtopic.php?f=168&t=50825#p207893
Basically, connect a jump wire to 3.3v. Touch the other end to the right side of the resistor that is above LED 13. With this connection made, hit the reset button. Continue to keep the connection and then run the following command:
python3 tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/boards_sfe/common/tools_sfe/ambiq/ambiq_bin2board.py --bin tensorflow/lite/experimental/micro/tools/make/gen/sparkfun_edge2_cortex-m4/bin/micro_speech.bin --load-address-blob 0x20000 --magic-num 0xCB -o main_nonsecure_ota --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 115200 -port /dev/cu.usbserial-1410 -r 2 -v
After doing all of that… all I get is the follow if I open up serial monitor:
FPU Enabled.
PDM DMA Threshold = 16
I am going to go in and try modifying the Makefile to point to the correct BSP for the RedBoard. I will keep this thread updated as I make progress. If anyone has figured this out, please contribute!