You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: