Hello all,
I think I found a problem with the chipdata files of the subject chips. I could not get the Tiny series chips to even blink an led, yet there was no problem with the MEGA series chips I tested. They would compile and flash just fine, but there was no response. After two days of trying everything, and using older versions of the compiler to no avail, I looked at the Atmel datasheet. It seems that the register addresses are off by 0x20 in the chipdata file. After changing the current chipdata sheet to the new addresses, the Tiny45 would blink!
I looked at my archives of the chipdata files, and found that they were correct around April 2019. I copied the register section out of an old Tiny461a chipdata file, and it also worked to blink an led. I don't know if the addresses are the whole issue, I haven't done any more testing other than a simple blink program so far.
Attached are copies of the current chipdata file and an older one.
I can when the error in the dat was introduced. Change 765 ( we currently at 1190!) on 5th June 2020. This has laid hidden since then!
So, the change to make the chips listed below work broke the others!
Change765SupportforATMELchipswith16GPRs.Updated.DATfilewithcorrectGPRvalue.[1083]
Allwerere'gened with the following GPR=16 and ChipFamily=121ATtiny10ATtiny20ATtiny4ATtiny40ATtiny5ATtiny9
Fixing today.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
During the implementation of the new AVR chip with only 16Bytes of GPR I added a test for these specific chips. Any chip that start with the following had the incorrect offset applies.
tiny10
tiny20
tiny4
tiny40
tiny5
tiny9
So, Tiny44a, 45, 461, 461a all matched the tiny4. Oops. As did the Tiny 102 and 104 and the Tiny2.
Anyway, all resolved.
Change 1192
Correct register offsets for non-chipfamily 121 as follows:
Hello all,
I think I found a problem with the chipdata files of the subject chips. I could not get the Tiny series chips to even blink an led, yet there was no problem with the MEGA series chips I tested. They would compile and flash just fine, but there was no response. After two days of trying everything, and using older versions of the compiler to no avail, I looked at the Atmel datasheet. It seems that the register addresses are off by 0x20 in the chipdata file. After changing the current chipdata sheet to the new addresses, the Tiny45 would blink!
I looked at my archives of the chipdata files, and found that they were correct around April 2019. I copied the register section out of an old Tiny461a chipdata file, and it also worked to blink an led. I don't know if the addresses are the whole issue, I haven't done any more testing other than a simple blink program so far.
Attached are copies of the current chipdata file and an older one.
Hopefully this is of some help.
Thanks for all your work at Great Cow!
Thank you.
I will look at the masters and figure out what has happened.
Thanks for reporting.
Evan
I can when the error in the dat was introduced. Change 765 ( we currently at 1190!) on 5th June 2020. This has laid hidden since then!
So, the change to make the chips listed below work broke the others!
Fixing today.
Root cause found, and, fixed.
Get the patch ZIP, apply and confirm to me that all is good. https://sourceforge.net/projects/gcbasic/files/Release%20Candidates/Patches/
During the implementation of the new AVR chip with only 16Bytes of GPR I added a test for these specific chips. Any chip that start with the following had the incorrect offset applies.
tiny10
tiny20
tiny4
tiny40
tiny5
tiny9
So, Tiny44a, 45, 461, 461a all matched the tiny4. Oops. As did the Tiny 102 and 104 and the Tiny2.
Anyway, all resolved.
Change 1192
Correct register offsets for non-chipfamily 121 as follows:
tiny102.dat
tiny104.dat
tiny2313a.dat
tiny4313.dat
tiny43u.dat
tiny44.dat
tiny441.dat
tiny44a.dat
tiny45.dat
tiny461.dat
tiny461a.dat
tiny48.dat
Get the patch ZIP, apply and confirm to me that all is good. https://sourceforge.net/projects/gcbasic/files/Release%20Candidates/Patches/
Thanks
Last edit: Anobium 2022-11-18
Tested Tiny44a, 45, 461 and 461a. All work perfect!
Thanks Evan!
I am grateful you spotted! We are about to release a new version .... we need the best build yet!
Glad I could help!