From a34a20837d27138c34e48c58c58499e5286963ab Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 12 Jan 2015 08:27:25 -0600 Subject: Micro Python: Fix a typo in the port configuration file --- apps/interpreters/README.txt | 24 ++++++++++++++++++++---- apps/interpreters/micropython/mpconfigport.h | 2 +- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/apps/interpreters/README.txt b/apps/interpreters/README.txt index 8379ddafd..c207f594a 100644 --- a/apps/interpreters/README.txt +++ b/apps/interpreters/README.txt @@ -60,10 +60,26 @@ micropython This port was contributed by Dave Marples using Micro Python circa 1.3.8. It may not be compatible with other versions. - NOTE: Right now, Micro Python will not build on Windows with a Windows - native toolchain due to usage of POSIX paths in the Micro Python build - system. It should build correctly on Linux or under Cygwin with the - NuttX buildroot tools. + NOTES: + + 1. Micro Python will not build on Windows with a Windows native toolchain + due to use of POSIX paths in the Micro Python build system. It should build + correctly on Linux or under Cygwin with the NuttX buildroot tools. + + 2. Micro Python will not run correctly on a 64-bit target (such as the NuttX + simulation on a 64-bit platfform). In that case it generates assertions + like: + + OverflowError: long int not supported in this build + + This change to mpconfigport.h is a partial work-around but does not solve + all issues: + + -#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPL) + +#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG) + + Someday it will probably be necessary to autogenerate the mpconfigport.h + header file with the correct properties for the target system.\ pcode ----- diff --git a/apps/interpreters/micropython/mpconfigport.h b/apps/interpreters/micropython/mpconfigport.h index 1ee040565..5dc60bc7d 100644 --- a/apps/interpreters/micropython/mpconfigport.h +++ b/apps/interpreters/micropython/mpconfigport.h @@ -80,7 +80,7 @@ #define MICROPY_PY_STRUCT (0) #define MICROPY_PY_SYS (0) #define MICROPY_CPYTHON_COMPAT (0) -#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPL) +#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) /* type definitions for the specific machine */ -- cgit v1.2.3