Skip to content

Commit 41301ee

Browse files
committed
altos/stm32f042: Increase interrupt stack to 256 bytes
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 <[email protected]>
1 parent 444e6b2 commit 41301ee

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/easymini-v2.0/ao_pins.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define HAS_BEEP 1
2020
#define HAS_BATTERY_REPORT 1
2121

22-
#define AO_STACK_SIZE 448
22+
#define AO_STACK_SIZE 432
2323

2424
#define IS_FLASH_LOADER 0
2525

src/stmf0/altos.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ __flash = 0x08001000;
2020
__flash_size = 28K;
2121
__ram = 0x20000000;
2222
__ram_size = 6k;
23-
__stack_size = 128;
23+
__stack_size = 256;
2424

2525
INCLUDE registers.ld
2626
INCLUDE picolibc.ld

src/telebt-v4.0/ao_pins.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef _AO_PINS_H_
2020
#define _AO_PINS_H_
2121

22-
#define AO_STACK_SIZE 512
22+
#define AO_STACK_SIZE 504
2323

2424
#define AO_HSE 32000000
2525
#define AO_RCC_CFGR_PLLMUL STM_RCC_CFGR_PLLMUL_3

src/telemini-v3.0/ao_pins.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define HAS_SERIAL_1 0
2121
#define HAS_BATTERY_REPORT 1
2222

23-
#define AO_STACK_SIZE 448
23+
#define AO_STACK_SIZE 428
2424

2525
#define IS_FLASH_LOADER 0
2626

0 commit comments

Comments
 (0)