Author Topic: Secret debug menu  (Read 34024 times)

0 Members and 1 Guest are viewing this topic.

Offline fxdev

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 177
  • Rating: +34/-6
    • View Profile
Secret debug menu
« on: February 27, 2011, 04:02:14 pm »
Yesterday, I found a hidden debug menu. It was not known to Simon L., so I guess it is not known to you guys either. ;D

In order to start it, you have to do the following:
- Press the Restart button plus [OPTN]+[EXP]+[AC/ON] and hold all down
- Release the Restart button
- Wait until the screen becomes white
- Now release the remaining three keys

This will display the text "Please SD Card Insert" on the LCD - maybe a remnant from Casio Prizm development.

Pressing [MENU] (hold down for quite a while) shows the following options:

Code: [Select]
[F1]: Erase User Flash Area // Clears user flash memory (0xA0C00000..0xA2000000)
[F2]: Erase Password Area // Removes user name and organization (0xA0BE0000..0xA0C00000)
[F3]: Erase MCS Backup // Clears user RAM backup on the flash (0xA0B80000..0xA0BE0000)
[F4]: Erase Add-in Language // Removes language add-ins (0xA0B60000..0xA0B80000)
[EXIT]: Flash Program // Makes copy of the OS at 0xA1000000..0xA1B60000 (and may corrupt the file system!)

Note, if you press [OPTN]+[EXP]+[AC/ON] too short, it will display the OS Error screen (which is the OS update routine started from within the BIOS). Also, if you press [OPTN]+[EXP]+[AC/ON] without the Restart button involved, it will enter the diagnostics menu. In this case you have to additionally press [F1] followed by [9].



And here is the test menu: Syscall 0x0EA7 :D

I have attached a program at the bottom.


Diagnostics, test and debug menu.
« Last Edit: July 28, 2012, 08:17:38 am by cfxm »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Secret debug menu
« Reply #1 on: February 27, 2011, 04:18:02 pm »
That's not an SD card slot. Those are the exposed lines of the LCD driver.

Also, I entered the ABS debug menu and there's now an ominous incrementing hex counter that says
NOR Flash erase

Adr: A1FE0000


Also, pin 1 is related to diagnostics mode.

EDIT: Yep, screwed my OS. It's trying to load something.

EDIT EDIT: The OS is fine after a few minutes of booting. However, I no longer have any custom stuff installed.

I went back through the NOR flashing and wrote down the addresses.

Spoiler For Spoiler:
ADR:
A0C60000
A0C80000

.....

A1FE0000

NOR Flash blocks of size 2 0000
9C (156) *20000 (131072) (138 0000, 19.5 megabytes) memory size memory.

Basically, the counter increases by 2 0000 every iteration and I think this has to do with the memory block sizes. The total memory erased is 19.5 MB, which in enough for all of user memory to be flashed as well as 3.5 MB of extra stuff. I suspect RAM is a part of that, as well as OS data about the user.

« Last Edit: February 27, 2011, 04:48:53 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Secret debug menu
« Reply #2 on: February 27, 2011, 05:39:16 pm »
Nice find cfxm. How did you happen upon it?

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Secret debug menu
« Reply #3 on: February 27, 2011, 05:41:12 pm »
Sweet, we found a way to break stuff! Interesting find.

Offline PeonHero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +13/-5
  • Coder of Tomorrow, Coding Today.
    • View Profile
Re: Secret debug menu
« Reply #4 on: February 27, 2011, 05:44:25 pm »
This is an awesome find. Guessing he found it by randomly pressing buttons, trying different combinations, etc, just like how most other secret things were found.

P.S. Type in "Combination Combinations space" in the quick reply box for an interesting effect.
There are a lot of<a href="http://justmegawatt.com/images/youdidntknow"> Things you didn't know </a>about until you clicked that link.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Secret debug menu
« Reply #5 on: February 27, 2011, 05:45:33 pm »
Combination Combinations space

What effect?

Offline PeonHero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +13/-5
  • Coder of Tomorrow, Coding Today.
    • View Profile
Re: Secret debug menu
« Reply #6 on: February 27, 2011, 05:47:11 pm »
It underlines the word Combinations, saying it's not a word
There are a lot of<a href="http://justmegawatt.com/images/youdidntknow"> Things you didn't know </a>about until you clicked that link.

Offline phenomist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 132
  • Rating: +46/-3
    • View Profile
Re: Secret debug menu
« Reply #7 on: February 27, 2011, 05:52:02 pm »
Some spellcheckers identify repeated words as possibly misspelled.
Level Designer for Graviter

[Disclaimer: I can't program for my life.]

Offline fxdev

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 177
  • Rating: +34/-6
    • View Profile
Re: Secret debug menu
« Reply #8 on: February 27, 2011, 07:15:19 pm »
@
Nice find cfxm. How did you happen upon it?

Well, a simple guess. ;D
The [OPTN]+[EXP]+[AC/ON] key combo is known for years and the Restart button always used to be special...

Offline PeonHero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +13/-5
  • Coder of Tomorrow, Coding Today.
    • View Profile
Re: Secret debug menu
« Reply #9 on: February 27, 2011, 07:20:56 pm »
You don't have to say anything before combinations, it will say it is a misspell no matter what. I just put it there for reference.
There are a lot of<a href="http://justmegawatt.com/images/youdidntknow"> Things you didn't know </a>about until you clicked that link.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Secret debug menu
« Reply #10 on: February 27, 2011, 09:09:18 pm »
I doesn't work for me...

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Secret debug menu
« Reply #11 on: February 27, 2011, 10:41:30 pm »
That's because spellcheck is part of your browser, not the site ;)

Offline fxdev

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 177
  • Rating: +34/-6
    • View Profile
Re: Secret debug menu
« Reply #12 on: February 28, 2011, 01:09:27 pm »
I did some tests in the diagnostic menu and as it seems the debug mode does not enable the cache.
That's why it is so slow and unresponsive.
« Last Edit: February 28, 2011, 01:14:09 pm by cfxm »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Secret debug menu
« Reply #13 on: February 28, 2011, 01:55:42 pm »
I find it difficult to believe that not caching the data would make that much of a difference. That menu is extremely slow.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Secret debug menu
« Reply #14 on: February 28, 2011, 04:08:34 pm »
Wow nice find but yeah the menu is so slow. O.O

Thanks for posting this cfxm :D