Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

NetDuino mini locked


  • Please log in to reply
8 replies to this topic

#1 boiacchi

boiacchi

    Member

  • Members
  • PipPip
  • 29 posts
  • LocationLondon

Posted 29 November 2012 - 10:12 AM

Hi, I'm developing a project where I need to communicate with the netduino mini using the serial communication (via FTDI-COM1). For deploying and debugging I'm using the FTDI cable which is connected to the COM1 on the netduino mini. I have wrongly deployed a program on the netduino mini(the one that has to manage the serial communication) that uses the COM1 which is already used for deploying. since that I haven't been able to deploy anymore on my nedtuino mini (I think for reason I have just explained). How can I reset/erase the program on the netduino mini? Thanks

#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 29 November 2012 - 07:12 PM

put 3.3v to the gold erase pad, its very small.

that near pin12, and watch out you dont hit the pin.
mini pinout

you than have to reflash tinybooterdecompressor via rs232 (not uart!).
be sure to flash the right one. if you wanna use rs232 for programming use the rs232 version, else the uart one.


mini firmware and short description how to flash it


edit: youd could also boot it in bootloader mode, it wount execute your app than, and you can delete it per mfdeploy (the erase button near ping)
  • boiacchi likes this

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 30 November 2012 - 08:45 AM

edit: youd could also boot it in bootloader mode, it wount execute your app than, and you can delete it per mfdeploy (the erase button near ping)

To add to NooM's excellent tip... If you apply 3.3V-12V to the DTR pin on your Netduino Mini while powering it up, it'll go into TinyBooter mode. At that point you can simply press ERASE in MFDeploy to clear off your existing application.

Chris
  • boiacchi likes this

#4 boiacchi

boiacchi

    Member

  • Members
  • PipPip
  • 29 posts
  • LocationLondon

Posted 30 November 2012 - 09:52 AM

put 3.3v to the gold erase pad, its very small.

that near pin12, and watch out you dont hit the pin.
mini pinout

you than have to reflash tinybooterdecompressor via rs232 (not uart!).
be sure to flash the right one. if you wanna use rs232 for programming use the rs232 version, else the uart one.


mini firmware and short description how to flash it


edit: youd could also boot it in bootloader mode, it wount execute your app than, and you can delete it per mfdeploy (the erase button near ping)



thanks a lot it did work like a charm :-)

#5 boiacchi

boiacchi

    Member

  • Members
  • PipPip
  • 29 posts
  • LocationLondon

Posted 30 November 2012 - 09:52 AM

To add to NooM's excellent tip... If you apply 3.3V-12V to the DTR pin on your Netduino Mini while powering it up, it'll go into TinyBooter mode. At that point you can simply press ERASE in MFDeploy to clear off your existing application.

Chris



thanks Chris. I'll bear it in mind for the next time.

#6 NeverCast

NeverCast

    New Member

  • Members
  • Pip
  • 6 posts

Posted 14 December 2013 - 09:18 AM

Really sorry to grave-dig this, but felt that it might be better than creating a new topic. I've the same issue, locked my device by using the MultiSPI library and setting the baud far too high. Now I can't communicate with the device.  The main issue I have is that when applying power to DTR, the device still boots and starts the program ( I can see the program starting from PuTTY). I'm applying 5v to DTR from the same 5v rail that is powering the device. Should I be doing it differently? I'm using a PC PSU on my test bench for this. Everything is running on the 5V rail. I am using UART for debugging and deploying.



#7 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 14 December 2013 - 12:03 PM

Hi NeverCast, If you're using the 4.1 firmware, the DTR pin should work. If you're using 4.2 firmware...there are some changes in NETMF which may require that you erase and reflash the Mini. Chris

#8 NeverCast

NeverCast

    New Member

  • Members
  • Pip
  • 6 posts

Posted 14 December 2013 - 10:34 PM

I managed to attach the Visual Studio debugger (Even though it could not deploy), by restarting the mini just as I pressed Yes on the Continue anyway? Dialog; and juggle the code pointer to cause a null pointer, crashing the program and allowing me to deploy on it. However the DTR still does not work on boot, most of the pins are floating, should something be grounded as a reference for the DTR pin ? I've recently had a lot of floating pin issues and I've run out of pull down resisters to combat it. 

 

I bought the Mini a while back, it's most certainly running 4.1 firmware.

 

Thanks, Josh.



#9 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 December 2013 - 12:05 AM

Hi NeverCast, The DTR pins has special circuitry which enables you to drive it high/low via RS-232 signals (+/- 12V). It is "pulled down" by default. I would try connecting to the Netduino Mini via MFDeploy and erasing your current app--just to make sure that things are in a known-good state. Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.