Updated Latest Progress Error....[Zephyr-devel] Python Interpreter for Zephyr


Muhammad Muh <muhammad.muh83@...>
 

Dear Maureen and Jrosenth, 

Now when I run the "make" command for the  python Blinky example, I got the following error. Request to please advise.

make BOARD=nrf52840dk_nrf52840

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.

Warning: FROZEN_DIR is deprecated in favour of FROZEN_MANIFEST

mkdir -p outdir/nrf52840dk_nrf52840 && cmake -DBOARD=nrf52840dk_nrf52840 -Boutdir/nrf52840dk_nrf52840 -H.

Including boilerplate (Zephyr workspace): /home/muhammad/zephyrproject/zephyr/cmake/app/boilerplate.cmake

-- Application: /home/muhammad/zephyrproject/micropython/ports/zephyr

-- Zephyr version: 2.3.99 (/home/muhammad/zephyrproject/zephyr)

-- Found Python3: /usr/bin/python3.7 (found suitable exact version "3.7.5") found components: Interpreter

-- Board: nrf52840dk_nrf52840

ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK

-- Found toolchain: zephyr (/home/muhammad/zephyr-sdk-0.11.3riz)

-- Found west: /home/muhammad/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")

-- Found dtc: /home/muhammad/zephyr-sdk-0.11.3riz/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")

-- Found BOARD.dts: /home/muhammad/zephyrproject/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts

-- Generated zephyr.dts: /home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/zephyr.dts

-- Generated devicetree_unfixed.h: /home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/include/generated/devicetree_unfixed.h

Parsing /home/muhammad/zephyrproject/zephyr/Kconfig

Loaded configuration '/home/muhammad/zephyrproject/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'

Merged configuration '/home/muhammad/zephyrproject/micropython/ports/zephyr/prj.conf'

Configuration saved to '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/.config'

Kconfig header saved to '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/include/generated/autoconf.h'


warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but

got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See

http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look

up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,

Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be

helpful too.


-- The C compiler identification is GNU 9.2.0

-- The CXX compiler identification is GNU 9.2.0

-- The ASM compiler identification is GNU

-- Found assembler: /home/muhammad/zephyr-sdk-0.11.3riz/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc

-- Cache files will be written to: /home/muhammad/.cache/zephyr

-- Configuring done

-- Generating done

-- Build files have been written to: /home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840

make --no-print-directory -C outdir/nrf52840dk_nrf52840 outputexports CMAKE_COMMAND=: >outdir/nrf52840dk_nrf52840/Makefile.export

make -C outdir/nrf52840dk_nrf52840 syscall_list_h_target kobj_types_h_target

make[1]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[3]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Scanning dependencies of target parse_syscalls_target

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 25%] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 50%] Built target parse_syscalls_target

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Scanning dependencies of target syscall_list_h_target

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 75%] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[100%] Built target syscall_list_h_target

make[3]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[3]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 66%] Built target parse_syscalls_target

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Scanning dependencies of target kobj_types_h_target

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[100%] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[100%] Built target kobj_types_h_target

make[3]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[1]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.

Warning: FROZEN_DIR is deprecated in favour of FROZEN_MANIFEST

CC ../../py/mpstate.c

CC ../../py/nlr.c

CC ../../py/nlrx86.c

CC ../../py/nlrx64.c

CC ../../py/nlrthumb.c

CC ../../py/nlrpowerpc.c

CC ../../py/nlrxtensa.c

CC ../../py/nlrsetjmp.c

CC ../../py/malloc.c

CC ../../py/gc.c

CC ../../py/pystack.c

CC ../../py/qstr.c

CC ../../py/vstr.c

CC ../../py/mpprint.c

CC ../../py/unicode.c

CC ../../py/mpz.c

CC ../../py/reader.c

CC ../../py/lexer.c

CC ../../py/parse.c

CC ../../py/scope.c

CC ../../py/compile.c

CC ../../py/emitcommon.c

CC ../../py/emitbc.c

CC ../../py/asmbase.c

CC ../../py/asmx64.c

CC ../../py/emitnx64.c

CC ../../py/asmx86.c

CC ../../py/emitnx86.c

CC ../../py/asmthumb.c

CC ../../py/emitnthumb.c

CC ../../py/emitinlinethumb.c

CC ../../py/asmarm.c

