Skip to content

Commit

Permalink
Merge pull request #238 from brilliantlabsAR/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
siliconwitch authored Jun 20, 2023
2 parents 66d4863 + 49a4e3b commit 59c4552
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ int main(void)
mp_stack_set_top(&_stack_top);

// Set the stack limit as smaller than the real stack so we can recover
mp_stack_set_limit((char *)&_stack_top - (char *)&_stack_bot - 400);
mp_stack_set_limit((char *)&_stack_top - (char *)&_stack_bot - 512);

// Start garbage collection, micropython and the REPL
gc_init(&_heap_start, &_heap_end);
Expand Down
2 changes: 1 addition & 1 deletion monocle-core/monocle.ld
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ SECTIONS
/* Define the stack area */

_stack_top = ORIGIN(RAM) + LENGTH(RAM);
_stack_bot = _stack_top - 4K;
_stack_bot = _stack_top - 8K;

/* Heap goes from end of bss ram to the bottom of the stack */

Expand Down
2 changes: 2 additions & 0 deletions mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@

#define MICROPY_ENABLE_FINALISER (1)

#define MICROPY_STACK_CHECK (1)

#define MICROPY_KBD_EXCEPTION (1)

#define MICROPY_USE_READLINE (1)
Expand Down

0 comments on commit 59c4552

Please sign in to comment.