alexforencich / xboot

XBoot Extensible Bootloader
125 stars 69 forks source link

XBOOT on AS7 #37

Open ThomasSchattat opened 6 years ago

ThomasSchattat commented 6 years ago

Hi guys, after I installed Windows10 my only IDE was AS7. In order to compile XBOOT for atxmega384C I created a new project, added the required xboot files, changed settings accordingly and compiled it the usual way. Seemed to work, would connect to AVRDUDE and reported that my application was being 'burnt', but in fact all I got was 0xFF. Also the programming did not finish, it got somehow stuck in the end with no error message. The reason for it was the function get_2bytes that was written in ASM. I removed the ASM part and uncommented the C part of it like that: unsigned int attribute ((noinline)) get_2bytes() { return (get_char() << 8) | get_char(); } Also this part I reverted back to C rather than ASM: if (val == CMD_SET_EXT_ADDRESS) { // Read address high then low address = ((ADDR_T)get_char() << 16) | get_2bytes(); // acknowledge send_char(REPLY_ACK); } That resolved the issue and XBOOT now programs my atxmega384C3 as expected. Maybe it helps someone. Have fun... Thomas from Germany

cornedoggen commented 3 years ago

How did you compile it in AS7? there isn't a .atsln file in the root folder? Can you send me the AS7 project?