workarounds to prevent IRAM0 shortage

This commit is contained in:
cyberman54 2022-11-02 13:15:15 +01:00
parent 977d482676
commit 7eeb760c13
3 changed files with 9 additions and 7 deletions

View File

@ -27,6 +27,7 @@ jobs:
# platformio-path: ~\AppData\Local\platformio\Cache # platformio-path: ~\AppData\Local\platformio\Cache
board: board:
[ [
generic.h,
ebox.h, ebox.h,
eboxtube.h, eboxtube.h,
ecopower.h, ecopower.h,

View File

@ -62,7 +62,7 @@
#define CFG_sx1276_radio 1 // select LoRa chip #define CFG_sx1276_radio 1 // select LoRa chip
//#define CFG_sx1272_radio 1 // select LoRa chip //#define CFG_sx1272_radio 1 // select LoRa chip
#define BOARD_HAS_PSRAM // use if board has external PSRAM //#define BOARD_HAS_PSRAM // use if board has external SPIRAM, note: this will reduce IRAM0 by 64KB for SPIRAM cache
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
#define HAS_DISPLAY 1 #define HAS_DISPLAY 1

View File

@ -1,6 +1,7 @@
// clang-format off // clang-format off
// upload_speed 921600 // upload_speed 921600
// board m5stack-fire // board m5stack-core-esp32
// b0ard m5stack-fire -> does not compile due to IRAM0 shortage, because 64KB of 192KB used for caching external SPIRAM
// note use of GPIO16/17 // note use of GPIO16/17
// https://www.bjoerns-techblog.de/2019/03/m5stack-fire-eine-uebersicht/ // https://www.bjoerns-techblog.de/2019/03/m5stack-fire-eine-uebersicht/
@ -10,7 +11,7 @@
#include <stdint.h> #include <stdint.h>
//#define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no M5 RA01 LoRa module #define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no M5 RA01 LoRa module
#define LORA_SCK SCK #define LORA_SCK SCK
#define LORA_CS SS #define LORA_CS SS
#define LORA_MISO MISO #define LORA_MISO MISO
@ -21,7 +22,7 @@
#define LORA_IO2 LMIC_UNUSED_PIN #define LORA_IO2 LMIC_UNUSED_PIN
// enable only if you want to store a local paxcount table on the device // enable only if you want to store a local paxcount table on the device
//#define HAS_SDCARD 1 // this board has an SD-card-reader/writer #define HAS_SDCARD 1 // this board has an SD-card-reader/writer
#define SDCARD_CS GPIO_NUM_4 #define SDCARD_CS GPIO_NUM_4
#define SDCARD_MOSI MOSI #define SDCARD_MOSI MOSI
#define SDCARD_MISO MISO #define SDCARD_MISO MISO
@ -32,8 +33,8 @@
#define HAS_LED NOT_A_PIN // no on board LED (?) #define HAS_LED NOT_A_PIN // no on board LED (?)
#define RGB_LED_COUNT 10 // M5fire has a stripe of 10 RGB Pixels #define RGB_LED_COUNT 10 // M5fire has a stripe of 10 RGB Pixels
//#define HAS_RGB_LED FastLED.addLeds<SK6812, GPIO_NUM_15, GRB>(leds, RGB_LED_COUNT); #define HAS_RGB_LED FastLED.addLeds<SK6812, GPIO_NUM_15, GRB>(leds, RGB_LED_COUNT);
//#define HAS_BUTTON (39) // on board button A #define HAS_BUTTON (39) // on board button A
// power management settings // power management settings
#define HAS_IP5306 1 // has IP5306 chip #define HAS_IP5306 1 // has IP5306 chip
@ -48,7 +49,7 @@
//#define GPS_INT GPIO_NUM_36 // 30ns accurary timepulse, to be external wired on pcb: shorten R12! //#define GPS_INT GPIO_NUM_36 // 30ns accurary timepulse, to be external wired on pcb: shorten R12!
// Display Settings // Display Settings
//#define HAS_DISPLAY 2 // TFT-LCD #define HAS_DISPLAY 2 // TFT-LCD
//#define MY_DISPLAY_FLIP 1 // use if display is rotated //#define MY_DISPLAY_FLIP 1 // use if display is rotated
#define MY_DISPLAY_WIDTH 320 #define MY_DISPLAY_WIDTH 320
#define MY_DISPLAY_HEIGHT 240 #define MY_DISPLAY_HEIGHT 240