8000 Increase the C stack size. Fix a really stupid bug. · davidgiven/micropython@f17124b · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit f17124b

Browse files
committed
Increase the C stack size. Fix a really stupid bug.
1 parent 96c7fe2 commit f17124b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ports/tc32/main.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,11 @@ MP_NOINLINE static void hard_init() {
7272
MP_NOINLINE static void soft_init() {
7373

7474
/* The Telink SDK doesn't define any symbols for these, so we just hard code
75-
* it. The stack starts at the end of memory, 0x80c000. We leave 1kB for it,
76-
* meaning that our heap needs to end at 0x80bc00. */
77-
gc_init((void *)&_end_bss_, (void *)0x80bc00);
75+
* it. The stack starts at the end of memory, 0x80c000. We leave 2kB for it,
76+
* meaning that our heap needs to end at 0x80b800. */
77+
gc_init((void *)&_end_bss_, (void *)0x80b800);
7878
mp_init();
7979
machine_init();
80-
81-
mp_deinit();
8280
}
8381

8482
MP_NOINLINE static void repl() {

0 commit comments

Comments
 (0)
0