Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XBOOT on AS7 #37

Open
ThomasSchattat opened this issue May 2, 2018 · 1 comment
Open

XBOOT on AS7 #37

ThomasSchattat opened this issue May 2, 2018 · 1 comment

Comments

@ThomasSchattat
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants