From 1c5fa3c042d83031f7b932b669e30de90bfcde78 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Sat, 29 Jul 2023 23:31:03 +0800 Subject: [PATCH 1/9] fwk_keyboard: Add new rp2040 based board Signed-off-by: Daniel Schaefer --- ports/raspberrypi/boards/fwk_keyboard/board.c | 30 +++++++++++++++++++ .../boards/fwk_keyboard/mpconfigboard.h | 30 +++++++++++++++++++ .../boards/fwk_keyboard/mpconfigboard.mk | 13 ++++++++ .../fwk_keyboard/pico-sdk-configboard.h | 4 +++ ports/raspberrypi/boards/fwk_keyboard/pins.c | 24 +++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 ports/raspberrypi/boards/fwk_keyboard/board.c create mode 100644 ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h create mode 100644 ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk create mode 100644 ports/raspberrypi/boards/fwk_keyboard/pico-sdk-configboard.h create mode 100644 ports/raspberrypi/boards/fwk_keyboard/pins.c diff --git a/ports/raspberrypi/boards/fwk_keyboard/board.c b/ports/raspberrypi/boards/fwk_keyboard/board.c new file mode 100644 index 000000000000..03b235d15f1e --- /dev/null +++ b/ports/raspberrypi/boards/fwk_keyboard/board.c @@ -0,0 +1,30 @@ +/* + * This file is part of the MicroPython project, http://micropython.org/ + * + * The MIT License (MIT) + * + * Copyright (c) 2021 Scott Shawcroft for Adafruit Industries + * Copyright (c) 2023 Daniel Schaefer for Framework Computer Inc + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +#include "supervisor/board.h" + +// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here. diff --git a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h new file mode 100644 index 000000000000..7c095c15d7ff --- /dev/null +++ b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h @@ -0,0 +1,30 @@ +#define MICROPY_HW_BOARD_NAME "Framework Laptop 16 Keyboard (CircuitPython)" +#define MICROPY_HW_MCU_NAME "rp2040" + +//#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE) + +// External flash W25Q80DV +#define EXTERNAL_FLASH_QSPI_DUAL +#if QSPI_FLASH_FILESYSTEM +//#define MICROPY_QSPI_DATA0 NRF_GPIO_PIN_MAP(1, 00) +//#define MICROPY_QSPI_DATA1 NRF_GPIO_PIN_MAP(0, 21) +//#define MICROPY_QSPI_DATA2 NRF_GPIO_PIN_MAP(0, 22) +//#define MICROPY_QSPI_DATA3 NRF_GPIO_PIN_MAP(0, 23) +//#define MICROPY_QSPI_SCK NRF_GPIO_PIN_MAP(0, 19) +//#define MICROPY_QSPI_CS NRF_GPIO_PIN_MAP(0, 20) +#endif + +#define CIRCUITPY_DRIVE_LABEL "CIRCUITPY" +#define CIRCUITPY_BOOT_COUNTER 1 +#define FLASH_SIZE (0x100000) +#define FLASH_PAGE_SIZE (0x4000) + +#define BOARD_HAS_CRYSTAL 1 + +#define CIRCUITPY_BOARD_I2C (1) +#define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO27, .sda = &pin_GPIO26}} +#define DEFAULT_I2C_BUS_SCL (&pin_GPIO27) +#define DEFAULT_I2C_BUS_SDA (&pin_GPIO26) +// pin_GPIO0 sleep +// pin_GPIO28 INTB +// pin_GPIO29 SDB diff --git a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk new file mode 100644 index 000000000000..ef896eb31ddd --- /dev/null +++ b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk @@ -0,0 +1,13 @@ +USB_VID = 0x32AC +USB_PID = 0x0013 +USB_PRODUCT = "Ledmatrix Laptop 16 Keyboard (CircuitPython)" +USB_MANUFACTURER = "Framework Computer Inc" + +CHIP_VARIANT = RP2040 +CHIP_FAMILY = rp2 + +QSPI_FLASH_FILESYSTEM = 1 +#EXTERNAL_FLASH_DEVICE_COUNT = 1 +EXTERNAL_FLASH_DEVICES = "W25Q80DV" + +FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IS31FL3731 diff --git a/ports/raspberrypi/boards/fwk_keyboard/pico-sdk-configboard.h b/ports/raspberrypi/boards/fwk_keyboard/pico-sdk-configboard.h new file mode 100644 index 000000000000..a41131dd22b7 --- /dev/null +++ b/ports/raspberrypi/boards/fwk_keyboard/pico-sdk-configboard.h @@ -0,0 +1,4 @@ +// Put board-specific pico-sdk definitions here. This file must exist. + +// Allow extra time for xosc to start. +#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 diff --git a/ports/raspberrypi/boards/fwk_keyboard/pins.c b/ports/raspberrypi/boards/fwk_keyboard/pins.c new file mode 100644 index 000000000000..bc12647e4c61 --- /dev/null +++ b/ports/raspberrypi/boards/fwk_keyboard/pins.c @@ -0,0 +1,24 @@ +#include "shared-bindings/board/__init__.h" + +STATIC const mp_rom_map_elem_t board_module_globals_table[] = { + CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS + + // SLEEP# + { MP_ROM_QSTR(MP_QSTR_GP0), MP_ROM_PTR(&pin_GPIO0) }, + // INTB + { MP_ROM_QSTR(MP_QSTR_GP28), MP_ROM_PTR(&pin_GPIO28) }, + // SDB + { MP_ROM_QSTR(MP_QSTR_GP29), MP_ROM_PTR(&pin_GPIO29) }, + + // PWM + { MP_ROM_QSTR(MP_QSTR_GP25), MP_ROM_PTR(&pin_GPIO25) }, + // Capslock + { MP_ROM_QSTR(MP_QSTR_GP24), MP_ROM_PTR(&pin_GPIO24) }, + + // LED Controller I2C + { MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO26) }, + { MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_GPIO27) }, + + { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) }, +}; +MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table); From 6f4d131fc9461d6843653ff496fcaed64118efa2 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 2 Aug 2023 12:06:47 +0800 Subject: [PATCH 2/9] raspberrypi: Allow build without audio Signed-off-by: Daniel Schaefer --- ports/raspberrypi/supervisor/internal_flash.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/raspberrypi/supervisor/internal_flash.c b/ports/raspberrypi/supervisor/internal_flash.c index 42223b29e3df..b372e02a3fad 100644 --- a/ports/raspberrypi/supervisor/internal_flash.c +++ b/ports/raspberrypi/supervisor/internal_flash.c @@ -99,11 +99,15 @@ void port_internal_flash_flush(void) { // Make sure we don't have an interrupt while we do flash operations. common_hal_mcu_disable_interrupts(); // and audio DMA must be paused as well +#if CIRCUITPY_AUDIOCORE uint32_t channel_mask = audio_dma_pause_all(); +#endif flash_range_erase(CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba, SECTOR_SIZE); flash_range_program(CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba, _cache, SECTOR_SIZE); _cache_lba = NO_CACHE; +#if CIRCUITPY_AUDIOCORE audio_dma_unpause_mask(channel_mask); +#endif common_hal_mcu_enable_interrupts(); } From 74e9ee1d14c18869c935015b2743c929becb0285 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 2 Aug 2023 12:07:04 +0800 Subject: [PATCH 3/9] boards/fwk_keyboard: Reduce firmware size to below 500KB Memory region Used Size Region Size %age Used FLASH_FIRMWARE: 472304 B 512 KB 90.08% RAM: 45952 B 256 KB 17.53% SCRATCH_Y: 0 GB 4 KB 0.00% SCRATCH_X: 2 KB 4 KB 50.00% Signed-off-by: Daniel Schaefer --- .../boards/fwk_keyboard/mpconfigboard.h | 20 -------- .../boards/fwk_keyboard/mpconfigboard.mk | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 20 deletions(-) diff --git a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h index 7c095c15d7ff..1b1eb9928cd3 100644 --- a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h +++ b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h @@ -1,26 +1,6 @@ #define MICROPY_HW_BOARD_NAME "Framework Laptop 16 Keyboard (CircuitPython)" #define MICROPY_HW_MCU_NAME "rp2040" -//#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE) - -// External flash W25Q80DV -#define EXTERNAL_FLASH_QSPI_DUAL -#if QSPI_FLASH_FILESYSTEM -//#define MICROPY_QSPI_DATA0 NRF_GPIO_PIN_MAP(1, 00) -//#define MICROPY_QSPI_DATA1 NRF_GPIO_PIN_MAP(0, 21) -//#define MICROPY_QSPI_DATA2 NRF_GPIO_PIN_MAP(0, 22) -//#define MICROPY_QSPI_DATA3 NRF_GPIO_PIN_MAP(0, 23) -//#define MICROPY_QSPI_SCK NRF_GPIO_PIN_MAP(0, 19) -//#define MICROPY_QSPI_CS NRF_GPIO_PIN_MAP(0, 20) -#endif - -#define CIRCUITPY_DRIVE_LABEL "CIRCUITPY" -#define CIRCUITPY_BOOT_COUNTER 1 -#define FLASH_SIZE (0x100000) -#define FLASH_PAGE_SIZE (0x4000) - -#define BOARD_HAS_CRYSTAL 1 - #define CIRCUITPY_BOARD_I2C (1) #define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO27, .sda = &pin_GPIO26}} #define DEFAULT_I2C_BUS_SCL (&pin_GPIO27) diff --git a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk index ef896eb31ddd..c52b53698d4a 100644 --- a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk +++ b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk @@ -11,3 +11,54 @@ QSPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = "W25Q80DV" FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IS31FL3731 + +# Flash is only 1M, reduce firmware to half, so there's space for the CIRCUITPY drive +# Must be accompanied by a linker script change +CFLAGS += -DCIRCUITPY_FIRMWARE_SIZE='(512 * 1024)' + +#CIRCUITPY_DISPLAULAB_HAS_USER_MODULEYIO = 1 +CIRCUITPY_TOUCHIO = 1 +#CIRCUITPY_PWMIO = 1 + +# Boards hav limited IO, only +# - IS31FL3741/IS31FL3731 LED matrix +# - USB 2.0 +# - PWM backlight +# - Capslock LED +#CIRCUITPY_ANALOGIO = 0 # TODO: Might want this +CIRCUITPY_AUDIOBUSIO = 0 +CIRCUITPY_AUDIOBUSIO_I2SOUT = 0 +CIRCUITPY_AUDIOCORE = 0 +CIRCUITPY_AUDIOIO = 0 +CIRCUITPY_AUDIOMIXER = 0 +CIRCUITPY_AUDIOMP3 = 0 +CIRCUITPY_AUDIOPWMIO = 0 +CIRCUITPY_ROTARYIO = 0 +CIRCUITPY_RAINBOWIO = 0 +CIRCUITPY_BLEIO_HCI=0 +CIRCUITPY_BLEIO=0 +CIRCUITPY_PS2IO = 0 + +CIRCUITPY_MSGPACK = 0 +CIRCUITPY_RTC = 1 +CIRCUITPY_FRAMEBUFFERIO = 0 # TODO: Might want this +CIRCUITPY_DISPLAYIO = 0 +CIRCUITPY_TERMINALIO = 0 +CIRCUITPY_VECTORIO = 0 +CIRCUITPY_ULAB = 0 # Like numpy for circuitpython +CIRCUITPY_USB_MIDI=0 + +#CIRCUITPY_BITBANG_APA102 = 0 +#CIRCUITPY_BITBANGIO = 1 # Need for I2C +#CIRCUITPY_BITMAPTOOLS = 0 +#CIRCUITPY_BUSDEVICE = 1 # TODO: What's this? +#CIRCUITPY_FREQUENCYIO = 0 +#CIRCUITPY_I2CTARGET = 1 +#CIRCUITPY_NEOPIXEL_WRITE = 0 +#CIRCUITPY_NVM = 0 +#CIRCUITPY_PIXELBUF = 0 +#CIRCUITPY_PULSEIO = 0 +#CIRCUITPY_RGBMATRIX = 0 +#CIRCUITPY_SAMD = 0 +#CIRCUITPY_USB_HID = 0 # TODO: Might want this +#CIRCUITPY_USB_VENDOR = 0 # TODO: Might want this From 0d3541d875c9f681e31b483a751891d67d79f8b6 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 9 Aug 2023 17:20:21 +0800 Subject: [PATCH 4/9] fixup! boards/fwk_keyboard: Reduce firmware size to below 500KB --- ports/raspberrypi/boards/fwk_keyboard/link.ld | 1 + 1 file changed, 1 insertion(+) create mode 100644 ports/raspberrypi/boards/fwk_keyboard/link.ld diff --git a/ports/raspberrypi/boards/fwk_keyboard/link.ld b/ports/raspberrypi/boards/fwk_keyboard/link.ld new file mode 100644 index 000000000000..908f5daf2c92 --- /dev/null +++ b/ports/raspberrypi/boards/fwk_keyboard/link.ld @@ -0,0 +1 @@ +firmware_size = 512k; \ No newline at end of file From 4ef3c7bb63081a7873c163e7821177acb8d9b018 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 9 Aug 2023 17:21:01 +0800 Subject: [PATCH 5/9] boards/fwk_keyboard: Generic PID and name Signed-off-by: Daniel Schaefer --- ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk index c52b53698d4a..de43526f3f72 100644 --- a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk +++ b/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk @@ -1,7 +1,7 @@ USB_VID = 0x32AC -USB_PID = 0x0013 -USB_PRODUCT = "Ledmatrix Laptop 16 Keyboard (CircuitPython)" -USB_MANUFACTURER = "Framework Computer Inc" +USB_PID = 0x001F +USB_PRODUCT = "Generic Framework 16 Inputmodule" +USB_MANUFACTURER = "Framework Computer" CHIP_VARIANT = RP2040 CHIP_FAMILY = rp2 From 60bd6136d15adc35560b729c9096c3b58d0c9e61 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 9 Aug 2023 17:24:27 +0800 Subject: [PATCH 6/9] boards/framework_inputmodule: Rename to generic name Signed-off-by: Daniel Schaefer --- .../boards/{fwk_keyboard => framework_inputmodule}/board.c | 0 .../boards/{fwk_keyboard => framework_inputmodule}/link.ld | 0 .../{fwk_keyboard => framework_inputmodule}/mpconfigboard.h | 0 .../{fwk_keyboard => framework_inputmodule}/mpconfigboard.mk | 3 ++- .../pico-sdk-configboard.h | 0 .../boards/{fwk_keyboard => framework_inputmodule}/pins.c | 0 6 files changed, 2 insertions(+), 1 deletion(-) rename ports/raspberrypi/boards/{fwk_keyboard => framework_inputmodule}/board.c (100%) rename ports/raspberrypi/boards/{fwk_keyboard => framework_inputmodule}/link.ld (100%) rename ports/raspberrypi/boards/{fwk_keyboard => framework_inputmodule}/mpconfigboard.h (100%) rename ports/raspberrypi/boards/{fwk_keyboard => framework_inputmodule}/mpconfigboard.mk (92%) rename ports/raspberrypi/boards/{fwk_keyboard => framework_inputmodule}/pico-sdk-configboard.h (100%) rename ports/raspberrypi/boards/{fwk_keyboard => framework_inputmodule}/pins.c (100%) diff --git a/ports/raspberrypi/boards/fwk_keyboard/board.c b/ports/raspberrypi/boards/framework_inputmodule/board.c similarity index 100% rename from ports/raspberrypi/boards/fwk_keyboard/board.c rename to ports/raspberrypi/boards/framework_inputmodule/board.c diff --git a/ports/raspberrypi/boards/fwk_keyboard/link.ld b/ports/raspberrypi/boards/framework_inputmodule/link.ld similarity index 100% rename from ports/raspberrypi/boards/fwk_keyboard/link.ld rename to ports/raspberrypi/boards/framework_inputmodule/link.ld diff --git a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h b/ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.h similarity index 100% rename from ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.h rename to ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.h diff --git a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk b/ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk similarity index 92% rename from ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk rename to ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk index de43526f3f72..cff785f9decd 100644 --- a/ports/raspberrypi/boards/fwk_keyboard/mpconfigboard.mk +++ b/ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk @@ -10,7 +10,8 @@ QSPI_FLASH_FILESYSTEM = 1 #EXTERNAL_FLASH_DEVICE_COUNT = 1 EXTERNAL_FLASH_DEVICES = "W25Q80DV" -FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IS31FL3731 +# TODO: This is currently not in circuitpython as a frozen directory +# FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IS31FL3731 # Flash is only 1M, reduce firmware to half, so there's space for the CIRCUITPY drive # Must be accompanied by a linker script change diff --git a/ports/raspberrypi/boards/fwk_keyboard/pico-sdk-configboard.h b/ports/raspberrypi/boards/framework_inputmodule/pico-sdk-configboard.h similarity index 100% rename from ports/raspberrypi/boards/fwk_keyboard/pico-sdk-configboard.h rename to ports/raspberrypi/boards/framework_inputmodule/pico-sdk-configboard.h diff --git a/ports/raspberrypi/boards/fwk_keyboard/pins.c b/ports/raspberrypi/boards/framework_inputmodule/pins.c similarity index 100% rename from ports/raspberrypi/boards/fwk_keyboard/pins.c rename to ports/raspberrypi/boards/framework_inputmodule/pins.c From a6c653e974fc82bf471ba494b74031500c08fe1a Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 9 Aug 2023 17:31:04 +0800 Subject: [PATCH 7/9] fixup! raspberrypi: Allow build without audio --- ports/raspberrypi/supervisor/internal_flash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ports/raspberrypi/supervisor/internal_flash.c b/ports/raspberrypi/supervisor/internal_flash.c index b372e02a3fad..f5dff80d72aa 100644 --- a/ports/raspberrypi/supervisor/internal_flash.c +++ b/ports/raspberrypi/supervisor/internal_flash.c @@ -99,15 +99,15 @@ void port_internal_flash_flush(void) { // Make sure we don't have an interrupt while we do flash operations. common_hal_mcu_disable_interrupts(); // and audio DMA must be paused as well -#if CIRCUITPY_AUDIOCORE + #if CIRCUITPY_AUDIOCORE uint32_t channel_mask = audio_dma_pause_all(); -#endif + #endif flash_range_erase(CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba, SECTOR_SIZE); flash_range_program(CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba, _cache, SECTOR_SIZE); _cache_lba = NO_CACHE; -#if CIRCUITPY_AUDIOCORE + #if CIRCUITPY_AUDIOCORE audio_dma_unpause_mask(channel_mask); -#endif + #endif common_hal_mcu_enable_interrupts(); } From 0250c5837f596aad8227890dc70c18d2a318d287 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 9 Aug 2023 17:34:06 +0800 Subject: [PATCH 8/9] fixup! boards/fwk_keyboard: Reduce firmware size to below 500KB --- ports/raspberrypi/boards/framework_inputmodule/link.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/boards/framework_inputmodule/link.ld b/ports/raspberrypi/boards/framework_inputmodule/link.ld index 908f5daf2c92..fb4fb892e33f 100644 --- a/ports/raspberrypi/boards/framework_inputmodule/link.ld +++ b/ports/raspberrypi/boards/framework_inputmodule/link.ld @@ -1 +1 @@ -firmware_size = 512k; \ No newline at end of file +firmware_size = 512k; From 029c7a0caa075550fc5618b7c71075fb13937a13 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 9 Aug 2023 17:35:10 +0800 Subject: [PATCH 9/9] fixup! boards/fwk_keyboard: Reduce firmware size to below 500KB --- ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk b/ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk index cff785f9decd..324def700a45 100644 --- a/ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk +++ b/ports/raspberrypi/boards/framework_inputmodule/mpconfigboard.mk @@ -21,7 +21,7 @@ CFLAGS += -DCIRCUITPY_FIRMWARE_SIZE='(512 * 1024)' CIRCUITPY_TOUCHIO = 1 #CIRCUITPY_PWMIO = 1 -# Boards hav limited IO, only +# Boards have limited IO, only # - IS31FL3741/IS31FL3731 LED matrix # - USB 2.0 # - PWM backlight