Comments: Using SparkFun Edge Board with Ambiq Apollo3 SDK

Pages

Comments 8 comments

  • I am working on Ubuntu 18.04LTS, and following is error message with $make bootload for the first example. In short, the board is not responding at the start of flshaing. karama0 addressed in his/her comment that it might ,be an issue of ch341 device driver. I am working on Anaconda 3 python 3.7.3, pyserial 3.4. Any other flashing tool I can try? I was able to upload program with Arudino IDE to ESP32 and ESP8266 so it's not easy to spot what is wrong with ch341Nte ... Note: I just renamed the flashing program and changed bps to the default. So please do not address on the name of flashing program.

    ../../../bsp/tools/uart_sparkfun.py /dev/ttyUSB0 -r 1 -f bin/main_nonsecure_wire.bin -i 6 Connecting with Corvette over serial port /dev/ttyUSB0... Sending Hello. No response for command 0x00000000 Traceback (most recent call last): File "../../../bsp/tools/uart_sparkfun.py", line 341, in <module> main() File "../../../bsp/tools/uart_sparkfun.py", line 42, in main connect_device(ser) File "../../../bsp/tools/uart_sparkfun.py", line 61, in connect_device response = send_command(hello, 88, ser) File "../../../bsp/tools/uart_sparkfun.py", line 238, in send_command raise NoResponseError main.NoResponseError Makefile:194: recipe for target 'bootload' failed make: *** [bootload] Error 1

  • karma0 / last week * / 1

    Some issues:

    • +1 @Dave21 with the updating extra permissions. I wound up just changing permissions on all Python files with find $AMB_ROOT -iname '*.py' -exec chmod 755 {} \;.
    • There's duplicate information about downloading the board project from GitHub in both the Adding SparkFun Edge Support section and the 3rd paragraph in the Example Applications section.
    • There's no information on the 921600 baud rate that we apparently should be using (if we ordered our boards from SparkFun and didn't receive them at some Tensorflow promo event).
    • There's no information about updating the baud rate in the examples and accompanying code. I did a global grep/sed replace in Bash. Did that break things? Couldn't tell you.
    • The GitHub repo is referenced as SparkFun_Edge_BSP, and later incorrectly as SparkFun_Edge_AmbiqSDK_BSP.
    • The file paths in the Housekeeping section are a mix of relative and (incorrectly) absolute while none are described as being relative to $AMB_ROOT, which makes things very confusing. Further, there are other relative paths throughout the document that confuse the reader, leading a person to believe that they should be in example1_edge_test instead of example1_edge_test/gcc while running make for example.
    • Under the Download the SDK section, the Ambiq SDK 2.0.0 is referencing both, an invalid link and a valid link, each referencing different builds of the same version of the SDK.
    • It's mentioned that on *nix systems, the TTY device will be /dev/cu* and Mac would be /dev/tty.*. Mac is /dev/cu.* and *nix would be /dev/tty*.
    • There doesn't seem to be much of a reason to be using version Ambiq SDK release 2.0.0. Once this issue is resolved, this document should be updated.
    • Under the Introduction section, the link "How to install FTDI Drivers" is irrelevant. This uses the CH340C board and its corresponding drivers.

    Further, I'm still having issues getting these examples to work. Any help is appreciated.

    UPDATE: Issue resolved. Seems the CH341 drivers may need to be updated.

  • I had to chmod 755 tools/apollo3_scripts/create_cust_wireupdate_blob.py under AmbiqSuite-Rel2.0.0 to build example1

    along with "sudo pip3 install pyserial" (not serial like my first try)

    I also tried the AmbiqSuite 2.1 release but ran into compilation errors which I haven't dug into yet (sticking with 2.0 for now)

    ../src/tf_adc/tf_adc.c:61:38: error: too few arguments to function 'am_hal_adc_samples_read' if (AM_HAL_STATUS_SUCCESS != am_hal_adc_samples_read(g_ADCHandle, ^~~~~~~~~~~~~~~~~~~~~~~

  • The "GNU-RM Download Site" links don't work.

  • $AMB_ROOT/boards/SparkFun_Edge_AmbiqSDK_BSP/examples/edge_test/gcc should be $AMB_ROOT/boards/SparkFun_Edge_AmbiqSDK_BSP/examples/example1_edge_test/gcc

    • Thanks for posting these notes!

    • Also, when installing pyserial (at least on osx), make sure it's installed with pip, not pip3, or your 'make bootload' command will throw this error: ... ../../../bsp/tools/uart_wired_update_sparkfun.py -b 921600 /dev/tty.usbserial-AL0339KE -r 1 -f bin/main_nonsecure_wire.bin -i 6 Traceback (most recent call last): File "../../../bsp/tools/uart_wired_update_sparkfun.py", line 5, in <module> import serial ModuleNotFoundError: No module named 'serial' make: *** [bootload] Error 1


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!