Search found 26 matches

by ales.coppelli
Thu Dec 24, 2020 9:39 am
Forum: Programs, Libraries and Tools
Topic: Link to class methods in composition technique
Replies: 2
Views: 121

Re: Link to class methods in composition technique

Thank you very much Stijn. Sorry for my goofy post.
I'll try immidiatly your suggestions.
by ales.coppelli
Wed Dec 23, 2020 11:08 am
Forum: Programs, Libraries and Tools
Topic: Link to class methods in composition technique
Replies: 2
Views: 121

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...
by ales.coppelli
Wed Dec 23, 2020 11:07 am
Forum: Development of MicroPython
Topic: Link to class methods in composition technique
Replies: 0
Views: 444

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...
by ales.coppelli
Sat Dec 19, 2020 11:25 am
Forum: Development of MicroPython
Topic: Driver for accelerometer LSM303DLHC
Replies: 0
Views: 459

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...
by ales.coppelli
Mon Oct 26, 2020 2:28 pm
Forum: Development of MicroPython
Topic: Problem with MicroPython external C modules
Replies: 7
Views: 664

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 ' )).
by ales.coppelli
Sun Oct 25, 2020 11:53 am
Forum: Development of MicroPython
Topic: Problem with MicroPython external C modules
Replies: 7
Views: 664

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...
by ales.coppelli
Sat Oct 24, 2020 5:39 pm
Forum: Development of MicroPython
Topic: Problem with MicroPython external C modules
Replies: 7
Views: 664

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=../../../...
by ales.coppelli
Sat Oct 24, 2020 8:57 am
Forum: Development of MicroPython
Topic: Problem with MicroPython external C modules
Replies: 7
Views: 664

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...
by ales.coppelli
Wed Oct 07, 2020 10:21 am
Forum: General Discussion and Questions
Topic: [STM32 H7 dual processor series]
Replies: 7
Views: 950

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 *...
by ales.coppelli
Tue Oct 06, 2020 12:40 pm
Forum: General Discussion and Questions
Topic: [STM32 H7 dual processor series]
Replies: 7
Views: 950

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 / ...