

Changing
Fusebits on the StAVeR-24M32 is done at your own risk
Warranty is void when you alter the fusebits!
| PonyProg - Restoring the Boot Loader into the StAVeR-24M32 |
Connect the ISP programmer (like LAWICEL ispAVRp or similar products) either directly on the RED 6pin AMP connector or via the 10pin IDC connector on the motherboard. Then Apply power, start PonyProg and make sure you have set it to "AVR micro" and "ATmega32", then Select from the menu "Command->Security & Configuration Bits..." (or press Ctrl-S). After this push the "Read" button (this is important, since this reads in the current settings and also check that you have a proper connection to the ATmega32. Depening on how you have set fuses it will show diffrent. However some fuses must remain unchanged for the StAVeR-24M32 module otherwise it will not work properly (like the CKSELx, SUTx, BODEN, BODLEVEL, JTAGEN). After the fuse & lockbits have been read in, change them as the picture below shows.
Then after the fusebits are changed according to the picture above, press the OK button and load the boot loader hex file (can be found on the bottom of this page) via the menu "File->Open Program (FLASH) File...". Locate the Boot loader Hex file and press open. Since this is a boot loader, you will not find the hex file at 0x0000, instead it starts at 0x7800. When the hex file is loaded, change the programming options through the menu "Command->Program Options..." and select "Erase", "Write Program memory (Flash)" and "Write Security and Config bits". and press "OK". Then select from the menu "Command->Program" (or press Ctrl-P). The StAVeR-24M32 module will then be erased, programmed with boot loader and finally set fuse bits accordingly to the picture above. After the programming is done, you can verify it is working since the Yellow LED on the StAVeR-24M32 module is shining all the time (the Boot loader is waiting for a program to be downloaded via RS232 and since there is no program there, it just waits for that the first time. If you later on download a program via RS232, it will just wait for a download command everytime it boots for 0.3 seconds. |
| ICCAVR - Restoring the Boot Loader into the StAVeR-24M32 |
Programming the Boot loader from within ICCAVR is done almost in the same way as from PonyProg. Connect ISP programmer and power in the same way. start ICCAVR and select the Mega32 from the Options menu so the target is correct. Then select the programmer from the "Tools->In System Programmer", select one of the ISP programmers (not the Staver since it can't be used with ISP and set fusebits etc.). Select manually the HEX file with the "Browse..." button and read in the Lock bits and Fuse Bits. Make sure you get in those values so, they do not just say 0x00FF & 0xFFFF, this may indicate you do not have contact with the Mega32 and you have to check the ISP cable or programmer. If a successful read is done, set the values as the picture below indicates.
After this is Done, press the Chip Erase button, then "Program Flash" button, then finally set fuses by pushing both "W" buttons shown on picture above. Don't push them at once after each other, make sure the programmer is ready after each operation. After the programming is done, you can verify it is working since the Yellow LED on the StAVeR-24M32 module is shining all the time (the Boot loader is waiting for a program to be downloaded via RS232 and since there is no program there, it just waits for that the first time. If you later on download a program via RS232, it will just wait for a download command everytime it boots for 0.3 seconds. |
| BASCOM-AVR - Restoring the Boot Loader into the StAVeR-24M32 |
Info will be added shortly. |
| Download Utility for StAVeR-24M32 |
We have developed a Windows software that makes it possible to download binary files into the StAVeR-24M32. This software makes rapid programming possible for production or for compilers that do not support our protocol or from within AVR Studio. It could be used as a windows program manually or be automated from a batch file from the command prompt. Simply add the program.bat after a successful build and it converts your hex file into a binary file and dowloads it. If your compiler supports a binary file, then the conversion isn't needed. Note the program.bat uses COM1 which could be changed to suit your needs. Download the zip file and extract all files in your working directory of the project (or to a common directory where there is path to the files). To test the program, simply start the executable file and select COM port from the menu (speed should be set to 115200baud) that you have the StAVeR-24M32 connected to, then open binary file from menu File->Send and then the dowload wait for you to push reset or power up the StAVeR-24M32. When this is done, download begins. If you need to send same file again, push F5 (or select resend from menu). The picture below shows a successful download.
|
| © Copyright 1997-2005 LAWICEL.
All rights reserved. Information in this document is subject to change without notice. Other products and companies referred to herein are trademarks or registered trademarks of their respective companies or mark holders. |
Last updated on the 26:th of April 2005