Skip to content

Instantly share code, notes, and snippets.

@x-magic
Last active June 19, 2024 03:04
Show Gist options
  • Save x-magic/65a10044cd0ab70a1025e4ec83c5e201 to your computer and use it in GitHub Desktop.
Save x-magic/65a10044cd0ab70a1025e4ec83c5e201 to your computer and use it in GitHub Desktop.
Pico SDK board definition for 无名科技 Nologo RP2040 USB 4MB/16MB
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
* Copyright (c) 2024 Bill Gong <b@billgong.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
//------------------------------------------------------------------------------------------
// Board definition for the NoLogo RP2040 USB 16MB
#ifndef _BOARDS_NOLOGO_RP2040_USB_16MB_H
#define _BOARDS_NOLOGO_RP2040_USB_16MB_H
// For board detection
#define NOLOGO_RP2040_USB_16MB
// --- UART ---
#ifndef PICO_DEFAULT_UART
#define PICO_DEFAULT_UART 0
#endif
#ifndef PICO_DEFAULT_UART_TX_PIN
#define PICO_DEFAULT_UART_TX_PIN 0
#endif
#ifndef PICO_DEFAULT_UART_RX_PIN
#define PICO_DEFAULT_UART_RX_PIN 1
#endif
// --- WS2812 ---
#ifndef PICO_DEFAULT_WS2812_PIN
#define PICO_DEFAULT_WS2812_PIN 22
#endif
// --- I2C ---
#ifndef PICO_DEFAULT_I2C
#define PICO_DEFAULT_I2C 1
#endif
#ifndef PICO_DEFAULT_I2C_SDA_PIN
#define PICO_DEFAULT_I2C_SDA_PIN 16
#endif
#ifndef PICO_DEFAULT_I2C_SCL_PIN
#define PICO_DEFAULT_I2C_SCL_PIN 17
#endif
// --- FLASH ---
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
#ifndef PICO_FLASH_SPI_CLKDIV
#define PICO_FLASH_SPI_CLKDIV 2
#endif
#ifndef PICO_FLASH_SIZE_BYTES
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
#endif
// All boards have B1 RP2040
#ifndef PICO_RP2040_B0_SUPPORTED
#define PICO_RP2040_B0_SUPPORTED 0
#endif
#endif
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
* Copyright (c) 2024 Bill Gong <b@billgong.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
//------------------------------------------------------------------------------------------
// Board definition for the NoLogo RP2040 USB 4MB
#ifndef _BOARDS_NOLOGO_RP2040_USB_4MB_H
#define _BOARDS_NOLOGO_RP2040_USB_4MB_H
// For board detection
#define NOLOGO_RP2040_USB_4MB
// --- UART ---
#ifndef PICO_DEFAULT_UART
#define PICO_DEFAULT_UART 0
#endif
#ifndef PICO_DEFAULT_UART_TX_PIN
#define PICO_DEFAULT_UART_TX_PIN 0
#endif
#ifndef PICO_DEFAULT_UART_RX_PIN
#define PICO_DEFAULT_UART_RX_PIN 1
#endif
// --- WS2812 ---
#ifndef PICO_DEFAULT_WS2812_PIN
#define PICO_DEFAULT_WS2812_PIN 22
#endif
// --- I2C ---
#ifndef PICO_DEFAULT_I2C
#define PICO_DEFAULT_I2C 1
#endif
#ifndef PICO_DEFAULT_I2C_SDA_PIN
#define PICO_DEFAULT_I2C_SDA_PIN 16
#endif
#ifndef PICO_DEFAULT_I2C_SCL_PIN
#define PICO_DEFAULT_I2C_SCL_PIN 17
#endif
// --- FLASH ---
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
#ifndef PICO_FLASH_SPI_CLKDIV
#define PICO_FLASH_SPI_CLKDIV 2
#endif
#ifndef PICO_FLASH_SIZE_BYTES
#define PICO_FLASH_SIZE_BYTES (4 * 1024 * 1024)
#endif
// All boards have B1 RP2040
#ifndef PICO_RP2040_B0_SUPPORTED
#define PICO_RP2040_B0_SUPPORTED 0
#endif
#endif
@x-magic
Copy link
Author

x-magic commented Jun 19, 2024

Pico SDK board definition for 无名科技 Nologo RP2040 USB 4MB/16MB

It seems this board is readily available on:

  • AliExpress as MINI USB RP2040 Development Board Modules for Raspberry Pi Dual Core
  • Taobao as 树莓派迷你开发板USB RP2040开发板 raspberry pi PICO双核RP2040

Mainly features the following components:

  • An on-board PCB USB plug
  • A Winbond W25Q32JVIQ SPI flash (at least for 4MB variant)
  • Pads for GPIO0 to GPIO15 and GPIO18 to GPIO29
  • A standard I2C via a JST SH-4 (STEMMA QT/Qwiic) male connector on GPIO16 (SDA) and GPIO17 (SCL)
  • A WBS2812 RGB LED with DIN on GPIO22 (compatible with WS2812)

Just like their company name, they don't have a logo so makes it practically impossible to find documentation. And this particular board has no official documentation anyway, not even pinouts. (then why still put OSHW logo on the back!?)

I got this mainly because it's cheap on AliExpress and wanting it to run Pico Keys. Turns out this board works just fine with Pico Keys as long as the board definition is correct, doesn't even need -DENABLE_DELAYED_BOOT=1 to make the RGB LED work

cd pico-fido
mkdir build && cd build
cmake .. -DPICO_BOARD_HEADER_DIRS=/path/to/board_definitions -DPICO_BOARD=nologo_rp2040_usb_4mb -DUSB_VID=0x1050 -DUSB_PID=0x0407
make -j4

So here you go...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment