Skip to content

new board :) πŸπŸ‰πŸ‡πŸ‹β€πŸŸ©πŸ #2510

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

Closed
wants to merge 1 commit into from

Conversation

ladyada
Copy link

@ladyada ladyada commented Jun 8, 2025

This is a new board "Fruit Jam" from adafruit which will have some pico-sdk examples - unreleased but tested against rev C hardware

@lurch
Copy link
Contributor

lurch commented Jun 9, 2025

I guess this supersedes #2363 ?

@@ -0,0 +1,121 @@
/*
* Copyright (c) 2024 FRUITJAM Board
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably this should be a company-name, rather than a product-name? πŸ€”

// SHOULD ONLY CONSIST OF PREPROCESSOR DIRECTIVES
// -----------------------------------------------------

// This header may be included by other board headers as "boards/fruitjam.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ought to be "boards/adafruit_fruitjam.h"


// This header may be included by other board headers as "boards/fruitjam.h"

// pico_cmake_set PICO_PLATFORM=rp2350
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be replaced with the new-style

pico_board_cmake_set(PICO_PLATFORM, rp2350)

instead.

Comment on lines +16 to +17
#ifndef _BOARDS_FRUITJAM_H
#define _BOARDS_FRUITJAM_H
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ought to be _BOARDS_ADAFRUIT_FRUITJAM_H

#define _BOARDS_FRUITJAM_H

// For board detection
#define FRUITJAM_BOARD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ought to be ADAFRUIT_FRUITJAM


// --- UART ---
#ifndef PICO_DEFAULT_UART
#define PICO_DEFAULT_UART 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPIO 8 and 9 are UART1 TX and UART1 RX, so was this supposed to be #define PICO_DEFAULT_UART 1 ?

#define PICO_DEFAULT_SPI_RX_PIN FRUITJAM_SD_DAT0_PIN
#endif
#ifndef PICO_DEFAULT_SPI_CSN_PIN
#define PICO_DEFAULT_SPI_CSN_PIN FRUITJAM_SD_CS_PIN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FRUITJAM_SD_CS_PIN is set to 39, but according to Table 3 in https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf GPIO 39 is SPI0 TX. (If this is a software-controlled CS pin that's totally fine; but in that case you shouldn't define PICO_DEFAULT_SPI_CSN_PIN.)

#define PICO_FLASH_SPI_CLKDIV 2
#endif

// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (16 * 1024 * 1024)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be replaced with the new-style

pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (16 * 1024 * 1024))

#endif

// --- RP2350 specific settings ---
// pico_cmake_set_default PICO_RP2350_A2_SUPPORTED = 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be replaced with the new-style

pico_board_cmake_set_default(PICO_RP2350_A2_SUPPORTED, 1)

@lurch
Copy link
Contributor

lurch commented Jun 9, 2025

This file is also missing a #define PICO_RP2350A 0 (the 0 indicates that you're using a RP2350B chip).

FYI these errors were all spotted by https://github.com/raspberrypi/pico-sdk/blob/develop/tools/check_board_header.py

@ladyada
Copy link
Author

ladyada commented Jun 9, 2025

woops i didnt realize we had a draft, dan will update his draft and incorporate all notes :)

@ladyada ladyada closed this Jun 9, 2025
dhalbert added a commit to adafruit/pico-sdk that referenced this pull request Jun 17, 2025
kilograham pushed a commit that referenced this pull request Jun 18, 2025
* Adafruit Fruit Jam board

* add Adafruit Fruit Jam specific pins

* fix pin typos and errors

* update to Fruit Jam rev D, address #2510 review

* add additional PICO_DEFAULT_* pins

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

Successfully merging this pull request may close these issues.

2 participants