Author Topic: Faster Flash Access for the 83+/84+  (Read 25084 times)

0 Members and 1 Guest are viewing this topic.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Faster Flash Access for the 83+/84+
« Reply #15 on: November 11, 2012, 03:27:56 am »
Pretty good stuff :)
I totally support patching TI's OS in order to make it less buggy, faster and more featureful ^^

If the 84+ C (SE) is to use a Z80, and its OS is to be based on the current OS and to be executed without emulation (which we don't know...), TI should fold in, or get inspiration from, third-party patches into the OS.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #16 on: November 11, 2012, 04:06:40 am »
I had not realized that the combination of b_call lookup and copying the routine to RAM repeatedly was such a major bottleneck. Have you tried placing a counter in the write and erase routines and timing how long such operations actually take?

I notice you don't try to use the accelerated one-command-per-write mode. I wonder if the autoselect commands could identify whether the chip supports that.

I wrote the Wiki page on raw flash access.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Faster Flash Access for the 83+/84+
« Reply #17 on: November 11, 2012, 06:03:17 am »
Awesome, really :)

(TI should look at your patch and make it official :P)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Faster Flash Access for the 83+/84+
« Reply #18 on: November 11, 2012, 06:08:40 am »
They should, but so far, they even failed to make official the unofficial bugfixes... so optimizations are in another league entirely ;)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline TexasInstruments84

  • LV2 Member (Next: 40)
  • **
  • Posts: 24
  • Rating: +0/-0
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #19 on: November 11, 2012, 08:19:06 am »
Alright, I just re-installed it and got the same error (after restoring the OS from a previous attempt). I waited a minute after installing it (it said DONE after executing), and a minute after booting. I still can't get the keys to respond. Could it be an issue with my apps?

Edit: could it be from my custom picture on zstart?
« Last Edit: November 11, 2012, 08:20:28 am by TexasInstruments84 »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Faster Flash Access for the 83+/84+
« Reply #20 on: November 11, 2012, 08:21:28 am »
Does this mean archiving gets 3 times as fast?
And Texas, no I don't think this has to do with zstart since that's also written by thepenguin :)
« Last Edit: November 11, 2012, 08:22:45 am by aeTIos »
I'm not a nerd but I pretend:

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #21 on: November 11, 2012, 11:39:44 am »
Is grouping and ungrouping faster?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #22 on: November 11, 2012, 02:04:44 pm »
Alright, I just re-installed it and got the same error (after restoring the OS from a previous attempt). I waited a minute after installing it (it said DONE after executing), and a minute after booting. I still can't get the keys to respond. Could it be an issue with my apps?

Edit: could it be from my custom picture on zstart?
Are you sure that you used the version that goes with your OS ?
It worked fine for me on OS 2.43.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline TexasInstruments84

  • LV2 Member (Next: 40)
  • **
  • Posts: 24
  • Rating: +0/-0
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #23 on: November 11, 2012, 03:19:09 pm »
Yup, I'm on 2.55MP and got the 2.55 file. Does anyone have it working on this version?

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #24 on: November 11, 2012, 03:24:40 pm »
I have a possible bug report. Since installing this morning my calc has been behaving rather oddly. I've been working on an axe project and using edit-from-archive and ON-ZOOM zstart features a lot, and suddenly (after the program crashed I think) the source axe file was filled with random tokens. This happened multiple times and eventually the dev cycle looped into restore axe backup, compile, archive source, run, executable crashed, go look at axe source, it's corrupted, restore axe backup. I tried restoring the OS, it went through the whole "Receiving...Operating System" dialog and then changed to "Waiting...Please Install Operating System." I then resent the OS (again) and now it's behaving perfectly normally. I have to do some stuff now, but when I have time I'll reapply the patch and see if I can duplicate the behavior.
« Last Edit: November 11, 2012, 03:26:38 pm by squidgetx »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #25 on: November 11, 2012, 04:04:53 pm »
Are you sure that you used the version that goes with your OS ?

The program throws an error if you run it on the wrong calc.

Is grouping and ungrouping faster?

Yes

I have a possible bug report. Since installing this morning my calc has been behaving rather oddly. I've been working on an axe project and using edit-from-archive and ON-ZOOM zstart features a lot, and suddenly (after the program crashed I think) the source axe file was filled with random tokens. This happened multiple times and eventually the dev cycle looped into restore axe backup, compile, archive source, run, executable crashed, go look at axe source, it's corrupted, restore axe backup. I tried restoring the OS, it went through the whole "Receiving...Operating System" dialog and then changed to "Waiting...Please Install Operating System." I then resent the OS (again) and now it's behaving perfectly normally. I have to do some stuff now, but when I have time I'll reapply the patch and see if I can duplicate the behavior.

Which OS? I had to do this 5 times, so there's a chance I made a mistake in one of them.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline InternetCliche

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +0/-0
  • Sometimes, things happen. With explosions.
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #26 on: November 11, 2012, 09:01:36 pm »
I too am experiencing the whole "Buttons don't work" thing. OS 2.55MP, 84+. Happened only after i reinstalled zstart.
Sometimes, things happen. With explosions.

Especially with explosions.

Offline TexasInstruments84

  • LV2 Member (Next: 40)
  • **
  • Posts: 24
  • Rating: +0/-0
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #27 on: November 11, 2012, 09:34:24 pm »
I too am experiencing the whole "Buttons don't work" thing. OS 2.55MP, 84+. Happened only after i reinstalled zstart.

Finally, someone with the same problem! So you're saying the patch only works when zstart is not installed?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Faster Flash Access for the 83+/84+
« Reply #28 on: November 11, 2012, 09:36:49 pm »
Is the program dependent on specific hardware revisions by the way?

Also does the speed difference occurs only with very large files? I tried ROL2 with the patch on and could barely notice much difference. ??? However I was using an emulator. (Wabbitemu)
« Last Edit: November 11, 2012, 09:37:41 pm by DJ_O »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Faster Flash Access for the 83+/84+
« Reply #29 on: November 11, 2012, 10:05:57 pm »
I too am experiencing the whole "Buttons don't work" thing. OS 2.55MP, 84+. Happened only after i reinstalled zstart.

Oh, so I just tested it, and it apparently doesn't work when you combine zStart with MathPrint. The problem is definitely with zStart, but I have zero idea what would cause it. So try again with classic.


Is the program dependent on specific hardware revisions by the way?

Also does the speed difference occurs only with very large files? I tried ROL2 with the patch on and could barely notice much difference. ??? However I was using an emulator. (Wabbitemu)

It's not dependent on the hardware at all.

It works on files of all sizes, but the bigger the file, the more noticeable the change is.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112