CC ../../py/emitnarm.c

CC ../../py/asmxtensa.c

CC ../../py/emitnxtensa.c

CC ../../py/emitinlinextensa.c

CC ../../py/emitnxtensawin.c

CC ../../py/formatfloat.c

CC ../../py/parsenumbase.c

CC ../../py/parsenum.c

CC ../../py/emitglue.c

CC ../../py/persistentcode.c

CC ../../py/runtime.c

CC ../../py/runtime_utils.c

CC ../../py/scheduler.c

CC ../../py/nativeglue.c

CC ../../py/pairheap.c

CC ../../py/ringbuf.c

CC ../../py/stackctrl.c

CC ../../py/argcheck.c

CC ../../py/warning.c

CC ../../py/profile.c

CC ../../py/map.c

CC ../../py/obj.c

CC ../../py/objarray.c

CC ../../py/objattrtuple.c

CC ../../py/objbool.c

CC ../../py/objboundmeth.c

CC ../../py/objcell.c

CC ../../py/objclosure.c

CC ../../py/objcomplex.c

CC ../../py/objdeque.c

CC ../../py/objdict.c

CC ../../py/objenumerate.c

CC ../../py/objexcept.c

CC ../../py/objfilter.c

CC ../../py/objfloat.c

CC ../../py/objfun.c

CC ../../py/objgenerator.c

CC ../../py/objgetitemiter.c

CC ../../py/objint.c

CC ../../py/objint_longlong.c

CC ../../py/objint_mpz.c

CC ../../py/objlist.c

CC ../../py/objmap.c

CC ../../py/objmodule.c

CC ../../py/objobject.c

CC ../../py/objpolyiter.c

CC ../../py/objproperty.c

CC ../../py/objnone.c

CC ../../py/objnamedtuple.c

CC ../../py/objrange.c

CC ../../py/objreversed.c

CC ../../py/objset.c

CC ../../py/objsingleton.c

CC ../../py/objslice.c

CC ../../py/objstr.c

CC ../../py/objstrunicode.c

CC ../../py/objstringio.c

CC ../../py/objtuple.c

CC ../../py/objtype.c

CC ../../py/objzip.c

CC ../../py/opmethods.c

CC ../../py/sequence.c

CC ../../py/stream.c

CC ../../py/binary.c

CC ../../py/builtinimport.c

CC ../../py/builtinevex.c

CC ../../py/builtinhelp.c

CC ../../py/modarray.c

CC ../../py/modbuiltins.c

CC ../../py/modcollections.c

CC ../../py/modgc.c

CC ../../py/modio.c

CC ../../py/modmath.c

CC ../../py/modcmath.c

CC ../../py/modmicropython.c

CC ../../py/modstruct.c

CC ../../py/modsys.c

CC ../../py/moduerrno.c

CC ../../py/modthread.c

CC ../../py/vm.c

CC ../../py/bc.c

CC ../../py/showbc.c

CC ../../py/repl.c

CC ../../py/smallint.c

CC ../../py/frozenmod.c

CC ../../extmod/moduasyncio.c

CC ../../extmod/moductypes.c

CC ../../extmod/modujson.c

CC ../../extmod/modure.c

CC ../../extmod/moduzlib.c

CC ../../extmod/moduheapq.c

CC ../../extmod/modutimeq.c

CC ../../extmod/moduhashlib.c

CC ../../extmod/moducryptolib.c

CC ../../extmod/modubinascii.c

CC ../../extmod/virtpin.c

CC ../../extmod/machine_mem.c

CC ../../extmod/machine_pinbase.c

CC ../../extmod/machine_signal.c

CC ../../extmod/machine_pulse.c

CC ../../extmod/machine_i2c.c

CC ../../extmod/machine_spi.c

CC ../../extmod/modbluetooth.c

CC ../../extmod/modussl_axtls.c

CC ../../extmod/modussl_mbedtls.c

CC ../../extmod/modurandom.c

CC ../../extmod/moduselect.c

CC ../../extmod/moduwebsocket.c

CC ../../extmod/modwebrepl.c

CC ../../extmod/modframebuf.c

CC ../../extmod/vfs.c

CC ../../extmod/vfs_blockdev.c

CC ../../extmod/vfs_reader.c

CC ../../extmod/vfs_posix.c

CC ../../extmod/vfs_posix_file.c

