Search found 3821 matches

by dhylands
Fri May 16, 2014 2:13 pm
Forum: General Discussion and Questions
Topic: Help getting REPL prompt in screen
Replies: 6
Views: 7251

Re: Help getting REPL prompt in screen

You should also be able to use Control-C to stop the running program and be dropped to the REPL prompt.
by dhylands
Thu May 15, 2014 4:48 pm
Forum: General Discussion and Questions
Topic: [Solved] Use of class Pin crash the pyboard
Replies: 8
Views: 8563

Re: [Solved] Use of class Pin crash the pyboard

I'm also using the latest dfu-util, built from source. I just thought I'd mention that in case you run into any differences.

The latest dfu-util supports -s:leave properly when flashing, which is why I'm using it (just an FYI)
by dhylands
Thu May 15, 2014 4:19 pm
Forum: General Discussion and Questions
Topic: [Solved] Use of class Pin crash the pyboard
Replies: 8
Views: 8563

Re: [Solved] Use of class Pin crash the pyboard

So the 16K winds up being what dfu-util uploads by default. So the firmware is laid out as 16K vectors + 112K MSD area + firmware. I did: 336 >dfu-util -a 0 --upload firmware.bin -s:524288 dfu-util 0.7 Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2012 Tormod Vold...
by dhylands
Thu May 15, 2014 3:45 pm
Forum: Development of MicroPython
Topic: Communication between micro pyhton and c++
Replies: 4
Views: 6516

Re: Communication between micro pyhton and c++

I'll guess that you need to send \r as the end of line rather than \n

Most serial terminals send \r when you hit ENTER.
by dhylands
Thu May 15, 2014 3:31 pm
Forum: General Discussion and Questions
Topic: [Solved] Use of class Pin crash the pyboard
Replies: 8
Views: 8563

Re: [Solved] Use of class Pin crash the pyboard

The firmware is split into 2 pieces. 16k plus the rest.

This is because the lower flash blocks are smaller and better to use for the mass storage device.
by dhylands
Tue May 13, 2014 5:38 am
Forum: General Discussion and Questions
Topic: Irregular processing power
Replies: 21
Views: 24419

Re: Irregular processing power

Perhaps move the gc.disable to just before the loop?

I suspect that a hc during initialization is causing your memory error with gc disabled earlier.
by dhylands
Fri May 09, 2014 3:52 pm
Forum: General Discussion and Questions
Topic: pheriperal indexing start from O || 1
Replies: 5
Views: 6483

Re: pheriperal indexing start from O || 1

At the datasheet level, all of the peripherals are numbered starting from 1. So you have I2C1, I2C2, SPI1, SPI2, UART1, UART2, TIM1, etc. The Led isn't really a datasheet item, but if you're trying to rationalize stuff from the datasheet to python its easier if there isn't a +1/-1 to always deal wit...
by dhylands
Wed May 07, 2014 1:01 pm
Forum: MicroPython pyboard
Topic: Expansion boards - pyshields
Replies: 5
Views: 18091

Re: Expansion boards - pyshields

I thought I would mention that I've been using a Netduino Plus 2 which has an Arduino shield footprint and uses the same microcontroller as the pyboard.

I haven't added the support for the sdcard yet (its wired up as 1-bit SPI) nor the ethernet, but that will come in due course.
by dhylands
Wed May 07, 2014 6:15 am
Forum: MicroPython pyboard
Topic: Adding a BOOT0 switch
Replies: 4
Views: 6569

Adding a BOOT0 switch

Since I flash new versions of MicroPython quite frequently, I decided to add a BOOT0 switch. The pyboard is mounted in a SliceCase Boot-Switch-800.jpg The red wire runs to 3.3v and the white wire runs to the pull-down resistor on BOOT0. A dab of hot glue holds the switch in place on the processor. N...
by dhylands
Wed May 07, 2014 12:13 am
Forum: General Discussion and Questions
Topic: Broken links in the site
Replies: 3
Views: 5293

Re: Broken links in the site

Two were broken for me earlier as well, but they seem to be working now as well, so obviously they've been fixed.