Search found 68 matches

by pagano.paganino
Wed Jan 23, 2019 10:02 am
Forum: Drivers for External Components
Topic: ATECC508A and ATECC608A cryptoauthlib
Replies: 0
Views: 89

ATECC508A and ATECC608A cryptoauthlib

Hi folks, at this link https://github.com/dmazzella/ucryptoauthlib I have created a driver in pure-python for interact with the Microchip's secure element ATECC508A and ATECC608A from a PyBoard. The API are the same of the C library/driver from Microchip https://github.com/MicrochipTech/cryptoauthli...
by pagano.paganino
Sat Dec 22, 2018 10:21 pm
Forum: The MicroPython pyboard
Topic: Support for hardware crypto?
Replies: 7
Views: 1268

Re: Support for hardware crypto?

I am also looking into seeing if I can find somebody to help with evaluating porting the STM32crypto library to Micropython. I just do not have the time or knowledge to do this efficiently. what features do you need to port the STM32crypto library to micropython? RSA? certificates? csr? ECC? AES? 3...
by pagano.paganino
Fri Dec 21, 2018 10:50 pm
Forum: General Discussion and Questions
Topic: Memmory Allocation Error although plenty of RAM left...
Replies: 21
Views: 747

Re: Memmory Allocation Error although plenty of RAM left...

try with gc.threshold

Code: Select all

import gc
gc.threshold((gc.mem_alloc() + gc.mem_free()) // 10)
try to calibrate the right size for you instead of

Code: Select all

(gc.mem_alloc() + gc.mem_free()) // 10)
I suggest you try with a very low value (4096) and increase it.
by pagano.paganino
Mon Sep 24, 2018 10:14 pm
Forum: The MicroPython pyboard
Topic: Support for hardware crypto?
Replies: 7
Views: 1268

Re: Support for hardware crypto?

Hi, yesterday I created a github repository and started a first version of the driver for atecc508a. The long-term goal is to support all devices in the family of the secure elements of Microchip ateccX08a. Now I'm working on the ATECC508A device and at the moment the INFO and SHA commands are suppo...
by pagano.paganino
Sat Sep 15, 2018 10:08 pm
Forum: Development of MicroPython
Topic: MicroPython on STM32F7
Replies: 10
Views: 720

Re: MicroPython on STM32F7

The problem is that the content of the file "modules/dht.py" is not python code but the text "../../../drivers/dht/dht.py" which represents a symbolic link on unix systems. You are compiling with mingw (but the same problem is with msys2) which does not understand that "modules/dht.py" file is not a...
by pagano.paganino
Sat Sep 15, 2018 9:42 pm
Forum: General Discussion and Questions
Topic: wiimote address to PIN
Replies: 5
Views: 368

Re: wiimote address to PIN

try this:

Code: Select all

a = bytearray(b'\x6D\x7E\x3B\x35\x1E\x00')
":".join("%02x" % b for b in reversed(a))
by pagano.paganino
Thu Sep 13, 2018 3:12 pm
Forum: Development of MicroPython
Topic: MicroPython on STM32F7
Replies: 10
Views: 720

Re: MicroPython on STM32F7

The problem is simbolic link under mingw e msys2.
Replace linked files with originals if you need it, else remove unused.

Regards,
D.
by pagano.paganino
Tue Aug 28, 2018 9:47 pm
Forum: The MicroPython pyboard
Topic: Support for hardware crypto?
Replies: 7
Views: 1268

Re: Support for hardware crypto?

Hi Roland,
have you got the chance and time to try the secure element ATECC508A?

Best Regards,
D.
by pagano.paganino
Fri May 04, 2018 4:49 pm
Forum: General Discussion and Questions
Topic: return printable chars from byte array
Replies: 8
Views: 832

Re: return printable chars from byte array

Hi, this is a patch for a modification to the modure.c file that implements sub and other convenient features (I hope). diff --git "a/C:\\Users\\Damiano\\AppData\\Local\\Temp\\TortoiseGit\\modure-74ab341.000.c" "b/C:\\msys64_micropython\\home\\dma\\projects\\micropython\\extmod\\modure.c" index 31c2...
by pagano.paganino
Tue Jan 30, 2018 10:55 pm
Forum: The MicroPython pyboard
Topic: Little wonders need some thanks
Replies: 7
Views: 1649

Re: Little wonders need some thanks

Thanks guys! It's my pleasure to have developed MicroPython and the pyboard. Coming from an academic background, it's the technical side of things that I enjoy the most, and still everyday I love finding new ways to optimise and improve the code. And it's fantastic to have people using the software...