I am trying to write my own custom bootloader. Here is what I have managed so far:
- Downloaded the Software Framework
- Imported the "AVR-UC3-SoftwareFramework-1.7.0\1.7.0-AT32UC3\SERVICES\USB\CLASS\DFU\EXAMPLES\ISP" example code
- Edited the isp.c and isp.h files.
I am working with an AVR AT32UC3A3.
What I want to do is change the bootloader to set a few GPIO pins to high during boot up. I want to JTAG the micro once, and from there on, it should always pull these pins high and then execute the application code. As stated earlier I have successfully modified the isp.c and isp.h files, now when I build this, I end up with a 22MB file instead of an 8kB file. How do I go about compiling this code and not ending up with such a massive file?
Any advice would be much appreciated. If you require more information from me, please let me know.
I have looked at this forum thread: https://www.avrfreaks.net/forum/a... but couldn't find what I was looking for.