Compiling the bootloader #179
Replies: 3 comments
-
And an additional thing ...
This part is commented out .... but it seems that this is exactly the part which writes the Flash . Am I getting this wrong ? |
Beta Was this translation helpful? Give feedback.
-
In other words, I didn't set it up, and don't fully understand it or makefiles in general. I don't like and am not good at that crap ("I write code, not makefiles". I really don't use anything more than sublime text and the makefile. Which I took from megaTinyCore, as you can see by the filename (optiboot_x over there too, I guess that was chosen... I guess because they initially appeared to be xmega-tinies? It was fairly common outside arduino at first - before it became clear that they were the vanguard of the modern avr product line. I'd have called it optiboot_xt since it's the AVRxt instruction set, I suppose.) I know how to modify the makefile to do what I want, but I couldn't write it from scratch. |
Beta Was this translation helpful? Give feedback.
-
And yeah the comment before that block wasn't closed properly, I added that after the latest serialupdi improvements, bootloader has not been compiled since before I was doing that - as I learn new things that make me realize that my old comments or design decisions were wrong, before I get a chance to correct them I add comments regarding it to the code so it will be there next time I look and I will remember why I thought there was something I needed to do there. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I was looking into the bootloader trying to compile it from code.
I have several questions here (maybe some of them are dumb .. so I apologize in advance :) )
As far as I can understand the file which is compiled/linked = built is optiboot_x.c but optiboot_dx.c is provided .
Am I getting this wrong ?
2. The target is somehow not recognized by the avr-gcc . Do you use atmel studio? is there a gnu gcc version that I can use ?
Thanks in advance,
Best regards,
Vlad
Beta Was this translation helpful? Give feedback.
All reactions