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

0 Members and 1 Guest are viewing this topic.

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #210 on: January 02, 2011, 11:23:27 pm »
Now I feel there are still two main features to be added before moving to the beta-testing phase:

  • Compatibility with the Touchpad arrows: According to Goplat the hardware interface is not simple, I'm not sure how to add this. Should a function that implement the protocol be added to libndls? Could it have the same signature as isKeyPressed() for the migration of existing program to be transparent? Or should we move instead to OS functions, if they exist?
  • A simple console: it would integrate with programs through stdin and stdout/stderr (replacing the default RS232 interface), to make ports of non-TI-Nspire programs easier. There would be a prompt, the keyboard would be used to type in strings, echo-ed on the screen. stdout/stderr would be displayed on the scrolling screen.
    I may also create a simple shell with history and auto-completion of file names to make possible the execution of command-line tools with arguments.
I too had the console idea going back to when bwang wanted to print text to the screen.
I think it will be discovered later a redirection of stdout to the screen, and stdin to the keypad is
already in the Nspire software, its hard to imagine an Nspire developer at TI working on OS1.0 CAS+
not doing this to test his development.
Any way its a good idea, making console programs portable.
There is one critical part missing in it  !!
A default system Font .
Now that I have better access through RS232 on the emulator I can explore
the existing Font table better than a few months ago. Maybe I will choose the Ariel Font as default ?
A graphical Hello World !!! program should'nt be much bigger than the RS232 version.

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 #211 on: January 03, 2011, 04:43:21 am »
I would really be interested by the documentation of the font table format to lighten the programs that will use the text functions.
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 #212 on: January 03, 2011, 06:03:28 am »
shrear, that's strange. Could you please try this update which brings full support, at least on nspire_emu?

done: installer+samples work now fine on the emu and the nspire

Edit: tested also several other programs, all work except Blockdude (but thats "normal" for now as I understand it)
« Last Edit: January 03, 2011, 06:56:11 am by shrear »

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #213 on: January 03, 2011, 07:00:20 am »
I wanted to take my chance with particles, but now, I get this errors :
(...)
/tmp/ccd8YOWW.s: Assembler messages:
/tmp/ccd8YOWW.s:38: Error: lo register required -- `ldmfd sp!,{r0}'
/tmp/ccd8YOWW.s:44: Error: selected processor does not support Thumb mode `stmfd sp!,{r0}'

[/b]

Would this mean GCC is trying to build particles in Thumb mode? Why?
Can you build Ndless itself with your version of GCC without any problems?

Sorry for the late response, I haven't seen that you answered to me =) (on the 1.7 topic)

I got this error when I wanted to install ndless both on Ubuntu 10.04/10.10 and Fedora 13.
The only available package is arm-linux-gnueabi-gcc, v4.5.
Every tests I made (and critor could confirm this fact) I get this kind of error, when compiling Ndless.
It is true that there exist others arm-gcc on the internet, I've tryed them, they managed to install Ndless but not the samples files.

