Thank you,
I hase choose the option 2
Search found 5 matches
- Wed Dec 01, 2021 12:35 pm
- Forum: ESP32 boards
- Topic: undefined symbol __divsf3
- Replies: 3
- Views: 1705
- Mon Nov 29, 2021 8:45 am
- Forum: ESP32 boards
- Topic: undefined symbol __divsf3
- Replies: 3
- Views: 1705
undefined symbol __divsf3
Hello, I try to generate a mpy file from a c lib file. When the makefile link the lib, I have an undefined symbol error LINK build/iaq_1st_gen.o qstr vals: py_init_iaq_1st_gen qstr objs: LinkError: lib_iaq_1st_gen.o: undefined symbol: __divsf3 make: *** [../../../../../../../_codes/micropython/micro...
- Thu Jul 07, 2016 6:21 am
- Forum: General Discussion and Questions
- Topic: improve time machine
- Replies: 6
- Views: 5172
Re: improve time machine
You could try to use viper code, which is translated directly into machine instruction, like: BIT15 = const(1 << 15) import stm @micropython.viper def SCS_tick(self, tim): gpiod = ptr16(stm.GPIOD + stm.GPIO_BSRRL) gpiod[0] = BIT15 # set BIT15 high gpiod[1] = BIT15 # set BIT15 low That should result...
- Wed Jul 06, 2016 11:29 am
- Forum: General Discussion and Questions
- Topic: improve time machine
- Replies: 6
- Views: 5172
Re: improve time machine
it's with the code below!! if i do a loop: while (1): scs.mon_driver_SCS.SCS_tick(0) the pulse width is also 4.8µs and the time between 2 pulse is 45µs if i insert a sleep: @micropython.native def SCS_tick(self,tim): # le callback passe le timer import stm import time BIT15 = const(1 << 15) stm.mem1...
- Wed Jul 06, 2016 8:10 am
- Forum: General Discussion and Questions
- Topic: improve time machine
- Replies: 6
- Views: 5172
improve time machine
Hello, I set/reset a pin in an interrupt to see the time of the interrupt. the frequency of the CPU is 168MHz (STM32F407 Discovery) I enter in the interrupt all 34.7µs (it's OK) But the width of the impulsion is 4.8µs with all optimizations (it's too bigger). In C, the impulsion is several nano seco...