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

Can RP2040 build environment be supported? #329

Closed
RobTillaart opened this issue Oct 1, 2022 · 10 comments
Closed

Can RP2040 build environment be supported? #329

RobTillaart opened this issue Oct 1, 2022 · 10 comments

Comments

@RobTillaart
Copy link

Is it possible to support the RP2040 build environment?

Would be appreciated

PR - RobTillaart/MCP_DAC#16

@RobTillaart
Copy link
Author

RobTillaart commented Oct 1, 2022

Found how to do it.

.arduino-ci.yml

platforms:
  rpipico:
    board: rp2040:rp2040:rpipico
    package: rp2040:rp2040
    gcc:
      features:
      defines:
        - ARDUINO_ARCH_RP2040
      warnings:
      flags:

packages:
  rp2040:rp2040:
    url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json


compile:
  # Choosing to run compilation tests on 2 different Arduino platforms
  platforms:
    - uno
    # - due
    # - zero
    # - leonardo
    # - m4
    # - esp32
    # - esp8266
    # - mega2560
    - rpipico

@RobTillaart
Copy link
Author

Tested and it works

@ianfixes
Copy link
Collaborator

If this is a popular board, I wouldn't mind adding it to https://github.com/Arduino-CI/arduino_ci/blob/master/misc/default.yml

@RobTillaart
Copy link
Author

Think it is pretty popular as there are several devboards and variations.
For me the yml file is also a 'guide' how other boards can be added, so no need to add it to default.yml imho.

It would be interesting to know what are the top 15 boards used.

@ianfixes
Copy link
Collaborator

My high level goal isn't necessarily to represent the most popular board, just to have enough boards defined that any given library developer will find at least one working arduino_ci platform for their library, out of the box.

@RobTillaart
Copy link
Author

Imho you have enough boards supported. The ones I could think of

  • AT TINY series (most interesting as these have very little RAM etc)
  • NANO BLE
  • RP2040
  • Teensy

That said, when compiling the examples, is it possible to get info about sketch size and RAM usage?

When developing libraries I often want to know if code increases or decreases and by how much.
This is mostly an AVR thingy as these are the most limited wrt RAM.
( no this is not a request for a new feature, as I investigate this locally before pushing code )

@fpistm
Copy link

fpistm commented Jan 21, 2023

Hi, I will test with STM32.
We had lot of librairies.

@RobTillaart
Copy link
Author

Hi, I will test with STM32. We had lot of librairies.

STM32 +1

@hlovdal
Copy link
Contributor

hlovdal commented Jan 21, 2023

@RobTillaart

when compiling the examples, is it possible to get info about sketch size and RAM usage?

This is my idea with the ARDUINO_CI_POST_UNIT_TEST_RUN_SCRIPT hook script that enables you to for instance capture build results by running avr-size and append the result to a csv file/send an email/push a chat message/etc (or maybe even just print to the screen).

This is present on my scripts branch pending a merge of #320.

@ianfixes
Copy link
Collaborator

@hlovdal on my local branch I've started reporting the "free bytes" (in the message at the end of each compilation step) to the test output, but I can see that we're getting to the point where machine-readable output is necessary.

Can you open an issue to track this idea? It sounds like you'd like a report of things that are more informational than pass/fail. Sizes and compilation times are 2 things that jump out at me there.

Regarding your issue about the hooks, I think it's a great idea! My first step for it is figuring out how to do it in a generic way. Happy to continue the discussion on that other issue

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

4 participants