Search found 34 matches
- Wed Dec 23, 2020 11:07 am
- Forum: Development of MicroPython
- Topic: Link to class methods in composition technique
- Replies: 0
- Views: 1565
Link to class methods in composition technique
I have a STM32F411 board and when I try to use the I2C bus master is all ok: ------- from machine import I2C i2c = I2C(1) i2c.scan() -->Ok [25,30][i.e. address of accelerometer, address of magnetometer] i2c.writeto_mem(25,32,b'\x77') i2c.writeto_mem(25,35,b'\x08') i2c.readfrom_mem(25,40,1) i2c.readf...
- Sat Dec 19, 2020 11:25 am
- Forum: Development of MicroPython
- Topic: Driver for accelerometer LSM303DLHC
- Replies: 0
- Views: 1640
Driver for accelerometer LSM303DLHC
Hi to all. I'm trying to development a simple lsm303dhlc accelerometer driver using the I2C class already present in Micropython ( I have a STM32F411 Discovery board and the lsm303dhlc accelerometer is hard linked to the PB6(scl) and PB9(sda) board pin). Scenario ( about use a I2C class in my new ac...
- Mon Oct 26, 2020 2:28 pm
- Forum: Development of MicroPython
- Topic: Problem with MicroPython external C modules
- Replies: 7
- Views: 3452
Re: Problem with MicroPython external C modules
Thank you thank you very much Jimmo !
It works !
( I eliminated in mine [project/modules/example/micropython.mk] file the
added line ( USERMOD_DIR='the path of my modules/example directory ' )).
It works !
( I eliminated in mine [project/modules/example/micropython.mk] file the
added line ( USERMOD_DIR='the path of my modules/example directory ' )).
- Sun Oct 25, 2020 11:53 am
- Forum: Development of MicroPython
- Topic: Problem with MicroPython external C modules
- Replies: 7
- Views: 3452
Re: Problem with MicroPython external C modules
I have been trying to fix this :-( ( I'm sorry if I ask you any more questions ) I would like to ask you: Do you know where/when in the [micropython/ports/stm32/]Makefile (a) it's called/included [myproject/modules/example/]micropython.mk (b) it's called the linker to 'link' the file example.o (c) w...
- Sat Oct 24, 2020 5:39 pm
- Forum: Development of MicroPython
- Topic: Problem with MicroPython external C modules
- Replies: 7
- Views: 3452
Re: Problem with MicroPython external C modules
Thank you very much stijn for your suggestion. This is what I obtain when compile the program ( in the second line there is the include) : -----------------------------------------Compilation -------------------------------------------------------- $ make BOARD=STM32F411DISC USER_C_MODULES=../../../...
- Sat Oct 24, 2020 8:57 am
- Forum: Development of MicroPython
- Topic: Problem with MicroPython external C modules
- Replies: 7
- Views: 3452
Problem with MicroPython external C modules
Hi to all. I'm trying to learn how to use extenal C modules in MicroPython. I have read and implemented the example external C module. All almost ok. I prepared the same directoy structure, I copied from the web page the 'example.c' and 'micropython.mk' in my example.c and micropython.mk. I modified...
- Wed Oct 07, 2020 10:21 am
- Forum: General Discussion and Questions
- Topic: [STM32 H7 dual processor series]
- Replies: 7
- Views: 4026
Re: [STM32 H7 dual processor series]
Hi Jimmo, I solved the problem by implementing the calls in syscall.c : starting the program ( in the main.c without FreeRTOS task ) everything works. As a next step I have prepared two very simple FreeRTOS tasks. /*declaration*/ void vTaskAsSimpleAsPossible(void*); void vTaskMP(void*); /*creation *...
- Tue Oct 06, 2020 12:40 pm
- Forum: General Discussion and Questions
- Topic: [STM32 H7 dual processor series]
- Replies: 7
- Views: 4026
Re: [STM32 H7 dual processor series]
Jimmo, thank you very much !!! I compiled the static library (libmicropython.a). I created a small project with STM32CubeIDE with FreeRTOS and libmicropython. These are the lines in the main.c: ( for the moment I don't use any FreeRTOS task ) ... ... ... mp_stack_set_limit(40000 * (BYTES_PER_WORD / ...
- Mon Sep 28, 2020 9:23 am
- Forum: General Discussion and Questions
- Topic: [STM32 H7 dual processor series]
- Replies: 7
- Views: 4026
Re: [STM32 H7 dual processor series]
Hi Jimmo, I downloaded your library (libmicropython) from your branch and compiled. I prepared a small project (a blink project with FreeRTOS on a STM32 simple mono cpu STM32F411 board) and tried to link your library but I get the error: "libmicropython.a: error adding symbols: file format not recog...
- Sat Sep 19, 2020 11:46 am
- Forum: General Discussion and Questions
- Topic: MicroPython inside a FreRTOS task
- Replies: 1
- Views: 1196
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.
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.