Hello,
I’m using platformio, and I think it is great… but I’m still learning to use it.
I’m trying to setup an ambiq apollo3 env… My current project already works great with esp32 in idf mode.
My project is inside src/ folder, and I have a bunch of libraries in lib/ folder. For example, lib/bluetooth…
The libraries are not from the registry, but directly in the lib folder.
lib/bluetooth/library.json is using “framework”: “" and “platform”: "” (because it is generic)
WOrks great with esp32.
For ambiq, it’s a big more complex as it is not supported out of the box…
I had to clone into ~/.platformio/package/ the github framework:
git clone --recurse-submodules --branch 2.5.1-sfe https://github.com/sparkfun/AmbiqSuiteSDK.git framework-ambiqsuitesdkapollo3-sfe@2.5.1 --depth=1
And added a package.json with this inside:
{
"name": "framework-ambiqsuitesdkapollo3-sfe",
"description": "SparkFun's AmbiqSuiteSDK repository.",
"version": "2.5.1",
"url": "https://github.com/sparkfun/AmbiqSuiteSDK"
}
So far so good. Updated my platformio.ini to add a new env, declared:
platform = apollo3blue
framework = ambiqsdk-sfe
lib_deps = bluetooth
(and many other, exact same lib_deps as the esp32 env)
Now I launch pio run… everything is downloaded and setup properly… and when it tries to compile my application in src, it says it cannot find my bluetooth.h header that is in lib/bluetooth/include…
I’m using the default ldf value (chain, soft)
And it says also “No dependencies” when scanning…
I’ve made sure that there is no incompatible platform and framework, tried all possible values for ldf, but still nothing. It is ignoring my libraries. WHY? How can I debug that?(how to know what lib was checked, and why it was rejected etc). Currently I have no clue, and tracing the code quickly let me in Scons opaque code
Processing Ambiq_exp (board: SparkFun_Artemis_Development_Kit; platform: apollo3blue; framework: ambiqsdk-sfe) ------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/apollo3blue/SparkFun_Artemis_Development_Kit.html
PLATFORM: Apollo 3 Blue (0.0.2+sha.b26fc48) > SparkFun Artemis Development Kit
HARDWARE: AMA3B1KK 48MHz, 384KB RAM, 960KB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-ambiqsuitesdkapollo3-sfe @ 2.5.1
- toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
No dependencies
I know that it is not a full source project I give you here, but any hint may help me.
I will try to setup a new project with a simple lib and application at least to be able to send it here to reproduce.
Thanks!