Python Interpreter for Zephyr
Muhammad Muh <muhammad.muh83@...>
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
|
|
Jack Rosenthal
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:
|
|
Maureen Helm
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:
|
|
Muhammad Muh <muhammad.muh83@...>
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
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:
|
|
Maureen Helm
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@...>
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
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:
|
|
Muhammad Muh <muhammad.muh83@...>
Moreover, I am using nrf52840 DK.
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@...>
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@...>
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
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:
|
|
Muhammad Muh <muhammad.muh83@...>
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@...>
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@...>
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
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:
|
|