Search found 27 matches

by gradoj
Tue Sep 10, 2019 5:22 am
Forum: Development of MicroPython
Topic: AES-CMAC python interface
Replies: 1
Views: 123

AES-CMAC python interface

Hello. I would like to use AES-CMAC which is used for message verification/authentication in micropython. It appears the ucryptolib AES code comes from mbed tls which also includes CMAC code. Anyone know if cmac has been stripped out for micropython or do I need to just build a python interface on t...
by gradoj
Wed Nov 14, 2018 11:52 pm
Forum: WiPy and CC3200 boards
Topic: TI CC1352R
Replies: 1
Views: 870

Re: TI CC1352R

I am not really sure if there are going to be enough resources to run micropython and an rtos on this chip or not. I'd like to compile it and see what happens but really having trouble wading through the makefiles. I am trying to combine the minimal micropython port and a UART example from CodeCompo...
by gradoj
Mon Mar 13, 2017 6:15 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 54
Views: 23032

Re: uPyLoader - simple file transfer and communication

I am trying to use uPyLoader with a uart but cannot get the file transfer scripts to the board. My build 1.8.7 does not include machine.UART which uPyLoader is dependent on. What is machine.UART - can I use pyb.UART? Cannot transfer files with rshell over UART reliably either.
by gradoj
Thu Dec 08, 2016 5:13 pm
Forum: General Discussion and Questions
Topic: Running REPL with code running
Replies: 1
Views: 1097

Running REPL with code running

Looking for a little guidance. I would like to run code as well as have access to the REPL. As a simplified example I would like to read from an accelerometer periodically and put the data in ram. While this is running and collecting the data I would like to have access to the REPL so I could do a a...
by gradoj
Wed Jul 22, 2015 10:11 pm
Forum: General Discussion and Questions
Topic: How to change default flash contents?
Replies: 8
Views: 2876

Re: How to change default flash contents?

There are going to be a few changes to make this work with Windows: -wrong slashes in paths I think coming from resolve_path(). cp hangs. -os.path.exists(com_port) isn't going to work with Windows. I'm using --nowait -backspace in repl echoes as ←[K -ls -l works but filenames begin and end in strang...
by gradoj
Tue Jul 21, 2015 8:34 pm
Forum: General Discussion and Questions
Topic: How to change default flash contents?
Replies: 8
Views: 2876

Re: How to change default flash contents?

I have a board with no USB as well and have been using the script here to change the filesystem contents. Just wondering, dhylands, if you ever finished that program to transfer files to/from internal flash? Thanks.
by gradoj
Tue Jun 23, 2015 11:10 pm
Forum: Other Boards
Topic: Trouble understanding python modules
Replies: 5
Views: 2258

Re: Trouble understanding python modules

Yep, that did it. Everything seems to be working now. Thanks again for your help.
by gradoj
Mon Jun 22, 2015 10:50 pm
Forum: Other Boards
Topic: Trouble understanding python modules
Replies: 5
Views: 2258

Re: Trouble understanding python modules

Thanks for the explanation-I had my terminology all wrong. I used the RTC class as a starting point. If I run my code through pyboard it seems to work just fine. If I run it at the REPL I get a hardfault. Any ideas what is different between the two methods which would point to my error? I have the R...
by gradoj
Fri Jun 12, 2015 10:38 pm
Forum: Other Boards
Topic: Trouble understanding python modules
Replies: 5
Views: 2258

Trouble understanding python modules

I've written a new module using the LED and UART modules for reference. I am struggling to understand a few points and was hoping someone could explain. I can't get this function to work unless I remove the self_in variable. I don't understand how this works. STATIC mp_uint_t fsmc_obj_write(mp_obj_t...
by gradoj
Sun Jun 07, 2015 9:17 pm
Forum: Development of MicroPython
Topic: FSMC support strategy
Replies: 4
Views: 4700

Re: FSMC support strategy

In my application the send recv is all I need. I'm not exactly sure what you had in mind with ustruct. What would that look like? .pack2ram() and .unpackfrom()