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

Compiled 4.3, got ER_CONFIG & ER_FLASH, but how to deploy?


  • Please log in to reply
5 replies to this topic

#1 timothyp

timothyp

    Member

  • Members
  • PipPip
  • 24 posts

Posted 06 March 2015 - 04:32 AM

Hi,

 

I followed this http://wiki.netduino...to-GCC-4-6.ashx

and https://learn.adafru...ll#prerequisits

 

I built the 4.3 firmware and now have:

...\le\FLASH\release\NetduinoPlus2\bin\tinyclr.hex\ER_CONFIG
...\le\FLASH\release\NetduinoPlus2\bin\tinyclr.hex\ER_FLASH

According tot he guide on adafruit:

 

 

 

Then you need to follow this guide first: http://wiki.netduino...4-6.ashx?HL=gcc , but after the build finishes with no errors, you do not need to generate the DFU file.

 

Here it says I don't need to generate the DFU file and can simply deploy with MFDeploy.

 

Now the Netduino board has been prepared with the 4.3 firmware using the files and instructions
in this post: http://forums.netdui...-firmware-v431/    

Which basically means I used the NetduinoUpdate_4.3.1.0 tool to install the original firmware.

(This is also what I use whenever I manage to completely lock up the board)

 

When I use MFDeploy, it connects to the device, I can select the 2 files mentioned earlier and

it seems to be starting the flashing process but then it throws an error it cannot connect to the device.

 

Going back to the guide on the Netduino wiki (which is for 4.2, but I kept that in mind while following it)

 

 

 

Use the 'DFU File Manager' from the 'DfuSe Demo' apps, to extract a binary from a dfu, to extract the pieces of the official firmware (we only need the Tinybooter). I.e. NetduinoPlus2_Firmware_4.2.1.2_00_08000000.bin

Use the 'DFU File Manager' from the 'DfuSe Demo' apps, to generate a dfu from multiple bin files. Since these are bin file, you will need to specify their location in flash. The locations to use are:

 

This guide says I do have to generate DFU files and that pieces have to be extracted from the official firmware.
 

So here are the questions:

  1. Why does one guide tell me to flash using MFDeploy
  2. Why doesn't it work
  3. Why does the other guide tell me to extract the DFU files
  4. Where exactly can I find the official firmware files it is referring to

 

 

 

 



#2 timothyp

timothyp

    Member

  • Members
  • PipPip
  • 24 posts

Posted 11 March 2015 - 02:27 AM

Apparently the scatterfile I was using contained incorrect address locations,

so I copied the content of the rvds scatter file. That solved the deployment via MFDeploy issue.

Still have no idea how to create the DFU files though.



#3 Juzzer

Juzzer

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts
  • LocationHertfordshire, UK

Posted 11 March 2015 - 09:24 AM

Rename Tinybooter.hex to Tinybooter.s19

 

Open DFU File Manager

 

Top option "I want to GENERATE a DFU......"

 

Click "S19 or Hex" button - call it Tinyboote.dfu

 

Job done



#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 12 March 2015 - 09:55 PM

Hi timothyp,

Just FYI... Netduino Update can flash raw HEX files. It's pretty easy to create a script to drop the files into NetduinoUpdate's firmware folder.

Then just run NetduinoUpdate.exe and flash :)

Chris

#5 timothyp

timothyp

    Member

  • Members
  • PipPip
  • 24 posts

Posted 17 March 2015 - 08:26 AM

Sweet, I'll try that.

Meanwhile everything works like a charm. Been able to modify the sources, add C++ code and get it all working together.

Once you know how it seems easy... but oh boy to get started... :P



#6 timothyp

timothyp

    Member

  • Members
  • PipPip
  • 24 posts

Posted 18 March 2015 - 03:49 AM

That seemed to work :-)

Is the source for the Netduino Update application available by any chance? 






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.