nigelb / platform-apollo3blue

AmbiqMicro Apollo 3 Blue: development platform for PlatformIO
Apache License 2.0
30 stars 12 forks source link

Missing headers for Edge & Edge 2 with Ambiq #49

Closed Almighty-Alpaca closed 1 year ago

Almighty-Alpaca commented 1 year ago

The board configs for both the Edge and the Edge2 board have an empty string as the second variant (in contrast to all other boards):

"ambiqsdk-sfe": {
    "variant": [
        "boards_sfe",
        ""
    ],
    "extra_flags": "edge",
    "variant_lib_src_filter": ""
}

This causes PlatformIO to not include this directory in the header search path. Changing "" to edge fixes this, but leads to the following error during compilation:

*** [.pio\build\SparkFun_Edge_Development_Board\program.exe] Implicit dependency `<USER>\.platformio\platforms\apollo3blue\builder\frameworks\edge' not found, needed by target `.pio\build\SparkFun_Edge_Development_Board\program.exe'.

Is there any way to fix this?

I'm using the following config:

[env:SparkFun_Edge_Development_Board]
platform = apollo3blue
board = SparkFun_Edge_Development_Board
framework = ambiqsdk-sfe
platform_packages = framework-ambiqsuitesdkapollo3-sfe@https://github.com/nigelb/AmbiqSuiteSDK#2.5.1-sfe
nigelb commented 1 year ago

Hi @Almighty-Alpaca,

I fixed the board definitions and I have successfully compiled an AmbiqSDK project with the board set to SparkFun_Edge_2_Development_Board.

It would seem that my commit automatically closed this issue. Let me know how you go with the update.

Nigel.