-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add Gravitech Cucumber R board definition (updated) #4131
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
Conversation
…tpython into add_gravitech_cucumber_r
…tpython into add_gravitech_cucumber_r
tannewt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
board.h has moved. I think you'll need to add a board_deinit as well.
| * THE SOFTWARE. | ||
| */ | ||
|
|
||
| #include "boards/board.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #include "boards/board.h" | |
| #include "supervisor/board.h" |
|
I had requested this PID for the Cucumber RIS variant. Its basically the same except for added onboard sensors (All I2C connected). The M variants use the WROOM moulde, requiring a differing sdkconfig. (No PSRAM) |
|
I'd do different boards for WROOM vs WROVER and sensors vs no sensors. The saola is an example of the first and the feather nrf regular vs sense are of the second. I wouldn't do separate versions for the antenna. |
Thanks, what I thought as well. In that case I'll ask for some more PIDs from espressif for the variants. |
|
I have received new PIDs from Espressif for the various cucumber variants. These should be used for the non-sensor R variants (R and RI) These are for the non-sensor M variants (M and MI) These are for the sensor M variants. (MS and MIS) The original PIDS should be used for the R sensor variants (RS and RIS) |
|
Is this PR moving forward? Not to rush it but I'm using my version for testing as the board has connectors for USB native and USB serial and onboard I2c devices. All good for testing without needing a ton of wiring and bits that fall off when I move it around. |
|
Hi @skieast , I only have a Cucumber M to test with. Happy to make the amendments to the PR to get it building. Though don't have the R boards to confirm/test with. |
I have the RIS board so can test the R variants with that. The only difference should be the PSRAM on the R variants. |
|
I have R[I] (and R[I]S), and can test that specifically. I'd expect the build to be identical except for PID and board name. Technically, the R[I] (and M[I]) don't require designated I2C, but the pre-soldered header pins and pinout doc are color-coded for 40/41 the same as the RIS. Saola builds of course run fine on Cucumber, just lack the conveniences like LED, SDA, and SCL. |
|
I believe in my build I disable the check for pull-ups in the i2c as the cucumber doesn't have any on the internal bus. At least I was getting errors when creating an instance. Will have to check again when I have a chance |
|
Pins 40 and 41 are also JTAG pins, so they're set to never reset for the port if DEBUG || JTAG, and trying to init I2C gets |
The pull-up check is meant to check for external pullups. Adafruit microcontroller boards don't generally have pullups unless there are on-board I2C sensors. All our breakouts do have sensors. So we don't disable pull-up detection, and I would not expect you to either, since the typical external I2C breakout has pull-ups. |
|
I've only done this on my internal build as its otherwise painful to use the sensors on the board. Would be far better if gravitech had pullups on the internal (on board) i2c bus. when i have more time maybe i'll just bodge on some resistors. |
|
With non-DEBUG build, this RS seems fine reading the sensors with nothing external: |
|
Hi folks, would you like to keep working on this? It sounds like there might be some pin cleanup needed, but otherwise it's close. |
|
The Cucumber boards are basically Saola boards, with different form factor, an LED, and second USB-C connector (and sensors on the "S" versions). Saola firmware runs just fine on these boards. In this PR, are we doing 1 board (R/RS), 2 boards (R and RS, or M/MS and R/RS), or all 4 boards (M, MS, R , RS)? If R & RS are combined, I think it's OK as is to define I'm not sure why Are there any other Adafruit pin naming conventions (like There are other differences from Saola R in |
If there is a single-color LED, definitely add
The ESP32-S2 boards are not necessarily consistent about their silkscreen names, so this does nnot need to be a goal. |
@skieast can you commit the M/MS version? Are there material differences besides in |
I don't have an M board to test so my version for that board is theoretical. |
|
I don't have an M board either. @cotdp are you still around? If not, maybe we stick with the R-variants for this PR. |
|
I'm unavailable next week, but if there's no progress on this, I should be able to get all four boards sorted hopefully the week after. We should be able to test and release the R boards. The M boards could be held for someone with an M board to test (or put out there to see if any issues arise - they should be minor). |
|
Closing in favor of #5097 |


This PR replaces my earlier one from August, #3349
Adding the board definition for Gravitech Cucumber R ESP32-S2 board (https://www.gravitech.us/curesdebo.html).