Author Topic: 8x+ > flash locking  (Read 3006 times)

0 Members and 1 Guest are viewing this topic.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
8x+ > flash locking
« on: May 03, 2014, 09:28:15 pm »
I know how to unlock it, thx thepenguin77 btw =]
Now, i'd like to know a method to lock it back.
I already tried to zero port $14, without success.
I guess there's some kind of special sequence to achieve that (similar to unlocking it).
Help appreciated...
« Last Edit: May 03, 2014, 09:31:08 pm by the_mad_joob »

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: 8x+ > flash locking
« Reply #1 on: May 04, 2014, 08:15:14 am »
The easiest way to do this under TI-OS is to use B_CALL(_FlashWriteDisable). It works very similarly to how you thought, by sending 0 to port $14, but it does so from a privileged page.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: 8x+ > flash locking
« Reply #2 on: May 04, 2014, 12:59:13 pm »
I'll try to reset the port from a privileged page then, since i don't use the TI-OS in my new project.
Thx for your time, Runer =]