Author Topic: Ndless 2.0 for TI-Nspire Clickpad/Touchpad  (Read 179163 times)

0 Members and 5 Guests are viewing this topic.

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #150 on: December 27, 2010, 02:10:33 pm »
^Nice!
Former Coder of Tomorrow


Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #151 on: December 27, 2010, 02:24:39 pm »
Thanks, that's what I have also found thanks to critor's tests.
Ndless.me with the finest TI-Nspire programs

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #152 on: December 27, 2010, 07:51:53 pm »
woah Ndless 2.0 came out?? :o
Sig wipe!

Offline codeslicer

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #153 on: December 27, 2010, 08:00:31 pm »
Well.. the repositories did.  You have to build it from source, and it's currently not stable (works for many programs, but crashes on others, and some keys are scrambled).  Still, I'm too amazed at the alacrity of the developers.

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #154 on: December 28, 2010, 07:43:35 am »
* Silver Shadow goes to search for "alacrity" in Wikipedia. :P
Former Coder of Tomorrow


Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #155 on: December 28, 2010, 11:55:55 am »
A major update is available. It includes:

- Many functions of the standard library, that will hopefully help to port existing programs. The documentation on Hackspire is up-to-date.
  (freopen, errno, toupper, strtod , strtol, strspn, strerror, strcat, strstr, fflush,  remove, ungetc, stdin, stdout, stderr, feof, rewind, strcpsn, fputs, fgets, putc, getc, strtoul, strcoll, ferror)
- New functions clrscr() and any_key_pressed() (see libndls)
- Touchpad support should now be fixed thanks to critor and Goplat, although I cannot test it on real hardware. The arrows and click are mapped to 1-9 as it has been suggested, as long as we cannot interact with the Touchpad hardware. Programs must be rebuilt to benefit from this update.
The particles demo should at least work, I'd like to read your feedback!
Ndless.me with the finest TI-Nspire programs

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #156 on: December 28, 2010, 12:06:29 pm »
tested particles: +-are really +- on my Touchpat now.
Will do some more testing now.

SirCmpwn

  • Guest
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #157 on: December 28, 2010, 12:07:53 pm »
Wish, this actually exists?

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #158 on: December 28, 2010, 12:09:29 pm »
Wish, this actually exists?

Yep! :)

I am rebuilding my stuff now and I will test on the touchpad promptly! :)


Everything seems to work fine!  Is this going to be the final solution for the touchpad for now (mapping the keys to the number keys), or is the actual arrow key support planned?  If this is the solution, I will get to updating the Block Dude passwords to reflect this change and I will upload the new version to ticalc.org promptly! :)
« Last Edit: December 28, 2010, 12:22:28 pm by apcalc »


Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #159 on: December 28, 2010, 12:39:45 pm »
Tests done all keys except arrowkeys( no miracle :( ), on and the key to the right of "9" (0x1A, 0x100) named "Frac" on hackspire work as they should for me.
« Last Edit: December 28, 2010, 12:40:58 pm by shrear »

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #160 on: December 28, 2010, 01:02:50 pm »
Great, thank you to both of you.

apcalc: I have personally not planned to work on the touchpad I/O ports, I suppose Goplat will document and implement this in nspire_emu as quickly as he used to. But I am not really happy with the current work around, I would prefer true support before the final release.
Ndless.me with the finest TI-Nspire programs

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #161 on: December 28, 2010, 02:34:09 pm »
ExtendeD - I assume you tried the ftell call - what problems did you
  have by this uncomfirmed call ?(confirmed by me only). I did a simple
fseek(handle,0,SEEK_END);
size = ftell(handle);
printf("file size=%d\n",size);

EDIT: I think I just found memchr: noncas1.7 =>  0x102A60A0
« Last Edit: December 28, 2010, 02:47:48 pm by bsl »

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #162 on: December 28, 2010, 03:27:45 pm »
Thanks, I'll try to include it.

Most of the syscalls are tested automatically with arm/tests/tests.c. These are not advanced tests but should be enough without taking to much time to write. ftell did pass the tests without any problem.
Ndless.me with the finest TI-Nspire programs

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #163 on: December 28, 2010, 03:46:11 pm »
The following issue has been fixed:

  • Installation message replaced by a document format warning on real harware:
    The program loader is called before it is installed, earlier than on OS 1.7. The issue doesn't appear on nspire_emu.

Ndless.me with the finest TI-Nspire programs

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #164 on: December 28, 2010, 05:48:26 pm »
The random crash when running program is really weird. I think I have already seen it during the alpha tests of Ndless v1.7, but it had disappeared. Now it's back.

I'm quite sure that:
- It is only reproducable on real hardware
- It depends on the program being run
- The crash always happens somewhere near ploaderhook.c's ((void (*)(int argc, char *argv[]))(docptr + sizeof(PRGMSIG)))(1, (char*[]){docpath, NULL});, i.e. the program execution
- Even a program containing only 'PRG\0'[bx lr] can crash
- This has nothing to do with argc/argv passed as parameters
- It happens with or without interrupts enabled
- The data run is never corrupted
- Lionel Debroux reports the issue with Ndless v1.7. I'm personally reproducing it with Ndless v2.0 on a Clickpad non-CAS OS 2.0.

Could there be some execution protection on the heap, but not for all the allocations?
« Last Edit: December 28, 2010, 05:49:41 pm by ExtendeD »
Ndless.me with the finest TI-Nspire programs