Search found 15 matches

by ales.coppelli
Sat Sep 19, 2020 11:46 am
Forum: General Discussion and Questions
Topic: MicroPython inside a FreRTOS task
Replies: 1
Views: 229

MicroPython inside a FreRTOS task

Hi everyone.
I apologize, for sure this thing has already been asked but not for my inability I have not found the right posts.
How do you run MicroPython inside a FreeRtos task?
I would like to try to make a FreeRtos application that has only two tasks, one of which is MicroPython.
by ales.coppelli
Sat Sep 19, 2020 9:36 am
Forum: General Discussion and Questions
Topic: [STM32 H7 dual processor series]
Replies: 3
Views: 295

Re: [STM32 H7 dual processor series]

Thank you so much for answering me. As a first step (to initially make things easier) I thought of trying to do this thing: using a tool (I currently use the IDE of www.openstm32.org and I don't know if it can be done or how it can be done ) I would like to try to run MicroPython on one core and on ...
by ales.coppelli
Thu Sep 17, 2020 9:44 am
Forum: General Discussion and Questions
Topic: [STM32 H7 dual processor series]
Replies: 3
Views: 295

[STM32 H7 dual processor series]

Hi everyone. In the near future I would like to buy the Nucleo-h743zi board (which is supported by Micropython). If I'm not mistaken the card has two processors. The question is: can I run Micropyton on one processor and my program (a controller developed in Simulink) on the other. How can I do ? Is...
by ales.coppelli
Fri Aug 09, 2019 5:04 pm
Forum: General Discussion and Questions
Topic: Embedding Micropython in a standalone C application (micropython/examples/embedding )
Replies: 9
Views: 1244

Re: Embedding Micropython in a standalone C application (micropython/examples/embedding )

Try this: in your 'Makefile.uplib' change the CFLAGS option from "-std=gnu99" to "-std=c99". You should to have my second issue. Ah I misunderstood what you were saying before. Why do you need to change it from gnu99 to c99? Are you compiling with something that isn't gcc? If there's a specific rea...
by ales.coppelli
Fri Aug 09, 2019 12:55 pm
Forum: General Discussion and Questions
Topic: Embedding Micropython in a standalone C application (micropython/examples/embedding )
Replies: 9
Views: 1244

Re: Embedding Micropython in a standalone C application (micropython/examples/embedding )

I resolved the second issue: I have changed in Makefile.upylib the CFLAGS option -std=gnu99 ( the correct option ) to -std=c99 ( the wrong one ). I don't know why this solved your problem...? usleep() is in unistd.h, which is already included in mphal.h. When I build examples/embedded, I did see th...
by ales.coppelli
Thu Aug 08, 2019 10:19 am
Forum: General Discussion and Questions
Topic: Embedding Micropython in a standalone C application (micropython/examples/embedding )
Replies: 9
Views: 1244

Re: Embedding Micropython in a standalone C application (micropython/examples/embedding )

Jimmo, I resolved the second issue: I have changed in Makefile.upylib the CFLAGS option -std=gnu99 ( the correct option ) to -std=c99 ( the wrong one ). Now is all ok: the program is compiled. By thre way, how I do make the 'Pull request' ? 'Pull request' tab --> New pull request ( green tab ) --> a...
by ales.coppelli
Thu Aug 08, 2019 7:35 am
Forum: General Discussion and Questions
Topic: Embedding Micropython in a standalone C application (micropython/examples/embedding )
Replies: 9
Views: 1244

Re: Embedding Micropython in a standalone C application (micropython/examples/embedding )

Thank you very much Jimmo, I added #include <stdint.h> to the top of micropython/py/mphal.h and the old error is disappear but now there is this one: In file included from ../../py/mphal.h:35:0, from ../../py/mpprint.c:33: ../../ports/unix/mphalport.h: In function ‘mp_hal_delay_ms’: ../../ports/unix...
by ales.coppelli
Tue Aug 06, 2019 3:12 pm
Forum: Programs, Libraries and Tools
Topic: Write a guide FreeRTOS and Micropython: looking for interested people
Replies: 0
Views: 1006

Write a guide FreeRTOS and Micropython: looking for interested people

Hi everyone, I would like to learn, and then write a guide, on how to compile Micropython to be used as a low priority standalone task on FreeRTOS. I use the STM32CubeMX tool and the ide SW4STM32 to program cards like the STM32F4-Discovery. My idea is to use FreeRTOS for deadline tasks (control task...
by ales.coppelli
Tue Aug 06, 2019 2:34 pm
Forum: General Discussion and Questions
Topic: Embedding Micropython in a standalone C application (micropython/examples/embedding )
Replies: 9
Views: 1244

Embedding Micropython in a standalone C application (micropython/examples/embedding )

Hi everyone, I'm trying to compile the "micropython/examples/embedding" program. After running the make command I get this error: "error: unknown type name 'uintptr_t'. Does anyone know how to solve it? Enviroment: PC: Ubuntu 16.04 MicroPython: $ git clone https://github.com/micropython/micropython....