Here a fresh compilation error with Ndless 2.0 r360 (I've modified all occurences of "arm-none-eabi" with "arm-linux-gnueabi")
levak@levak-i7:/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk$ make clean all
rm -rf dist
Clearing in tools...
make[1]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools »
Clearing in build...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/build »
cd ../../bin && rm -f nspire-gcc nspire-ld  nspire-as || :
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/build »
Clearing in MakeLoader...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/MakeLoader »
rm -f ../../bin/MakeLoader
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/MakeLoader »
make[1]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools »
Clearing in libndls...
make[1]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/libndls »
rm -rf *.o *.elf *.a
rm -f ../lib/libndls.a
make[1]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/libndls »
Clearing in arm...
make[1]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/arm »
rm -rf *.o *.bin *.elf *.xml *.zip
rm -rf ../calcbin/ndless_installer*.tns ../calcbin/ndless_resources.tns
make all in tests...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/arm/tests »
rm -f *.o *.elf
rm -f ../../calcbin/tests/ndless_tests.tns
rm -f ../../calcbin/tests/ndless_keys.tns
rm -f ../../calcbin/tests/ReadMe.txt
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/arm/tests »
make[1]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/arm »
Clearing in samples...
make[1]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples »
Clearing in hella...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples/hella »
rm -f *.o *.elf
rm -f ../../calcbin/samples/hella.tns
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples/hella »
Clearing in hello...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples/hello »
rm -f *.o *.elf
rm -f ../../calcbin/samples/hello.tns
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples/hello »
Clearing in particles...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples/particles »
rm -f *.o *.elf
rm -f ../../calcbin/samples/particles.tns
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples/particles »
rm -f ../calcbin/samples/ReadMe.txt
make[1]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/samples »
rm -rf calcbin
rm -rf bin lib
make all in tools...
make[1]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools »
make all in build...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/build »
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/build »
make all in MakeLoader...
make[2]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/MakeLoader »
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader
make[2]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools/MakeLoader »
make[1]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/tools »
make all in libndls...
make[1]: entrant dans le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/libndls »
nspire-gcc -Os -nostdlib -c any_key_pressed.c
In file included from any_key_pressed.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c clear_cache.c
In file included from clear_cache.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c clrscr.c
In file included from clrscr.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c feof.c
In file included from feof.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c fgets.c
In file included from fgets.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c fputs.c
In file included from fputs.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c isalnum.c
In file included from isalnum.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c iscntrl.c
In file included from iscntrl.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c rewind.c
In file included from rewind.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -c sleep.c
In file included from sleep.c:22:0:
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/bin/../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
/tmp/cck9MB5Q.s: Assembler messages:
/tmp/cck9MB5Q.s:32: Error: selected processor does not support Thumb mode `mcr p15,0,r0,c7,c0,4'
make[1]: *** [sleep.o] Erreur 1
make[1]: quittant le répertoire « /media/JA/TI-Nspire/Ndless/Ndless_svn/trunk/libndls »
make: *** [subdirs] Erreur 1

levak@levak-i7:/media/JA/TI-Nspire/Ndless/Ndless_svn/trunk$


« Last Edit: January 03, 2011, 07:02:14 am by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

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 #214 on: January 03, 2011, 10:42:21 am »
It clearly tries to build in thumb state, I don't know why. May be you could try to add the "-marm" GCC flag to the Makefile?
I opened a ticket for your first report (#55).
Ndless.me with the finest TI-Nspire programs

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #215 on: January 03, 2011, 10:59:25 am »
Just for information.


You can try to install Ndless in PTT mode.
You just have to send the files after activating PTT.
They'll be stored in the temporary "Press-to-Test" folder.

Ndless installation seems to behave exactly like in standard mode (busy for severall secs), except that I don't get the lines at the bottom of the screen when the install dialog box is shown.

Trying to open an Ndless program after that just fails (document format not supported).

Trying to install Ndless a 2nd time is triggering a reboot (uninstall, like in standard mode).


Of course, we could have some Ndless program to disable PTT.
But that would be totally useless, as you need another calculator or a computer to install Ndless.
And if you have another calculator or a computer, you can just exit PTT mode by using the menus.
TI-Planet co-admin.

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 #216 on: January 03, 2011, 11:02:12 am »
The "document format not supported" error is probably caused by a bad file path.

So it isn't worth fixing anything there?
Ndless.me with the finest TI-Nspire programs

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #217 on: January 03, 2011, 11:07:35 am »
The "document format not supported" error is probably caused by a bad file path.

So it isn't worth fixing anything there?


Well... it might be worth for cheating in exams?

Depending upon how it works, you might be able to launch a Ndless program in PTT mode and still have the flashing LED saying that you're not cheating... :P


But we don't want that, of course.
TI-Planet co-admin.

Offline codeslicer

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #218 on: January 03, 2011, 04:27:21 pm »
^^ Don't bother. PTT is there for a reason. You're testing, not playing GBC.

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 #219 on: January 03, 2011, 04:28:47 pm »
^^ Don't bother. PTT is there for a reason. You're testing, not playing GBC.

True, but sometimes you need gbc during a test (i.e. during state tests that you are given 90 minutes to complete that only take you 20 minutes to finish). ;)


Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #220 on: January 03, 2011, 04:29:11 pm »
^^ Don't bother. PTT is there for a reason. You're testing, not playing GBC.

Educational programs can also be made in assembly.
Assembly is not only for games.
TI-Planet co-admin.

Offline codeslicer

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #221 on: January 03, 2011, 04:30:15 pm »
Yeah true, but PTT is there to not let you open documents other than for the calculator's functionality. This can include forbidding opening documents with CAS/other tools.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #222 on: January 03, 2011, 04:32:59 pm »
Yeah true, but PTT is there to not let you open documents other than for the calculator's functionality. This can include forbidding opening documents with CAS/other tools.

There is no way to automatically check an assembly program for its functionalities...
That's what we were talking about.
TI-Planet co-admin.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #223 on: January 03, 2011, 09:07:15 pm »
I read through the whole topic... And I have just upgraded to 2.0.1.60 and have built ndless2.0r360 and I ALWAYS either get a "Not Supported" message, reboot, or freeze. It never succeeds. The file is named "ndless_installer" in the root directory, and its not connected to the computer.
Any help guys?

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 #224 on: January 03, 2011, 09:10:36 pm »
I read through the whole topic... And I have just upgraded to 2.0.1.60 and have built ndless2.0r360 and I ALWAYS either get a "Not Supported" message, reboot, or freeze. It never succeeds. The file is named "ndless_installer" in the root directory, and its not connected to the computer.
Any help guys?

If you get a Not Supported Message, Ndless probably has been installed! :)
« Last Edit: January 03, 2011, 09:11:07 pm by apcalc »