Update AmbiqSuiteSDK in Arduino IDE

I’m trying out the Bluetooth connection on Artemis Nano. The Example8_BLE_LED works on my Artemis Nano. I can successfully upload the example to Nano and connect it with the app nRF Connect on my Andriod phone.

I need the BLE functions other than the example of the BLE proximity profile which has predefined commands already (low, mid, high-level alerts). For instance, I can send a customized command from my cell phone to the Artemis Nano. I found the example profile prodtest_datc in the directory of "AmbiqSuite-Rel2.0.0\ambiq_ble\apps" (https://github.com/sparkfun/AmbiqSuiteS … dtest_datc) and tried to integrate into the Example8_BLE_LED. However, the Sparkfun Apollo3 Boards library in the Arduino IDE has an older version of AmbiqSuiteSDK which doesn’t support the example profile prodtest_datc.

My idea is

  1. Manually update AmbiqSuiteSDK 2.0.0 to Sparkfun Apollo3 Boards library in the Arduino IDE folder.

  2. Create Makefiles for the newly released header files (AmbiqSuiteSDK 2.0.0) in the Arduino sketch folder.

What would Sparkfun suggest? Or when would the Sparkfun Apollo3 Boards library be updated?

Are you sure about why “prodtest_datc” does not work? The Arduino core was recently based on AmbiqSuite SDK 2.2.0 and will soon be based on 2.4.2

You may want to check out our mirrored version of the AmbiqSuite SDK which already has our BSPs included as submodules:

https://github.com/sparkfun/AmbiqSuiteSDK

https://github.com/sparkfun/AmbiqSuiteSDK/branches

Which version of the Arduino core are you using? You can find this out in the Arduino library manager.

Hi, liquid.soulder, thanks for your reply. Yes, I think I had downloaded the version from Ambiq directly in this page (https://learn.sparkfun.com/tutorials/us … hain-setup). And I’m using Arduino 1.8.12 with Sparkfun Arduino core version 1.0.30.

I downloaded the Sparkfun Ambiq version (https://github.com/sparkfun/AmbiqSuiteSDK). I tried to import the “prodtest_dats” this time and replace nus_api and nus_main in the Example8_BLE_LED example. Also, I replaced the missing files according to the error that appeared after each compile. Still, the same error occurred saying that numerous variables are undefined. This is the same situation when I was using the SDK from Ambiq Micro. I can find some of the missing variables from other header files, but it seems to take an infinite time to find all the dependent files.

I found this post (viewtopic.php?f=169&t=52793) helpful. @paulvha has integrated “amdtp” with Example8_BLE_LED which matches my purpose.

Still, why would so many missing files and undefined variables appear when I just replace nus_api and nus_main with the examples from https://github.com/sparkfun/AmbiqSuiteS … q_ble/apps to Example8_BLE_LED?