HTML5 webinterface and bootloader for AVR32
Allows to flash an AVR32 via a nice looking HTML5 webinterface. Simply upload a .srec file, test the new firmware and apply or reject changes. Uses FreeRTOS, LwIP, ASF and Miniport.
Contributions and ports welcome!
- Runs on an EVK1100 Development Board
- FreeRTOS V8.2.0
- LwIP 1.4.1 + httpserver_raw app + SSI + POST support
- .srec File Parser (checks parity and start address)
- Automatically creates a backup of the running program in AT45DBX external flash memory
- Implements a simply registry: Change parameters like IP address via the webinterface and tune your application on-the-fly
- Easy to use SSI (Server Side Includes) and HTTP-POST handling functions
- Application stub for easy extensibility
- AVR Studio 6.2 with ASF (Atmel Software Framework)
- Atmel EVK1100 Demo Board
- JTAG programmer
- Ethernet cable from your PC to the Demo Board
- Recommended: Internet connection of your PC (via a second LAN adapter or WiFi) for HTML5 features
- Optional: A serial cable connected to UART1 with 115200 baud, 8N1 to display debug info
- Download avr32webboot.hex from http://www.taurob.com/U-ECU/binaries/ and flash it on your EVK1100.
- Press the PB0 button on startup to initialize the EEPROM for the first time.
- go to step 4.
OR
-
Go to and load the Bootloader project in this Solution, unload the Kernel project, build and download the Bootloader to your EVK1100 (or press F5).
-
Go to the Kernel project in this Solution, load it and unload the Bootloader, build the Kernel and download it also. Do not change the project settings.
-
Press the PB0 button on startup to initialize the EEPROM for the first time.
-
Give your computer an IP address in the 10.0.0.0/24 range, e.g. 10.0.0.100, subnetmask 255.255.255.0
-
Ping 10.0.0.50 (that's your EVK1100)
-
Enter 10.0.0.50 in your browser's address field
-
Scroll down to "Registry". Change "Task 1 Frequency" to 50. The LEDs should flash faster now :-)
-
In AVR Studio, open the file src/application/application.h. Change the define APPLICATION_NAME to anything you like, e.g. "My Coolest Application Ever".
-
Rebuild the project (F7)
-
In your browser, scroll down to Firmware Update
-
Select the newly build .srec file under Kernel\Debug
-
Press the upload button in the lower half of the button (there is still a bug in CSS)
-
Wait until the web page reloads. Check the top of the page - the application name should have changed now.
-
Keep or reject the new firmware image as you like - if you don't press "Apply Settings" the previous firmware image will be automatically restored upon reset.
-
Go to src/application/application.c and put in your own code
https://github.com/lsilberbauer/avr32webboot/issues
https://groups.google.com/d/forum/avr32webboot
See LICENSE.txt
- http://www.freertos.org/
- http://savannah.nongnu.org/projects/lwip/
- http://www.atmel.com/tools/avrsoftwareframework.aspx?tab=overview
- http://html5up.net/miniport
written on June 6, 2015 by Lukas Silberbauer
(c) 2015 taurob GmbH