CC ../../extmod/vfs_fat.c

CC ../../extmod/vfs_fat_diskio.c

CC ../../extmod/vfs_fat_file.c

CC ../../extmod/vfs_lfs.c

CC ../../extmod/utime_mphal.c

CC ../../extmod/uos_dupterm.c

CC ../../lib/embed/abort_.c

CC ../../lib/utils/printf.c

CC build/frozen.c

CC main.c

main.c: In function 'vfs_init':

main.c:108:63: error: missing binary operator before token "("

108 | #elif defined(CONFIG_FLASH_MAP) && FLASH_AREA_LABEL_EXISTS(storage)

| ^

make: *** [../../py/mkrules.mk:63: build/main.o] Error 1


Best Regards


From: Muhammad Muh <muhammad.muh83@...>
Sent: Monday, August 3, 2020 1:53 PM
To: Maureen Helm (OSS) <maureen.helm@...>; jrosenth@... <jrosenth@...>
Cc: devel@... <devel@...>
Subject: Latest Progress....[Zephyr-devel] Python Interpreter for Zephyr
 
Dear Maureen and Jrosenth,

Thank you very much for your kind help. I am using the latest version of Zephyr (as shown in bold in the following code) and also I downloaded the micropython in the Zephyr Project Folder from "git clone https://github.com/micropython/micropython.git". Now I want to run a blink led example to test the Micropython functionality by using the example given in the link "https://github.com/micropython/micropython/tree/master/ports/zephyr". When I run the "make" command I am getting the following error as shown at the end of the following code. Please note I am using nrf52840 dk. Request to please advise.

make BOARD=nrf52840dk_nrf52840

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.

Warning: FROZEN_DIR is deprecated in favour of FROZEN_MANIFEST

mkdir -p outdir/nrf52840dk_nrf52840 && cmake -DBOARD=nrf52840dk_nrf52840 -Boutdir/nrf52840dk_nrf52840 -H.

Including boilerplate (Zephyr base): /home/muhammad/zephyrproject/zephyr/cmake/app/boilerplate.cmake

-- Application: /home/muhammad/zephyrproject/micropython/ports/zephyr

-- Zephyr version: 2.3.99 (/home/muhammad/zephyrproject/zephyr)

-- Found Python3: /usr/bin/python3.7 (found suitable exact version "3.7.5") found components: Interpreter

-- Board: nrf52840dk_nrf52840

-- Found toolchain: zephyr (/home/muhammad/zephyr-sdk-0.11.3)

-- Found west: /home/muhammad/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")

-- Found dtc: /home/muhammad/zephyr-sdk-0.11.3/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")

-- Found BOARD.dts: /home/muhammad/zephyrproject/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts

-- Generated zephyr.dts: /home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/zephyr.dts

-- Generated devicetree_unfixed.h: /home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/include/generated/devicetree_unfixed.h

Parsing /home/muhammad/zephyrproject/zephyr/Kconfig

Loaded configuration '/home/muhammad/zephyrproject/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'

Merged configuration '/home/muhammad/zephyrproject/micropython/ports/zephyr/prj.conf'

Configuration saved to '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/.config'

Kconfig header saved to '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840/zephyr/include/generated/autoconf.h'


warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but

got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See

http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look

up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,

Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be

helpful too.


-- The C compiler identification is GNU 9.2.0

-- The CXX compiler identification is GNU 9.2.0

-- The ASM compiler identification is GNU

-- Found assembler: /home/muhammad/zephyr-sdk-0.11.3/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc

-- Cache files will be written to: /home/muhammad/.cache/zephyr

-- Configuring done

-- Generating done

-- Build files have been written to: /home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840

make --no-print-directory -C outdir/nrf52840dk_nrf52840 outputexports CMAKE_COMMAND=: >outdir/nrf52840dk_nrf52840/Makefile.export

make -C outdir/nrf52840dk_nrf52840 syscall_list_h_target kobj_types_h_target

make[1]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[3]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Scanning dependencies of target parse_syscalls_target

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 25%] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 50%] Built target parse_syscalls_target

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Scanning dependencies of target syscall_list_h_target

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 75%] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[100%] Built target syscall_list_h_target

make[3]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[3]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[ 66%] Built target parse_syscalls_target

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Scanning dependencies of target kobj_types_h_target

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[4]: Entering directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[100%] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h

