8000 nrf/mpconfigport: Enable MICROPY_NLR_THUMB_USE_LONG_JUMP on nRF51xx. · micropython/micropython@e60e807 · GitHub
[go: up one dir, main page]

Skip to content

Commit e60e807

Browse files
committed
nrf/mpconfigport: Enable MICROPY_NLR_THUMB_USE_LONG_JUMP on nRF51xx.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 7b050b3 commit e60e807

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/nrf/mpconfigport.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959

6060
// options to control how MicroPython is built
6161

62+
// Due to the use of LTO and the unknown distance between nlr.o and nlrthumb.o code,
63+
// MCUs using the Thumb 1 instruction set must enable this NLR long jump feature.
64+
#if defined(NRF51822)
65+
#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1)
66+
#endif
67+
6268
#ifndef MICROPY_VFS
6369
#define MICROPY_VFS (CORE_FEAT)
6470
#endif

0 commit comments

Comments
 (0)
0