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.

Jason Smith

Member Since 08 Aug 2010
Offline Last Active Dec 23 2011 11:14 PM
-----

#347 Steps to restore an Erased Netduino

Posted by Jason Smith on 13 August 2010 - 02:37 PM

Scratch that last request chris... i got it to work... Sorry about that. I will write up a step by step process if you like to save you the trouble...I am sure there are going to be some people like me that are new when it comes to this stuff :D


So here is the step by step process:

1. Download SAM-BA from Atmel here and install : http://www.atmel.com...sp?tool_id=3883

2. Download the latest Netduino firmware, and the TinyBooterDecompressor_v4.1.0.1.zip file. (Currently both are located Here.)

3. (**WARNING.. no turning back after this point.) Using a jumper, Connect the 3V3 power header to the ERASE pin (gold pad directly underneath digital pin 0) for about 2-3 seconds. After doing this, disconnect the Netduino from your PC.

4. Plug in your Netduino's usb cable back into your pc. At this point for me, windows vista searched automatically for a driver and found the right one for a virtual serial port. If yours does not do this, you may need to point to the driver file in the Program Files > Atmel SAM-BA > Drivers directory.

5. Run SAM-BA. Select the COM port that your device is connected to. In my case this was COM4. Select AT91SAM7X512-ex from the dropdown.

6. When in SAM-BA, you will need to run the following two scripts first: [a] enable boot from flash; [b] enable flash access.

7. Next you will need to flash the TinyBooterDecompressor.bin file to your Netduino. At this point you are asked "Do you want to lock involved regions(s) (0 to 2)".." I wasnt sure what to pick here but I believe I selected no. (Chris Walker confirmed in a later post that "NO" should be selected.) Once this has been completed (only takes a few seconds), you are done flashing the TinyBooterDecompressor.

8. At this point you can unplug the USB cable connecting your computer to your Netduino, and then plug it back in. Now we can readd the Netduino firmware.

9. Go to the Start Menu > Programs > Microsoft .NET Micro Framework 4.1 > Tools

10. Run MFDeploy.exe. Be careful to run MFDeploy.exe and not MFDeploy.exe.config (as file extensions are hidden by default)

11. In the Device section at top, select USB instead of Serial. Your Netduino should appear in the drop-down; if not, select it.

12. Click "Browse..." and select the unzipped Netduino firmware files from step #1 (ER_CONFIG and ER_FLASH).

13. Press "Deploy". It will take a few minutes to update your Netduino. At this point you should be finished. Disconnect then Reconnect your Netduino via usb and it should be back up and running.


Please let me know if I missed anything here. Thanks again for all your help on this issue Chris!

Jason.


#340 Steps to restore an Erased Netduino

Posted by Jason Smith on 13 August 2010 - 06:46 AM

Here is an overview:
Step 1: connect the 3V3 power header to the ERASE pin (gold pad directly underneath digital pin 0)
Step 2: use SAM-BA to flash TinyBooterDecompressor.bin to your erased Netduino
Step 3: use MFDeploy to deploy the Netduino firmware to your Netduino

Here are the files:
http://forums.netdui...e-v410-patch-1/

If you would like step-by-step instructions on how to use SAM-BA, I can write some up here... But basically, you [a] enable boot from flash; [b] enable flash access; [c] flash the TinyBooterDecompressor.bin file to your Netduino. Your erased Netduino will show up as a virtual serial port; you may need to manually point it to the driver in the Program Files > Atmel SAM-BA > Drivers directory.

Chris

I may need a step by step write-up. :unsure: Basically, I attempted to do what you said, but didnt have much luck. I downloaded SAM-BA, and I got my Netduino to come up using COM4. I selected at91sam7x512-ek when prompted to select my board. I then selected the script "Boot from Flash (GPNVM2)" then "Enable Flash Access". Next I selected the TinyBooterDecompressor.bin file needed from "Send File Name" area, and sent the file. I was then prompted with "Do you want to lock involved regions(s) (0 to 2)"..I didnt know what to select here so I clicked yes. I received the following output:

(SAM-BA v2.10) 1 % send_file {Flash} "C:/Users/Jason/Desktop/TinyBooterDecompressor_v4.1.0.1/TinyBooterDecompressor.bin" 0x100000 0
-I- Send File C:/Users/Jason/Desktop/TinyBooterDecompressor_v4.1.0.1/TinyBooterDecompressor.bin at address 0x100000
first_sector 0 last_sector 2
-I- Writing: 0xA358 bytes at 0x0 (buffer addr : 0x202C88)
-I- 0xA358 bytes written by applet
-I- Sector 0 locked
-I- Sector 1 locked
-I- Sector 2 locked
(SAM-BA v2.10) 1 %


I then tried to redeploy the Netduino firmware via com4 in MFDeploy without luck.. Recieved the error "Error: No response from device"


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.