There is a sense that things are right in the world when things are just like they should be. One such instance is declaring an Arduino board that has not been done so yet.
Fortunately, the board is fairly similar to another board, so my work was minimal. But here is what I had to do:
Add a new JSON file for the board:
C:\Users\CorrLabs\.platformio\platforms\espressif32\boards\lolin_c3_pico.json
In this file I had to update some values like name and variant. Also, I double-checked the board hardware IDs, CPU, flash, and upload settings.
The variant name is used to find the additional files used by these boards. In my case, it is just one file, pins_arduino.h, which I added here:
C:\Users\CorrLabs\.platformio\packages\framework-arduinoespressif32\variants\lolin_c3_pico\pins_arduino.h
Note the folder name matches the variant name from the JSON file before. The data for that file had to be verified by looking at the published specifications for the board.
Source:
https://gist.github.com/mcorrigan/1aec03bd57453a409494d585cb142e6d
Notes:
https://docs.platformio.org/en/latest/platforms/creating_board.html
https://docs.espressif.com/projects/esp-idf/en/v4.3/esp32c3/hw-reference/chip-series-comparison.html
https://www.espressif.com/sites/default/files/documentation/esp32-c3_datasheet_en.pdf (ESP32-C3FH4)
https://www.wemos.cc/en/latest/c3/c3_pico.html (pins)
https://mischianti.org/2023/06/12/wemos-lolin-esp32-c3-pico-high-resolution-pinout-and-specs/
No comments:
Post a Comment