I am freaking out here. I want to write a bootloader and have already read dozens (if not hundreds) of pages. Its just not working, all the examples and tutorials dont give me the info I need to get it to work.
I have a mega162 with 0x1C00 bootstart set in the fuses. So in my application I do an asm volatile ("jmp 0x1C00") to get in the bottloader. But I cant get the bootloader to flash to 0x1C00. I have tryed all the things with .text=0x1C00 and --section-start (or similar in the linker part) and the __section__ stuff. But it either does absolutely nothing and just flashes to 0x0000 or gives me error messages.
So the simple question is: how can I flash the bootloader to the bootsection using AVR Studio 7 and C++??? Nothing I have found worked.
I dont need interrupts, just the uart, so the IVSEL doesnt need to be set. The programming stuff itself is not an issue (yet). Just flashing the damn thing where its supposed to be.
Thanks a lot!