Search found 8 matches

by formica
Wed Aug 04, 2021 1:40 pm
Forum: General Discussion and Questions
Topic: Converting integers inside a callback
Replies: 1
Views: 920

Converting integers inside a callback

Hi guys, trying to convert an integer to an hex, and put it into a bytearray, inside an interrupt handler, but I obtain a memory error. The callback is triggered by an external rising interrupt. Any experience about that? import ... micropython.alloc_emergency_exception_buf(100) count = 0 ct = bytea...
by formica
Sat Feb 20, 2021 10:58 pm
Forum: Programs, Libraries and Tools
Topic: STM32, SDIO and LittleFS
Replies: 1
Views: 1729

STM32, SDIO and LittleFS

I'm thinking to switch from FAT to LittleFS, after experiencing that FAT significantly slows down after a while on my SDCard. My application stores a file every 15.8 secs on SDcard, and after a while I guess that FAT32 fragmentation affect the storage velocity. I would like to know if LittleFS can o...
by formica
Tue Mar 27, 2018 2:22 pm
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 463
Views: 538728

Re: MicroPython on ESP32 with SPIRAM support

@loboris, can you confirm that your micropython version works properly with pycom W01 oem module?
Did you try also the to use the extended RAM, external antenna, usb uploading using 'ampy' and the uasyncio library?

Regards
RM
by formica
Thu Nov 16, 2017 11:05 pm
Forum: General Discussion and Questions
Topic: Generic Interrupt Handler
Replies: 0
Views: 1312

Generic Interrupt Handler

I'm hacking with non blocking dma functionalities through "stm" module and I need to define, from python, an interrupt handler triggering a specific dma interrupt.
How can I do?
by formica
Sat Sep 30, 2017 1:54 pm
Forum: General Discussion and Questions
Topic: SDIO speed with STM32F439
Replies: 1
Views: 2127

SDIO speed with STM32F439

Hi guys, I'm using a custom board with an SDcard connected to a STM32F439 through SDIO port. The SDcard is automatically recognized as mass device and everything seems to be ok but I'm noticing that writing on the SD is really slow: I have measured 10KB/sec in average on a CLASS 10 SD card. I'm usin...
by formica
Fri Sep 29, 2017 11:52 am
Forum: Drivers for External Components
Topic: STM32F439 FSMC driver for external SRAM
Replies: 0
Views: 1882

STM32F439 FSMC driver for external SRAM

Hi guys,
I would like to share the first release of my FSMC driver for STM32F439.
It's just a piece of working code but maybe could be useful for someone.

Github repo:
https://github.com/formica-multiuso/mic ... -fsmc-sram

Regards
Roberto
by formica
Thu Sep 21, 2017 3:17 pm
Forum: Drivers for External Components
Topic: External SRAM with STMHAL: how to use it?
Replies: 2
Views: 2858

Re: External SRAM with STMHAL: how to use it?

Ok, I'm trying to follows your hints. I didn't test the code enough but this is my first try: [code] import stm #### GPIO INIT ### ### GPIOx_MODER INIT - Offset: 0x00 ##### stm.mem32[stm.GPIOD + 0x00] |= 0xAAAA0A0A stm.mem32[stm.GPIOE + 0x00] |= 0xAAAA8A8A stm.mem32[stm.GPIOF + 0x00] |= 0xAA000AAA s...
by formica
Tue Sep 19, 2017 4:43 pm
Forum: Drivers for External Components
Topic: External SRAM with STMHAL: how to use it?
Replies: 2
Views: 2858

External SRAM with STMHAL: how to use it?

Hi all, I'm using micropython on a custom board with STM32F439ZIT6 and an external SRAM connected to the FMC port (Flexible Memory Controller). I guess that there is no micropython module to use it. So, I'm considering two alternatives: 1. Writing a module upon the Cubo STMHAL library, exporting the...