Main Site Documentation

Update without Visual Studio


#1

Hello,

Is there a way to update the programm on my Cobra-Board without Visual Studio?
I want to upload a new Programm to my Board via the internet.


#2

You can write an updater yourself using the SystemUpdate class.


#3

Read about it here

http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/html/53c9fe92-8150-bd36-e2de-bf4fc6f13f8f.htm

Check Pyxis2 source code it has a very good reference implementation.


#4

Thanks for your help.
I wrote an updater by myself and it worked fine.


#5

Is it really not some existing software allowing to flash only the user program on FEZ ? as MFDeploy do on other platforms?..

Since we can load and debug through CV2010 through USB or serial link, the function is already developed “somewhere”, so it seems curious that we have to reimplement it by ourselves…

I am not lazy at all, but I don’t like the feeling to reinvent the wheel… :-/


#6

You don’t have to reinvent the wheel you can reference the MFDeploy DLL and go at it…

Cheers,


#7

Yes, I just see that… so there is something to develop, but it should be easy, thanks to MFDeployEngine.dll, isn’t it?


#8

Hello all,
I dug up this post, because I am now trying to write some code to update firmware without visual studio, but from the target through USB host :

Typically I am trying to do a device able to self update itself when the user plugs a usb penstick. (I work on EMX module) :

  1. User plugs USB stick with a version42.hex file (generated from mfdeploy for exemple)
  2. EMX board detects the USB stick, and a check that it includes the expected file name and the expectead header.
  3. The EMX software ask to copy the .hex file data from USB to the correct flash address
  4. User cycle the power
  5. Update is done!

Is there some similar mecanism already existing? (through a library or some code exemple…)
Obviously, the tricky thing is step 3 : How to copy data from USB to flash? What is the correct flash address? Indeed, I am quite sure that if I try that I have a good chance to accidentally erase the bootloader of my EMX module…

Cheers,


#9

Thank you for your very quick reply, I just found an other exemple on NETMF Library Documentation :wink:

In case it helps :
http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation%20v4.1/html/53c9fe92-8150-bd36-e2de-bf4fc6f13f8f.htm