Hi, I have tried working with a custom package by forking and adding as
platform_packages as below:
[env:nrf52_dk] platform = nordicnrf52 platform_packages = framework-arduinoadafruitnrf52 @ https://github.com/sylvioalves/Adafruit_nRF52_Arduino.git board = my_custom_board framework = arduino debug_tool = jlink upload_protocol = jlink
However, it does not work, even adding the
packages.json file into that branch it still crashes with the error below:
File "/home/sylvio/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 280: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/email@example.com/builder/frameworks/arduino/adafruit.py", line 38: assert isdir(CORE_DIR)
The other issue is that setting a specific branch
..".git#branch" won’t work.
Is there a way to configure platformio.ini to use external/local folder instead of having it (copied) at ./platformio/packages?
- Create a workspace in VSCode
- Add a new folder with a sample project: ex: /home/user/arduino/hello_world
- Add a new custom packages into VSCode from: /home/user/arduino/custom_package
- Configure platformio.ini to allow my custom package to run in the path above so that I can develop in it at its original folder path. Any modifications on this custom packages folder can be tracked and tested in runtime (with .git structure configured).
Any code reference would be good.