The ATtiny10 doen's seem to want to play nice with script constants. I think this might be a compiler issue. Many other AVR devices had no problems loading the script constant to a variable outside the script (i.e. PWMPrescale = PWMPrescaleTemp). Using the assignment inside the script does work, but runs into problems later when using other methods (see output of SynWrite).
I had loaded the GCB assembler into Atmel Studio 6 and built the hex in that environment. Downloaded hex and program worked as expected with the PWMPrescale = PWMPrescaleTemp outside the script.
Using GCB 96.008 and doctored tiny10.dat for correcting i/o registers.
I am getting old and stodgy. After getting singed on '96, I reverted back to the last stable build? I didn't see anything that directly references any AVR problems in the release notes, but?
OK, I had this dialed in 97.01 once before, just to check, and it is still a no go.
Once again the revised tiny10.dat that I have been playing with.
The tiny4-5-9-10 and tiny102-104 should be a different family code from the other tiny's. Only 16 GPR's from r16-r31 and only 54 instructions. Can easily overflow the GPR's with system variables and no compiler warning when they go below r16.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The ATtiny10 doen's seem to want to play nice with script constants. I think this might be a compiler issue. Many other AVR devices had no problems loading the script constant to a variable outside the script (i.e. PWMPrescale = PWMPrescaleTemp). Using the assignment inside the script does work, but runs into problems later when using other methods (see output of SynWrite).
I had loaded the GCB assembler into Atmel Studio 6 and built the hex in that environment. Downloaded hex and program worked as expected with the PWMPrescale = PWMPrescaleTemp outside the script.
Using GCB 96.008 and doctored tiny10.dat for correcting i/o registers.
Last edit: kent_twt4 2017-04-11
Do try the latest build. Lots of changes since v096.008.
If it fails attach example code so we can have a looksy.
Huh, seemed like you used to be able to download multiple files before.
Did this fail on the latest build? Just checking.
I am getting old and stodgy. After getting singed on '96, I reverted back to the last stable build? I didn't see anything that directly references any AVR problems in the release notes, but?
OK, I had this dialed in 97.01 once before, just to check, and it is still a no go.
Once again the revised tiny10.dat that I have been playing with.
Truely, the last stable build is always the latest.
v0.97.02 (this just releases an update to PPS) is the best build todate.
v1.00.00 soon.
The tiny4-5-9-10 and tiny102-104 should be a different family code from the other tiny's. Only 16 GPR's from r16-r31 and only 54 instructions. Can easily overflow the GPR's with system variables and no compiler warning when they go below r16.