Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
replacing_the_firmware [2015/11/17 16:39]
admin
replacing_the_firmware [2018/02/08 17:26] (current)
Line 3: Line 3:
 New firmware is released from time to time for all our modules. We expect this to be true also for the Accra module as it is an active project. The process of updating the firmware of the module is a simple one. Just follow the steps outlined in the [[http://​www.vscp.org/​docs/​vscpworks/​doku.php?​id=start|VSCP Works documentation]]. New firmware is released from time to time for all our modules. We expect this to be true also for the Accra module as it is an active project. The process of updating the firmware of the module is a simple one. Just follow the steps outlined in the [[http://​www.vscp.org/​docs/​vscpworks/​doku.php?​id=start|VSCP Works documentation]].
  
 +===== The bootloader application ===== 
  
 +First you should download and install [[http://​www.grodansparadis.com/​downloads/​Serial_Bootloader_AN1310_v1.05r.exe|this file]]. ​ You can uninstall the file as soon as you are done uploading the firmware of the Frankfurt RS-232 module.
 +
 +{{ :​bootloader0.png?​300 |}}
 +
 +After install you can find the executable under the Microchip folder in the startup menu.
 +
 +===== Where is the firmware? =====
 +
 +As with all our modules you can find the firmware for the Frankfurt RS-232 on [[http://​www.grodansparadis.com/​frankfurt/​rs232/​frankfurt-rs232.html|the product page]] under the firmware tab. If in doubt which version to download use the latest.  ​
 +
 +===== Where is the source for the firmware? =====
 +You can find the latest source for the firmware [[https://​github.com/​grodansparadis/​can4vscp_frankfurt_rs232|here]].
 +===== Setting communication parameters =====
 +You should ​ set communication parameters to use before you start. You find them under the menu /​program/​start of the bootloader program. This will bring up this dialog
 +
 +{{ :​bootloader5.png?​600 |}}
 +
 +This is the recommended settings but you may need to lower the bootloader baudrated ​ if you have problem finding the module or problems with the loading of the code. For most uses 115200 should work fine. The Frankfurt RS-232 bootloader have an autobaudrate detector so any baudrate will do. Note however that the application baudrate is locked to 115200 baud and should not be changed.
 +
 +
 +===== Setting the module into bootloader mode =====
 +
 +You set the module into bootloader mode by restarting (turning of and turning on) the module while the //​break/​Reset application firmware// button of the bootloader application is pressed. ​ You can also do the same thing with the //BOOT command// in the verbose mode of the module. ​
 +
 +{{ :​bootloader2.png?​600 |}}
 +
 +while the break button is depressed then restart the board.
 +
 +When the module is restarted you should press the //enter boot loader mode// to activate the bootloader connection.
 +
 +{{ :​bootloader4.png?​600 |}}
 +
 +If you have set the wrong port, a baudrate tat does not work or the module did not enter the bootloader firmware it wil show here. Change settings and try again.
 +
 +If all goes well you will get a new screen
 +
 +{{ :​bootloader6.png?​600 |}}
 +
 +It just show an empty flash memory. ​
 +
 +At this point you need the firmware code so load it by selecting the hex file under the /file/open menu. 
 +
 +{{ :​bootloader7.png?​600 |}}
 +
 +
 +After the hex file is loaded you should see code at offset 0x400 and forward. ​
 +
 +{{ :​bootloader8.png?​600 |}}
 +
 +
 +To program the module click //Write Device//
 +
 +
 +{{ :​bootloader9.png?​600 |}}
 +
 +and the firmware will be written to the device.
 +
 +
 +You may get a complaint like this 
 +
 +
 +{{ :​verify_error.png?​300 |}}
 +
 +
 +after the code is loaded but this is no problem it s due to code protection. ​ Run the verify under the /​program/​verify menu to make sure the write of the firmware was OK.
 +
 +Thats it!
 +
 +{{ :​bootloader11.png?​600 |}}
 +
 +Now select //run application firmware// and restart the board again and the Frankfurt RS-232 application will run.
 +
 +{{ :​bootloader12.png?​600 |}}
  
 \\  \\ 
Line 14: Line 88:
 **web:​**[[http://​www.grodansparadis.com]] \\  **web:​**[[http://​www.grodansparadis.com]] \\ 
 <​html></​center></​html>​ <​html></​center></​html>​
 +
 +
 +
  
 
replacing_the_firmware.txt ยท Last modified: 2018/02/08 17:26 (external edit)