Open DAflamingFOX opened 1 year ago
Hi @DAflamingFOX! It's strange, but I cannot reproduce the issue. Please revert back your changes and attach here whole log info when you compile a newly created project.
I don't seem to be able to recreate the issue again either, not sure anymore lol
The ATmega4808 doesn't have USART3, so maybe your program somehow was compiled for an ATmega4809, or a different 48-pin megaavr chip?
This is a copy of the discourse thread on the same topic, I was asked to make an issue here.
Hello, I would just like to preface this with: I have no idea what I am doing and used my monkey brain pattern recognition to fix a bug. That being said, I wanted to find some closure with the bug I found and fixed (I mean it at least programs now when it didn't before).
I'll try to be as detailed as possible, but again, not sure what I'm doing so I might miss something.
What I did was create a new platformio project by selecting atmega4808 as the board. When this project was created I then copied the
jtag2updi
platformio.ini from the megacorex platformio docs here. After doing this, compiling the default sketch generated by platformio I got the following error:There was a bit more but it was all USART3 stuff. Control clicking through the files it listed (I'm not sure how I got to it as its not directly one listed) I got to the iom4808.h file which comes with the atmelavr toolchain. (the path is
C:\Users\ffejs\.platformio\packages\toolchain-atmelavr\avr\include\avr\iom4808.h
) This file was missing:After adding that to the file on my machine everything compiles and uploads fine. (Yes, I checked the values with the datasheet and they are correct)
I've scoured the github repo's looking for this file and was not able to locate it, as I wanted to make a github issue about this topic, so instead I've resorted to this.
Is there any reason it was missing or was it just a mistake and a bug that should be fixed? Or am I messing with something I'm not supposed to be messing with and there was a really simple solution to my problem.