make[4]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

[100%] Built target kobj_types_h_target

make[3]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[2]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

make[1]: Leaving directory '/home/muhammad/zephyrproject/micropython/ports/zephyr/outdir/nrf52840dk_nrf52840'

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.

Warning: FROZEN_DIR is deprecated in favour of FROZEN_MANIFEST

GEN build/genhdr/qstr.i.last

main.c:108:63: error: missing binary operator before token "("

108 | #elif defined(CONFIG_FLASH_MAP) && FLASH_AREA_LABEL_EXISTS(storage)

| ^

make: *** [../../py/mkrules.mk:89: build/genhdr/qstr.i.last] Error 1

make: *** Deleting file 'build/genhdr/qstr.i.last'



Best Regards





From: Muhammad Muh <muhammad.muh83@...>
Sent: Monday, August 3, 2020 10:11 AM
To: Maureen Helm (OSS) <maureen.helm@...>; jrosenth@... <jrosenth@...>
Cc: devel@... <devel@...>
Subject: Re: [Zephyr-devel] Python Interpreter for Zephyr
 
Dear Maureen,

Thank you very much for your response. I have installed the latest Zephyr version from the Zephyr Projects webpage. It is requested to guide me as how to run the sample Micropython program given in the following link.

Best Regards


From: Maureen Helm (OSS) <maureen.helm@...>
Sent: Friday, July 31, 2020 12:25 AM
To: Muhammad Muh <muhammad.muh83@...>; jrosenth@... <jrosenth@...>
Cc: devel@... <devel@...>
Subject: RE: [Zephyr-devel] Python Interpreter for Zephyr
 

Hi Muhammad,

Please use the Zephyr 2.3.0 release with MicroPython instead of Zephyr master.

 

Maureen

 

From: Muhammad Muh <muhammad.muh83@...>
Sent: Wednesday, July 29, 2020 11:49 PM
To: Maureen Helm (OSS) <maureen.helm@...>; jrosenth@...
Cc: devel@...
Subject: Re: [Zephyr-devel] Python Interpreter for Zephyr

 

Hi Maureen and Jrosenth,

 

Thank you for your kind response to my question. I have downloaded the Micropython from the given link. Now I have followed the steps given in the Read Me file given in micropython-master/ports/zephyr, I am getting the following errors, request to please help me in resolving this issue. Thank you.

 

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.

Warning: FROZEN_DIR is deprecated in favour of FROZEN_MANIFEST

GEN build/genhdr/qstr.i.last

main.c:108:63: error: missing binary operator before token "("

  108 |     #elif defined(CONFIG_FLASH_MAP) && FLASH_AREA_LABEL_EXISTS(storage)

      |                                                               ^

make: *** [../../py/mkrules.mk:89: build/genhdr/qstr.i.last] Error 1

make: *** Deleting file 'build/genhdr/qstr.i.last'

 

Best Regards

 

 

 


From: Maureen Helm (OSS) <maureen.helm@...>
Sent: Wednesday, July 29, 2020 4:06 AM
To: jrosenth@... <jrosenth@...>; Muhammad Muh <muhammad.muh83@...>
Cc: devel@... <devel@...>
Subject: RE: [Zephyr-devel] Python Interpreter for Zephyr

 

There is already a MicroPython port for Zephyr:

https://github.com/micropython/micropython/tree/master/ports/zephyr

 

From: devel@... <devel@...> On Behalf Of Jack Rosenthal via lists.zephyrproject.org
Sent: Monday, July 27, 2020 10:24 AM
To: Muhammad Muh <muhammad.muh83@...>
Cc: devel@...
Subject: Re: [Zephyr-devel] Python Interpreter for Zephyr

 

You could try porting MicroPython to run on Zephyr if it meets your needs. Note that you're looking at a minimum of ~150KB of extra flash space usage, depending on architecture, which features you enable, etc.

 

On Mon, Jul 27, 2020 at 12:26 AM Muhammad Muh <muhammad.muh83@...> wrote:

Hi,

 

I hope you will be fine and in best of the health. I have a small query. If I want to run Python application on top of Zephyr, does Zephyr has the Python interpreter to run a python based application on top of Zephyr?

 

Please advice. Thank you.

 

Best Regards

 

Join devel@lists.zephyrproject.org to automatically receive all group messages.