Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best Practice for Platformio.ini #19

Open
savejeff opened this issue Dec 26, 2022 · 2 comments
Open

Best Practice for Platformio.ini #19

savejeff opened this issue Dec 26, 2022 · 2 comments

Comments

@savejeff
Copy link

savejeff commented Dec 26, 2022

Merry Christmas,

I was just adding Pico W support to my project and was going over my config
currently, this is how it looks like:


[env:BOARD_RP2040_PICO]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
board = pico
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m

about the platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git. I added this when there were the malloc problems with the newlib code and this gave me the latest release from earlephilhower that fixed the problem. Now that this is also published here, does it still make a difference? On average, how much does the platformio release lag behind the quite regular releases of earlephilhower? (maybe more a question for @earlephilhower)
UPDATE: i just switched to the earlephilhower package and the wifi class changes in some places. so i gues with respect to wifi code, its best to keep using the platform_package from earlephilhower to get the latest code

another small this: it took me some time to find the board name "rpipicow". i think it would be good to update/extent/create a documentation either on https://docs.platformio.org/ or on https://arduino-pico.readthedocs.io/.

I don't know if it's just me or is the Mbed core dead or at least very very slowly kept up to date.
When comparing the board list on the mbed and earlephilhower give a pretty strong indication.
I know about the whole discussion as I followed it from the start, but at some point, i think it would be best for the community to just switch to the more reliable and better supported core (even if it's not the official)
Are there considerations on replacing the official mbed core with the earlephilhower under https://docs.platformio.org/en/latest/platforms/raspberrypi.html ?

As i found myself looking on quite a lot of different information sources: For somebody finding this searching for Infos, here are the current links I use to find infos and my current build config


; platform RP2040 / Raspberry Pi Pico config
; Arduino-Pico Wiki: https://arduino-pico.readthedocs.io/en/latest/index.html
; https://arduino-pico.readthedocs.io/en/latest/platformio.html#what-is-platformio
; https://arduino-pico.readthedocs.io/en/latest/platformio.html#selecting-the-new-core
; Earlephilhower Arduino Core: https://github.com/earlephilhower/arduino-pico
; PlatformIO Core for Alt Core: https://github.com/maxgerhardt/platform-raspberrypi
; Board List: https://github.com/maxgerhardt/platform-raspberrypi/tree/develop/boards
[env:BOARD_RP2040_PICO]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
board = pico
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m

build_flags = 

	-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS ; Enable Exceptions
	-fstack-protector ; Enable Stack Protector
	;-DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI ; Enable RTTI

	;-DUSE_TINYUSB ; Adafruit TinyUSB
	;-DPIO_FRAMEWORK_ARDUINO_NO_USB ; No USB stack
	
	;-DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6 ; IPv6

@Riffer
Copy link

Riffer commented Apr 8, 2023

I just found out that the installation by package_platform is now deprecated.

You will find the best starting point here:
https://arduino-pico.readthedocs.io/en/latest/platformio.html

@savejeff
Copy link
Author

i dont think you are correct there.

i you done use the platform_packages, u will get an pretty old version of the arduino pico core as the last release from max gerhard is over six month. it does not support wifi etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants