Menu

ATtiny10 and script constants

kent_twt4
2017-04-11
2018-03-05
  • kent_twt4

    kent_twt4 - 2017-04-11

    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
  • Anobium

    Anobium - 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.

     
  • kent_twt4

    kent_twt4 - 2017-04-11

    Huh, seemed like you used to be able to download multiple files before.

     
  • Anobium

    Anobium - 2017-04-11

    Did this fail on the latest build? Just checking.

     
  • kent_twt4

    kent_twt4 - 2017-04-11

    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.

     
  • Anobium

    Anobium - 2017-04-11

    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.

     
  • kent_twt4

    kent_twt4 - 2017-04-11

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.