altos/stm32f042: Increase interrupt stack to 256 bytes
authorKeith Packard <keithp@keithp.com>
Tue, 13 Jun 2023 06:11:01 +0000 (23:11 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 13 Jun 2023 06:16:58 +0000 (23:16 -0700)
Running the radio on TeleMini in monitor idle mode ended up
overflowing the interrupt stack of 128 bytes. Increase to 256 bytes
and adjust task stack sizes so targets continue to build.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/easymini-v2.0/ao_pins.h
src/stmf0/altos.ld
src/telebt-v4.0/ao_pins.h
src/telemini-v3.0/ao_pins.h

index da52c5fd2063e52f84c2bef9197d81d4e3856371..e6479e1039d15ccca6a3759f692a6d725653f836 100644 (file)
@@ -19,7 +19,7 @@
 #define HAS_BEEP               1
 #define HAS_BATTERY_REPORT     1
 
-#define AO_STACK_SIZE  448
+#define AO_STACK_SIZE  432
 
 #define IS_FLASH_LOADER        0
 
index 019565cf9f82016b4ec0c7991b712bf32f38557a..80857a508cc6f0f6dc8d4d853f44189b01797e26 100644 (file)
@@ -20,7 +20,7 @@ __flash = 0x08001000;
 __flash_size = 28K;
 __ram = 0x20000000;
 __ram_size = 6k;
-__stack_size = 128;
+__stack_size = 256;
 
 INCLUDE registers.ld
 INCLUDE picolibc.ld
index 6efa407d15043010e7185198f91a62c26b28a77e..ca2c8e57bb6bbc022f46a705b21feff8137740f7 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef _AO_PINS_H_
 #define _AO_PINS_H_
 
-#define AO_STACK_SIZE          512
+#define AO_STACK_SIZE          504
 
 #define AO_HSE                  32000000
 #define AO_RCC_CFGR_PLLMUL     STM_RCC_CFGR_PLLMUL_3
index 28b3540bb88d910cc05c636bceecbdd3f35b0d56..242e30d71b208db436576256d4b350ebaa72554e 100644 (file)
@@ -20,7 +20,7 @@
 #define HAS_SERIAL_1           0
 #define HAS_BATTERY_REPORT     1
 
-#define AO_STACK_SIZE  448
+#define AO_STACK_SIZE  428
 
 #define IS_FLASH_LOADER        0