Search found 14 matches
- Fri Oct 24, 2014 4:48 am
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24002
Re: Python DFU util
True, but if you issue that command from a REPL over USB then it has the downside of clobbering the terminal program by eliminating the tty device it is connected to. Not a catastrophe usually, and it is certainly possible to type 'pyb.delay(10000); pyb.bootloader()' to give myself time to exit gra...
- Thu Oct 23, 2014 4:11 am
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24002
Re: Python DFU util
I saw the tear-down approach and jump to DFU, we set a magic byte instead in SRAM and reset and branch on to dfu, much easier.dhylands wrote:@blmorris: There is a pyb.bootloader() command so that you don't even need the DFU jumper any more (except in rare cases).
- Wed Oct 22, 2014 3:07 pm
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24002
Re: Python DFU util
Line 242:
Also fixed it in my repo and confirmed working with Py3
Code: Select all
return string.decode('utf-8').split('\0', 1)[0]
- Wed Oct 22, 2014 1:04 pm
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24002
Re: Python DFU util
Yes it doesn't matter where it lives, as long as it's somewhere in the same repo.
- Fri Oct 03, 2014 3:13 pm
- Forum: Hardware Projects
- Topic: MicroPython on Kite
- Replies: 10
- Views: 11735
Re: MicroPython on Kite
Awesome! no it won't fit, it's about 26mmx34mm Hmmm, if it is 26mm wide, it might... If it weren't for the SD card sticking out the side, it would fit. That implies I could possibly use it as a down-facing sensor, but not a recording device, unless I could find a flexible uSD extension cable. I sho...
- Fri Oct 03, 2014 3:12 pm
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24002
Re: Python DFU util
I see that there is pyelftoolls available. Perhaps reading the elf directly would be easier? I'd be willing to take a stab to integrate support for that (or for that matter supporing .dfu files). I think there's a function to parse DFU files in tools/dfu.py script ? if you would like to try that wo...
- Fri Oct 03, 2014 2:19 pm
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24002
Re: Python DFU util
And that will have the side effect of wiping out the internal flash disk. On the pyboard, the first 16K is for the IRQ vectors and some code. Then 112K of internal disk storage followed by the rest of the firmware. Yeah I know, actually I do a mass erase first anyway, that can be improved later. Th...
- Fri Oct 03, 2014 2:12 am
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24002
Python DFU util
Hey, I've been looking for a Python DFU implementation for STM32, but I couldn't find one, so I implemented some of the DFU protocol here: https://github.com/iabdalkader/openmv/blob/master/usr/pydfu.py Unlike dfu-util this actually exits DFU mode and jumps to the main application after finishing the...
- Tue Sep 30, 2014 3:52 pm
- Forum: Hardware Projects
- Topic: MicroPython on Kite
- Replies: 10
- Views: 11735
Re: MicroPython on Kite
I was thinking RC submarine : D Well, I'm still working on my autonomous submarine that runs MicroPython. http://forum.micropython.org/viewtopic.php?f=5&t=218 I don't think your board will fit inside though - the inside diameter of the shell is only 29mm. - Jon Awesome! no it won't fit, it's about ...
- Tue Sep 30, 2014 11:27 am
- Forum: Hardware Projects
- Topic: MicroPython on Kite
- Replies: 10
- Views: 11735
Re: MicroPython on Kite
Hi, nice. What exactly was the task of the board? I was playing with the idea to control a little zeppelin with the pyboard. Small enough to let if float around in the entrance area of the university main building. I struggle to find light enough components (the pyboard is small and light enough), ...