How to tell Mini to auto start my app?
#1
Posted 20 November 2010 - 07:05 AM
However, when I unplug USB from the FTDI, or unplug the FTDI from the Mini and recycle power to the Mini, blinky does not automatically start.
What's the trick to make Mini automatically run my app?
#2
Posted 20 November 2010 - 07:26 AM
#3
Posted 20 November 2010 - 01:33 PM
#4
Posted 20 November 2010 - 04:29 PM
Are you sure you are powering it properly? Sounds like the mini is only running off the ftdi power, if that's even possible?
Bill,
For being 32-bit, the Netduino Mini uses surprisingly few mA. Especially without any LEDs to power.
But you bring up a good point--the FTDI adapter may not be able to supply enough power for the Netduino Mini _and_ connected components.
Chris
- hari likes this
#5
Posted 20 November 2010 - 06:02 PM
Attached is the source. Also included in that folder are two text files showing what the terminal app receives upon powerup with DTR floating and DTR connected to pin 21 (5V).
EDIT: I attached a second DTR-float file, the one in the zip was empty for some reason.
I do not have any wire going from FTDI 3.3V connected to anything. Unless you meant that it gets power from FTDI TX/RX (which makes no sense to me).
BTW, if I disconnect the LED/resistor from pin 9 and tap it on 5V, LED still works.
Nothing on the Mini ever got hot, and no magic white smoke.
I'm puzzled.
http://www.youtube.com/watch?v=03Q-mmCgKUA
Attached Files
#6
Posted 20 November 2010 - 08:38 PM
#7
Posted 20 November 2010 - 09:04 PM
Oops sorry about the video. it's unlisted now, so you should be able to play it.Hi Hari,
The DTR-float.txt file shows that the Mini is booting properly. The video is marked as "private" though...could you make it public?
BTW, what power source are you using on VIN? Type/voltage/etc.?
I love that you're already building something with your Netduino Mini...
Chris
VIN is a 9V fresh battery. I use multitester to confirm 9V at pin 24 and 5V on pin 21.
I have a few ideas for the Mini, this is nothing but a blinky to learn about the pinouts. It was interesting to me how uncomfortable I was having to lookup everything because the Mini pinout is completely different than Arduino/Netduino.
The procedure for switching from rs-232 to uart was cool. is there a way to switch back?
#8
Posted 20 November 2010 - 09:18 PM
Your LED is using pin PA9 of the MCU instead of physical pin 9 on the Netduino Mini.
//instead of: OutputPort led = new OutputPort(Cpu.Pin.GPIO_Pin9,false); //use this: OutputPort led = new OutputPort(Pins.GPIO_PIN_9,false);
There is a procedure to switch back to RS232. Actually, there three options. 1) You can re-program the "transport select" app and then use Putty/HyperTerminal to switch ports back. 2) You can use the upcoming "Netduino Update" app...more on that later. 3) You can also use the SecretLabs.NETMF.Diagnostics.dll assembly--but it's something we're still building out on so its object model may change in the future.
I can add the "transport select" app and SecretLabs.NETMF.Diagnostics.dll assemblies to the Netduino SDK source ZIP file if you'd like...
Chris
#9
Posted 20 November 2010 - 10:17 PM
Do'h! But I'm glad that I didn't kill the Mini.Your LED is using pin PA9 of the MCU instead of physical pin 9 on the Netduino Mini.
//instead of: OutputPort led = new OutputPort(Cpu.Pin.GPIO_Pin9,false); //use this: OutputPort led = new OutputPort(Pins.GPIO_PIN_9,false);
That would be nice. I may need that someday, but right now, I don't have an RS-232 cable.I can add the "transport select" app and SecretLabs.NETMF.Diagnostics.dll assemblies to the Netduino SDK source ZIP file if you'd like...
Off to building something real now. Thanks Chris!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users