Omnimaga

Omnimaga => Our Projects => Ndless => Topic started by: ExtendeD on December 04, 2010, 09:36:32 am

Title: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 04, 2010, 09:36:32 am
Ndless combines a resident program and utilities to open the TI-Nspire to third-party C and assembly development.

Ndless 2.0 is the upcoming version compatible with OS 1.7/2.0/2.1, and with Touchpad models.

The up-to-date source code is available on the Subversion (http://en.wikipedia.org/wiki/Apache_Subversion) trunk (https://www.unsads.com/scm/svn/nsptools/Ndless/trunk) (The login/password: guest/guest, you can accept the certificate).



To build and hack into Ndless 2.0:

 - Install a Subversion client such as TortoiseSVN (http://"http://tortoisesvn.tigris.org/")
 - Checkout (http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-checkout.html#tsvn-dug-checkout-dia-1) (don't Import!) the source code with the URL and account above
 - Set up a C development environment (http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction)
 - Set up the development environment for Ndless and built it: follow the procedure described in src/doc/Ndess-Development.txt in your working copy
 - Install it on nspire_emu or your calculator by following src/doc/ReadMe.txt

Update frequently (http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-update.html) your SVN working copy to get and rebuild the latest version.

You may browse the Development resources (http://hackspire.unsads.com/wiki/index.php/Main_Page#Development_resources) on Hackspire to start your own programs.

Links to download the TI-Nspire OSes are available in this topic (http://ourl.ca/7373).



Major known issues:

Other possible enhancements and known issues are available on the tracker (http://www.unsads.com/projects/nsptools).



Planned features:




Your help is needed:

- Post any bug report (http://www.unsads.com/projects/nsptools), source-level if possible
- Help us to extend (http://ourl.ca/7106/126013) the list of supported syscalls (http://hackspire.unsads.com/wiki/index.php/Syscalls)
- Any details, diagnostic or patch which would help fixing the defects is extremely valuable

Ndless is an Open Source project, which means:
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: ExtendeD on December 04, 2010, 09:40:51 am
And here comes a major problem: nspire_emu doesn't support file transfers for OS 2.x, so debugging is not easy.
Someone once suggested to transfer the file from OS 1.7 and then upgrade the OS. But I get a crash on OS startup, and anyway I wild get mad after a few debug sessions.
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: Munchor on December 04, 2010, 09:42:18 am
And here comes a major problem: nspire_emu doesn't support file transfers for OS 2.x, so debugging is not easy.
Someone once suggested to transfer the file from OS 1.7 and then upgrade the OS. But I get a crash on OS startup, and anyway I wild get mad after a few debug sessions.

your emulator can't open/edit regular .tns files made in OS>2?
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: ExtendeD on December 04, 2010, 09:48:35 am
Ncubate directly relies on the link features of Goplat's original nspire_emu.

This is a pure problem of file transfer and does not depend on the version of the .tns.
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: Munchor on December 04, 2010, 01:18:08 pm
Ncubate directly relies on the link features of Goplat's original nspire_emu.

This is a pure problem of file transfer and does not depend on the version of the .tns.

So, I suppose you're gonna have to fix that and make a new version of nspire_emu?
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: DJ Omnimaga on December 04, 2010, 02:37:49 pm
I hope to see new development on Ndless 2 soon. Hopefully you won't run into many more problems in the future. I hope the emulator issue can be fixed as well.
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: qazz42 on December 04, 2010, 02:51:13 pm
Does this include CAS touchpad?
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: Munchor on December 04, 2010, 02:52:12 pm
Does this include CAS touchpad?

That would be sweet, but I believe it does :) (Afterall it should work for 2.x operating systems)
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: Galandros on December 04, 2010, 03:03:22 pm
The new keyboard is indeed better to use, so I saw a lot of people upgrading to Nspire 2.0 to use it.
Supporting the 2.0 OS would be a win-win for usability and running cool stuff. :thumbsup:

Waiting for updates. ;)
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: Goplat on December 04, 2010, 03:32:54 pm
And here comes a major problem: nspire_emu doesn't support file transfers for OS 2.x, so debugging is not easy.
Someone once suggested to transfer the file from OS 1.7 and then upgrade the OS. But I get a crash on OS startup, and anyway I wild get mad after a few debug sessions.

Here's another possible workaround, that just takes a reboot instead of a full OS reinstall: create a patched boot2 that doesn't try to load the OS but goes straight into download mode. (e.g. patch the code at offset 0x1244 from 31 06 00 eb to 15 00 00 ea). Send documents using the patched boot2 (may need to set the target folder to the empty string, it doesn't seem to like sending to Examples). Save flash, quit, and restart using the original boot2.

Edit: what do you mean by getting a crash on OS startup? If you're referring to the problems in OS 2.1 CAS, here's a fix: it expects GPIO 2 to be high (indicating battery door closed, not open)
Code: [Select]
Index: apb.c
===================================================================
--- apb.c       (revision 56)
+++ apb.c       (revision 57)
@@ -15,7 +15,7 @@
                        case 0x10: case 0x14: case 0x1C: case 0x20: case 0x24:
                                return 0;
                        case 0x18:
-                               return i == 1 ? 1 : 0;
+                               return 0x0104 >> (i * 8) & 0xFF;
                }
        }
        return bad_read_word(addr);
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 04, 2010, 05:25:07 pm
Thanks Goplat, I like it!

Edit: what do you mean by getting a crash on OS startup?

When upgrading for non-CAS 1.7 to 2.0.1, I get (in OS 2.0.1):

Code: [Select]
Purging temporary files...
Launching system...
Error at PC=1028C97C: r0 = ff000000, nav user = 11f1ee14

        Backtrace:
Frame     PrvFrame Self     Return   Start
1800FAC4: 1800FB64 1800FAC8 1028C288 1028C924
1800FB64: 1800FB9C 1800FB68 1027D35C 1028C1F8
1800FB9C: 1800FBE4 1800FBA0 1027D138 1027D2CC
1800FBE4: 1800FC14 1800FBE8 1027CFB0 1027CFF0
1800FC14: 1800FC4C 1800FC18 1027CC74 1027CEF4
1800FC4C: 1800FCC4 1800FC50 1028B5BC 1027C6D8
1800FCC4: 1800FCE4 1800FCC8 1028B070 1028B10C
1800FCE4: 1800FD14 1800FCE8 101C7B3C 1028AFD8
1800FD14: 1800FD34 1800FD18 101C7C58 101C7B04
1800FD34: 1800FD9C 1800FD38 1000124C 101C7BC0
1800FD9C: 1800FDD4 1800FDA0 102F0F70 10000FC8
1800FDD4: 1800FDF4 1800FDD8 10265938 102F0F24
1800FDF4: 1800FDF8 1800FDF8 00000000 10265920
Title: Re: Ndless 2.0 for TI-Nspire Keypad/Touchpad
Post by: Munchor on December 04, 2010, 05:28:26 pm
/me saves the world
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on December 04, 2010, 06:18:34 pm
Error at PC=1028C97C: r0 = ff000000, nav user = 11f1ee14
Yeah, it's not good to be resetting while leaving the usblink hack active, especially to a different OS version where addresses will have changed. I should fix it to clean everything up on reset. Anyway, shouldn't be a problem with the method I described.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SirCmpwn on December 11, 2010, 10:47:45 pm
^++ I'd love to hear how this is progressing.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 12, 2010, 04:01:16 am
But December the 4th was just last week...
I have professional and personal changes at the moment, please don't except any progress that soon on Ndless.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 12, 2010, 04:38:08 am
But December the 4th was just last week...
I have professional and personal changes at the moment, please don't except any progress that soon on Ndless.
This, I think we need to be patient about when it will come out. Life happens and such project can take lots of effort. It takes ages to discover exploits in softwares to allow jailbreaks. With the TI-81, it took 19 years.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on December 12, 2010, 01:50:29 pm
But hopefully, it won't be as long with the nspire. The only reason the 81 took so long to jb was there was no link port, so nobody tried up until recently. It will be finished with time. We were probably thinking ndless 1.7 would always be in beta, and then suddenly, it comes out.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Snake X on December 12, 2010, 01:54:56 pm
yes!!!!!!!! its coming!!!!!!!  :w00t:  :angel:  :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 13, 2010, 02:40:25 pm
But hopefully, it won't be as long with the nspire. The only reason the 81 took so long to jb was there was no link port, so nobody tried up until recently. It will be finished with time. We were probably thinking ndless 1.7 would always be in beta, and then suddenly, it comes out.
This, and people seemed less interested to jailbreak it. Kinda like old Casio calcs, I guess. I would say another bunch of months and Ndless 2.0 is out, judging by the time between Ndless 1.0 and 1.7. Maybe shorter, if Ndless 2.0 works similarly to 1.7. I bet we'll have Ndless 2.0 before next Summer.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: qazz42 on December 18, 2010, 09:24:05 am
:banghead: Doesn't look like anything new has come out in a while. Any news???

Ack, ctfd, it will get here when it does
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 18, 2010, 09:24:54 am
But hopefully, it won't be as long with the nspire. The only reason the 81 took so long to jb was there was no link port, so nobody tried up until recently. It will be finished with time. We were probably thinking ndless 1.7 would always be in beta, and then suddenly, it comes out.
This, and people seemed less interested to jailbreak it. Kinda like old Casio calcs, I guess. I would say another bunch of months and Ndless 2.0 is out, judging by the time between Ndless 1.0 and 1.7. Maybe shorter, if Ndless 2.0 works similarly to 1.7. I bet we'll have Ndless 2.0 before next Summer.

Which would be perfect!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 18, 2010, 09:33:09 am
How about a first alpha version this weekend?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 18, 2010, 09:33:55 am
How about a first alpha version this weekend?

Hahhaahah, what a joke!! Or it isn't a joke and it is super AWESOME!!!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 18, 2010, 09:35:42 am
How about a first alpha version this weekend?

Yay!  Sounds great ExtendeD!  Thank you again for all of the wonderful work you have done to open the Nspire to third part development! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 18, 2010, 09:38:30 am
How about a first alpha version this weekend?

Yay!  Sounds great ExtendeD!  Thank you again for all of the wonderful work you have done to open the Nspire to third part development! :)

I hope I'll be able to play trapped someday :D

Thank you too ExtendeD!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on December 18, 2010, 11:07:54 am
:w00t:
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 18, 2010, 02:13:39 pm
The first unstable development version is now available for developers! http://ourl.ca/8160/148895
It currently only supports OS 2.0.1 non-CAS. Compatibility with OS 1.7 is temporarily removed.

Compatibility with Touchpad models has not yet been tested, I would be interested by any feedback. If it works, programs run on a Touchpad will use the Clickpad key layout and will be difficult to use.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 18, 2010, 02:14:35 pm
The first unstable development version is now available for developers! http://ourl.ca/8160/148895
It currently only supports OS 2.0.1 non-CAS.

Compatibility with Touchpad models has not yet been tested, I would be interested by any feedback. If it works, programs run on a Touchpad will use the Clickpad key layout and will be difficult to use.

I have a touchpad right next to me, want me to test it?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 18, 2010, 02:49:43 pm
:banghead: Doesn't look like anything new has come out in a while. Any news???

Ack, ctfd, it will get here when it does
What does CTFD means? ???

How about a first alpha version this weekend?
That would rule O.O. I would be interested in testing eventually. I hope it eventually works on Touchpads. :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 18, 2010, 03:07:29 pm
EDIT:  So far, every program tested has worked fine:

Ndless Demo
NESpire
Block Dude
Trapped
Chip's Challenge
Calc84's Console
gbc4nspire
mViewer
ndshell
ncaster

Also, I have had some odd things happen after running an Ndless program while using the touchpad.  First, once the arrow keys stopped working after running a program, and second, it froze on the home screen once.  Both of these issues were fixed with a reboot.  I have not had any of these problems while using the clickpad.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on December 18, 2010, 04:02:13 pm
Great for the alpha version!

If I have some time, I'll compile it, and try to check why both Ndshell and mViewer are crashing.
Those programs are sharing screen, keys and file browsing code.

Let me guess... the incompatibility comes from file browsing code? :p
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 18, 2010, 04:04:22 pm
I would say that would have to be it, as gbc4nspire also uses file browsing. 
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 18, 2010, 04:05:39 pm
Doesn't gbc4nspire contain hard-coded addresses of syscalls anyway?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on December 18, 2010, 04:19:13 pm
Doesn't gbc4nspire contain hard-coded addresses of syscalls anyway?

Don't know, but mViewer and NDShell don't.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 18, 2010, 05:06:02 pm
Sorry, the address of NU_Get_First was wrong, it's fixed now.
I didn't pay enough attention to the broken automated tests.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 18, 2010, 05:44:29 pm
Here is a list of the programs that worked and did not work:

Worked:

Ndless Demo
NESpire
Block Dude
Trapped
Chip's Challenge
Calc84's Console

Crash:

gbc4nspire
mViewer
ndshell

Also, I have had some odd things happen after running an Ndless program while using the touchpad.  First, once the arrow keys stopped working after running a program, and second, it froze on the home screen once.  Both of these issues were fixed with a reboot.  I have not had any of these problems while using the clickpad.

This is really good!!! I am now installing OS 2.1, so that I can install ndless right after :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 18, 2010, 07:45:04 pm
You need OS 2.0.1, not 2.1. :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 18, 2010, 09:18:14 pm
Here are the Touchpad Definitions from Ndless 1.4 - copy and paste the block
int this file into Ndless 2.0 common.h

Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on December 18, 2010, 09:25:03 pm
You need OS 2.0.1, not 2.1. :P

2.1 is bad anyway, killing 1Mb of free space for visibly nothing.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on December 18, 2010, 10:09:01 pm
Doesn't gbc4nspire contain hard-coded addresses of syscalls anyway?
The version hex-edited by Goplat should work on all Ndless versions 1.7 or greater, I should think. It might work now that the NU_Get_First routine has been fixed
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 18, 2010, 10:31:31 pm
You need OS 2.0.1, not 2.1. :P

2.1 is bad anyway, killing 1Mb of free space for visibly nothing.
Yep. Didn't it have more bugs too?
Here are the Touchpad Definitions from Ndless 1.4 - copy and paste the block
int this file into Ndless 2.0 common.h


Nice. Do you think Ndless 1.4 should be included with 1.7 on ticalc.org by the way? I thought it would be nice to have all Ndless versions available in one download (for those who prefer using older/smaller OSes)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 18, 2010, 11:53:21 pm
Quote
Quote from: DJ Omnimaga on Today at 19:45:04
Nice. Do you think Ndless 1.4 should be included with 1.7 on ticalc.org by the way? I thought it would be nice to have all Ndless versions available in one download (for those who prefer using older/smaller OSes)
I was waiting for a proven stable version of 1.7 to come out, before updating Ndless 1.3/1.4
Maybe OS2.0 will give me clues on how to interact with the TouchPad  for OS1.3-4 ?
If not I will give up on the TouchPad and update Ndless 1.3/1.4  and post it.
I will be out of luck if the Applications under those older OS's communicated directly with the hardware I/O
instead of a common OS software call.
Those older OS's can give you more memory and speed to work with .
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 19, 2010, 01:23:14 am
Here's another possible workaround, that just takes a reboot instead of a full OS reinstall: create a patched boot2 that doesn't try to load the OS but goes straight into download mode. (e.g. patch the code at offset 0x1244 from 31 06 00 eb to 15 00 00 ea). Send documents using the patched boot2 (may need to set the target folder to the empty string, it doesn't seem to like sending to Examples). Save flash, quit, and restart using the original boot2.
I used the /d option on the emulator instead, found and changed the bytes at 0x11801244 and
continued , to get a :
Code: [Select]
Press <Enter> to download through the serial port.
Checking battery level.
Battery level is OK.
Begin XMODEM file transfer.
not sure what to do next ?
EDIT: same result when I really do patch boot2.raw
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 19, 2010, 06:35:36 am
Set the target folder to an empty string, connect, send the documents, save the flash and restart the emulator the usual way.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 19, 2010, 11:25:23 am
Set the target folder to an empty string, connect, send the documents, save the flash and restart the emulator the usual way.

It worked in the emulator? Great!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 19, 2010, 12:16:06 pm
Sadly, I think I have an issue with the touchpad here. :(

The touchpad itself has stopped working now for me. :(  When this happened earlier, a reset fixed it, but now I have reset/switched kueypads entirely several times, but the touchpad keys won't work.  The only keys affected are the actual touchpad itself.  Other keys (number, alpha) on the touchpad keypad work fine.  Likewise, the clickpad works perfectly fine.  Could Ndless do something that inactivates the OS reading the "keypresses" of the touchpad?  I have not tried resending the OS yet; that might fix this.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 19, 2010, 12:42:39 pm
I think you should reformat the calc and re-send the OS. By the way, can Ndless modify the OS inside archive? I know it was possible to accidentally do so on flash z80 calcs.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 19, 2010, 12:42:54 pm
Set the target folder to an empty string, connect, send the documents, save the flash and restart the emulator the usual way.
That worked: Don't hit <Enter>  in the console window to download through the serial port.
The sent documents end up in /My Documents/ and not in any subdiirectory like Examples or MyLib.
You should be able to use the same trick with Ncubate and not have to patch boot2
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 19, 2010, 01:04:17 pm
apcalc: weird...

By the way, can Ndless modify the OS inside archive?

The file system can be written to, but the original OS image loaded at boot time cannot be changed since it is signed.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 19, 2010, 01:45:25 pm
Thanks for reporting that bug apcalc, but I'll still try to install ndless to report any more bugs :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 19, 2010, 03:54:12 pm
apcalc: weird...

By the way, can Ndless modify the OS inside archive?

The file system can be written to, but the original OS image loaded at boot time cannot be changed since it is signed.
Ok thanks for the info.
Quote
Quote
serial port.
Serial port? ??? I thought the Nspire only supported USB and that serial ports were long gone. ???
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calcdude84se on December 19, 2010, 03:57:13 pm
It has an internal one, and the emulator can deal with it.
Edit: This is my understanding, at any rate.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 19, 2010, 04:05:00 pm
Hmm strange, I am really curious about this. X.x
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 19, 2010, 04:18:44 pm
There are RS232 pins on the connector on the bottom of the calculator most
people don't use. I am trying to find an aftermarket adapter for this, so
I dont have to solder to the pins to have a serial communication with the calculator.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 19, 2010, 04:22:23 pm
Oh, that's the serial port being talked about. I personally thought of serial ports as something like this: :P

(http://www.arabyarea.com/en/free-download/serial_port.jpg)

I even have a TI link cable for that port that came with my 83+ Silver Edition
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 19, 2010, 04:31:35 pm
Thats right. The other end of the cable will be a DB9 male or female like
you have shown above to connect to a computer. Hackspire and yAronet have some circuit diagrams .
ExtendeD has a RS232 to USB converter - I think , that makes it more convenient to use .
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 19, 2010, 07:07:29 pm
Tomorrow, I'll have some time.
Is there any file to modify for CAS support ? Same than before ? (I haven't looked yet)

edit : Before going to bed I've looked up:

file (number of adresses to get)
bootstrapper.S (1)
install.c (2)
stage2.c (1)
syscalls_cas_2_0_1.c (inf)
syscalls_light_cas_2_0_1.c (inf)
utils.c (2)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 20, 2010, 04:46:53 am
Levak: the lines to update are marked with the keyword "OS-specific" in the source code.
I have committed the support for CAS 2.0.1, but there is a memory leak after the installation which make the calculator unusable, I need to figure this out.

DJ Omnimaga: it looks like this (http://picasaweb.google.com/olivier.armand/JTAGAndRS232OnTINspire#5229276496601351458) on the calculator side.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 20, 2010, 01:06:31 pm
One bug fixed:
bootstrapper.S CAS line should look like this:
.long 0x101EBAA0, 0x101ebba4

Now hello.tns,particles.tns, NES game,console.tns all work.
ndless_tests  fails - very likely a bug in syscalls_cas_2_0_1.c
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 20, 2010, 03:06:43 pm
One bug fixed:
bootstrapper.S CAS line should look like this:
.long 0x101EBAA0, 0x101ebba4

Now hello.tns,particles.tns, NES game,console.tns all work.
ndless_tests  fails - very likely a bug in syscalls_cas_2_0_1.c

It seems there is another missed adress you forgot to mention, I still have the Nspire CAS rebooting after 2 clock' turn.
Otherwise, the Nspire should not reboot. =)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 20, 2010, 03:09:18 pm
Excellent, thanks bsl!

The program "idcmigrate" I have made to look automatically for the symbols of a new OS image is based on heuristics and sometimes takes a symbol for another. The address of realloc was wrong.

CAS support for OS v2.0.1 is fixed, all the tests now pass.

Levak: strange. Are you testing on real HW or on nspire_emu?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 20, 2010, 03:23:31 pm
Levak: strange. Are you testing on real HW or on nspire_emu?
HW :
TI-Nspire CAS ClickPad
OS 2.0.1.60
Boot2 : 1.4

Tested connected from computer, and disconnected from the computer.
I've tried at least my "workaround" with USB 3.0, it doesn't work better.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 20, 2010, 05:04:37 pm
How many bars of pixels can you count on the screen just before the reboot, and how many dotted lines at the bottom of the screen?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 20, 2010, 05:23:49 pm
Here it is : an high framed shoot.

EDIT : OH MY GOD... stupid bug : The folder contains a dot. When I removed it, Ndless installs perfectly \o/
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 20, 2010, 05:53:48 pm
The missing call isalnum should be:

cas2.0: 0x102f30e8   
ncas2.0: 0x102f2818

I didnt test it ,but looks convincing ....
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on December 20, 2010, 06:04:53 pm
That's isalpha actually. TI's implementation of these functions is basically
Code: [Select]
int isalnum(int c) { return isdigit(c) || isalpha(c); }
int isalpha(int c) { return islower(c) || isupper(c); }
so it's very easy to confuse them if you're looking at a disassembly without symbols.

It's common practice for the standard C library to be implemented with one function per file, so the linker can omit any unused functions. That's probably what happened - whatever code used to use isalnum back in 1.7, got changed in 2.0.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 20, 2010, 06:08:55 pm
Yes I just caught it , just now - sometimes they change register usage , making it harder to track.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 20, 2010, 06:16:43 pm
Does anybody confirm the reboot Levak gets on real CAS hardware (i.e. it doesn't depend directly on the calculator state)?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 20, 2010, 06:27:18 pm
Levak, according to your screenshot, the issue happens somewhere in stage1.c, and most probably in fopen since you don't have the third bar created by the fread. Either there is not enough memory to (f)open ndless_resources, or it simply cannot be found.

Could you please try the installation with much less files on the calculator, if it's not a problem for you to delete them?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 20, 2010, 06:30:58 pm
Levak, according to your screenshot, the issue happens somewhere in stage1.c, and most probably in fopen since you don't have the third bar created by the fread. Either there is not enough memory to (f)open ndless_resources, or it simply cannot be found.

Could you please try the installation with much less files on the calculator, if it's not a problem for you to delete them?

I've said, by editing my post, that I managed to intall Ndless 2.0 on Hardware by removing the dot contained in the folder name.
=)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 20, 2010, 06:56:18 pm
ut_currentdocdir_addr points to ndless_installer's folder... but with special characters removed :(
I have no other choice than to add a note to the ReadMe file.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 20, 2010, 07:10:03 pm
I get exactly the same screen on the emulator when I create a folder
named Ndless2.0 and put the Ndless files in there to run.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 21, 2010, 04:45:21 am
Goplat: ok, I see. I hope this won't happen to often with the next OS upgrades (if we ever get Ndless to work on them...).

isalnum is now part of the default static library libndls instead of being a syscall.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Tuxpp on December 21, 2010, 09:07:31 am
I tried the alpha version on my CAS Touchpad (OS 2.0.1, Boot2 1.4), and i got some issues :
  - when trying to install ndless, the installation often doesn't work : the calculator reboot most of the time.
  - All programs started, so no problem for that.
  - In all programs i tried, the touchpad  and a lot of keys didn't work at all.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 21, 2010, 10:04:57 am
Thank you Tuxpp for the report.

1) Make sure to disconnect the calculator from the computer before running ndless_installer. What is your average success rate with this condition? It should be around 2/3.
3) Yes, the key remapping is the last step before a full support of the Touchpad.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Tuxpp on December 21, 2010, 10:21:24 am
Yes, the average success is indeed 1/2 or 2/3 if I disconnect the calculator.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 06:23:12 am
I'm trying to add support for OS 1.7 back, but I am buming into a strange problem.

I have defined this function in libndls.h:
Code: [Select]
static inline BOOL is_cas_model(void) {
return *(volatile unsigned *)0x900A002C == 0x04000001;
}

I am using it this way in utils.c:
Code: [Select]
void ut_read_os_version_index(void) {
// Stage1 is built specifically for an OS version. Dispatch accordingly.
// OS_VERSION_INT and OS_VERSION are passed by the build script.
#ifdef STAGE1
BOOL isncas = !is_cas_model();
// OS-specific
#if OS_VERSION_INT == 17
ut_os_version_index = isncas ? 0 : 1;
#endif
#if OS_VERSION_INT == 201
ut_os_version_index = isncas ? 2 : 3;
#endif
...

When run on the emulator OS 2.0.1, ut_os_version_index is set to 2 for CAS and 3 for non-CAS, but it should be the opposite.
The weirdest part is that when is_cas_model() is not inline, everything works well. Should I suspect a bug in GCC? This file is built in thumb state, I don't know if it is related.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 22, 2010, 06:26:43 am
This is what I got after some testing

Calc is a NspireCas Touchpat
OS 2.0.1.60
In 43 trys I get

-10 successes

-20 times the message "This document format not supported. ndless_installer.tns
but particles works fine nevertheless, so I think it's just an error with the message

-4 reboots

-9 frozen clocks
there is always a slim bar at the top, an "average" and a big one in the up half on the screen
and the bar at the bottom is 5 black lines strong, except once where there were only 3


particles works fine (keys are wrong: w=+  q=-)

but neither hello nor hella
both cause a reboot about 2 of 3 times,
else there is then a black screen whit a frozen clock
also there is often no change at all when I try to open them, I have to press several times enter (or menu 4) sometimes

the rest of the nspire works fine with Ndless installed
keys and touchpat make no problems documents open
(but I didn't test much there yet)


Thats it, I hope it helps.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 06:31:48 am
Thanks shrear for the status.

also there is often no change at all when I try to open them, I have to press several times enter (or menu 4) sometimes

Do you mean when opening hello/hella? These programs merely write to the RS232 output, on real hardware without RS232 adapter nothing really happens.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 22, 2010, 06:36:19 am
Ok that explains it
But not that they cause a "crash" the first time I "use" them...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 09:32:14 am
It looks similar to apcalc's report (http://ourl.ca/8160/154954).
I wonder how specific to the Touchpad the problem is.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 09:36:10 am
Support for OS 1.7 has been re-introduced.
There is now a "ndless_installer" for each OS version, the user must choose the right one. This is required by the size constraints imposed by the hack on which Ndless is based.
Getting to the right solution in the build script was quite difficult because of the multi-staged design of Ndless.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: NeoCrisis on December 22, 2010, 09:37:33 am
glad to hear ^^ does it work on CAS?? ;D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 09:39:12 am
It does work on CAS 1.7 and 2.0.1.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: NeoCrisis on December 22, 2010, 09:40:17 am
Does 2.0.1 mean a calc bought in September? ;D the one my father's gonna offer to me has been bought in September,2010....
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 22, 2010, 11:36:30 am
My calc dates from august, so I suppose a Nspire bought in September is NOT going to work ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: NeoCrisis on December 22, 2010, 11:39:44 am
:'( oh no...... :'( I'll have troubles, but maybe ExtenDeD will release a new version :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 22, 2010, 12:00:57 pm
well I add to my post (#78)
that blockdude also works fine, ...until I try to walk around, except esc and doc no keys react.
but as soon I exit they are back to normal

Edit: After I changed the keys in the source, "playing" works so it's only the keymapping


and my screen was once after being off a time "moved" a few cm to the right, off/on fixed that.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 12:03:38 pm
The first point confirms apcalc's report on Touchpads's arrow keys.
And I have frequently the same issue as your second point with my Clickpad.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on December 22, 2010, 12:25:16 pm
I'm trying to add support for OS 1.7 back, but I am buming into a strange problem.

I have defined this function in libndls.h:
Code: [Select]
static inline BOOL is_cas_model(void) {
return *(volatile unsigned *)0x900A002C == 0x04000001;
}

This requires that many of the calculator Product ID bits be zero; it will only work on 1 out of 8388608 calculators. Should be

return (*(volatile unsigned *)0x900A002C & 0x04000000) != 0;
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 12:27:26 pm
Oh, right. But why did it fail even on nspire_emu?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on December 22, 2010, 06:15:36 pm
Figured it out - it's a bug in nspire_emu :( The thumb instruction "neg" ought to set the carry and overflow flags, but it doesn't. This messes up gcc's way of implementing the ! operator in thumb:

Code: [Select]
neg r1, r0 @ r1 = -r0, carry set if r0 == 0
adc r0, r1 @ r0 is now 1 if it was 0 before, 0 otherwise

Here is a patch that hopefully fixes it:

Code: [Select]
Index: cpu.c
===================================================================
--- cpu.c (revision 58)
+++ cpu.c (working copy)
@@ -861,7 +861,7 @@
  case 0x6: /* SBC */ res = *dst = add(*dst, ~src, arm.cpsr_c, true); break;
  case 0x7: /* ROR */ res = *dst = shift(3, *dst, src & 0xFF, true); break;
  case 0x8: /* TST */ res = *dst & src; break;
- case 0x9: /* NEG */ res = *dst = -src; break;
+ case 0x9: /* NEG */ res = *dst = add(0, ~src, 1, true); break;
  case 0xA: /* CMP */ res = add(*dst, ~src, 1, true); break;
  case 0xB: /* CMN */ res = add(*dst, src, 0, true); break;
  case 0xC: /* ORR */ res = *dst |= src; break;
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 07:37:54 pm
Ok, this makes thinkgs much clearer :) This issue was driving me mad, since I trusted both GCC and nspire_emu.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 22, 2010, 07:45:04 pm
I have just commited full support for the Touchpad key layout. Thanks bsl for the constants which helped me a lot, and Goplat for the original key map.

Programs need to be rebuilt with this version to handle properly the layout. Some programs which depends on Clickpad-specific keys will need slight changes (such as BlockDude which uses the Home key).

I'm interested to know how it works on real hardware, and if this update fixes the random reboot issue on Touchpad (it probably doesn't). The particles demo and BlockDude are good choices for a test.

Unfortunately gbc4nspire would need some reverse-engineering work to update it...

More details for developers:

Touchpad support is transparent, but makes the program slightly bigger (and slightly slower).
isKeyPressed will always return FALSE when scanning keys which does not exist on a model.
If needed, the variable BOOL is_touchpad can be used to determine the model.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 22, 2010, 08:30:51 pm
Programs need to be rebuilt with this version to handle properly the layout. Some programs which depends on Clickpad-specific keys will need slight changes (such as BlockDude which uses the Home key).

Better fix this! :P

Also, I should have some free time tomorrow, so I'll test the touchpad a bit with this new version!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on December 22, 2010, 09:13:27 pm
ExtendeD: With a fresh compile, the "swi 80003b" call in crt0.o's cache_keypad_type is getting linked into ndless_resources.tns, and the installer's swi handler doesn't handle that.

apcalc: Does this mean your touchpad is working again? Good to see the problem wasn't permanent.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 22, 2010, 11:30:26 pm
apcalc: If you get the Touchpad problem again,  try pinching your fingers across the  contacts
- this might discharge any charge buildup, that causes the Touchpad not to work properly which was
running under abnormal conditions.
The Datamath website shows extensive integrated circuitry in the keypads.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 23, 2010, 12:46:17 am
Wow nice updates guys!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: willrandship on December 23, 2010, 12:54:07 am
Quote
1) Make sure to disconnect the calculator from the computer before running ndless_installer. What is your average success rate with this condition? It should be around 2/3.

So, now we won't need it connected through USB to install? Sweet! I have been considering making a little dongle for my nspire, so it's "connected" to something. I found out it can be connected to any device, including DSLR Cameras :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 23, 2010, 05:58:27 am
Many of you will be much interested by Goplat's update of nspire_emu (http://www.unitedti.org/forum/index.php?showtopic=9588), which include compatibility of file transfers with OS 2.x.

willrandship: Not anymore since Ndless v1.7.

Goplat: Thanks, I have just fixed it, I am not sure how I didn't see it during my tests.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 23, 2010, 06:26:30 am
I tried the "Keys"....
arrowkeys still don't work
and for particles I have to use w+q
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 23, 2010, 06:55:02 am
Quote
arrowkeys still don't work
With which program do you have problems?

Would you have better luck with this build?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 23, 2010, 06:56:20 am
Would you have better luck with this build?

I couldn't use that build in a touchpad (if that's the same one I used, since the version name is the same)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 23, 2010, 07:20:02 am
Blockdude
and I already use version 348
I compared the "common.h"s they are identical.

Would you have better luck with this build?

I couldn't use that build in a touchpad (if that's the same one I used, since the version name is the same)
Ndless as such works fine for me with this version
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 23, 2010, 07:26:46 am
I couldn't use that build in a touchpad (if that's the same one I used, since the version name is the same)

It isn't. Your problem was a wrong OS version if I remember.

Blockdude
and I already use version 348
I compared the "common.h"s they are identical.

I suspect a build issue, so I'm sharing my binaries. Did you fully rebuild Ndless with "make clean all" at the root?
Also did you rebuild BlockDude?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 23, 2010, 07:29:38 am
I couldn't use that build in a touchpad (if that's the same one I used, since the version name is the same)

It isn't. Your problem was a wrong OS version if I remember.

Nopes, I installed the correct OS: 2.1.60, but it still didn't work :(
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 23, 2010, 07:33:41 am
Trust me, it isn't:

Currently only supports OS 1.7 CAS/non-CAS and OS 2.0.1 CAS/non-CAS.
Support for OS 2.1 may be added later but is not the priority.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on December 23, 2010, 07:43:22 am
I meant OS 2.0.1.60 is my OS and it doesn't work.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 23, 2010, 08:17:27 am
I suspect a build issue, so I'm sharing my binaries. Did you fully rebuild Ndless with "make clean all" at the root?
Also did you rebuild BlockDude?

Yes I did
The executables of blockdude created with your version and the one with my build are identical

But the Ndless installers are not so I tried it with both installers
-arrow keys do not work with both...

Ndless resource are identical
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on December 23, 2010, 12:13:58 pm
We should note that if OS 2.x detects a touchpad when it boots, it does some communication with it over the I2C interface, and henceforth it ignores the keypad bits that should correspond to the arrow keys, and uses the I2C to read actual x/y values instead. Maybe that initial communication switches it from "arrow keys mode" to "x/y mode" or something.

If you boot up with a clickpad, run a program like BlockDude, and switch to the touchpad, do the "arrow keys" respond then?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 23, 2010, 03:33:59 pm
I have the Nspire Touchpad CAS.  I downloaded the binaries on page 7; the installer worked, as did the particle demo, so nice job!  However, after I exit the particle demo, the left ~10 pixels are shifted to the right of the screen for some reason.  Additionally, gbd4nspire 0.8 initiates with a black screen, then the calc crashes.  Calc also crashes when the "hello" example are run, while "hella" does nothing.  The tests don't work (I'm using the USB, not RS232, adaptor).

Not sure how useful the above is (probably not), but if anyone wants me to test software on my calc I should be able to. :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 23, 2010, 03:55:10 pm
apcalc: Does this mean your touchpad is working again? Good to see the problem wasn't permanent.

Yes, resending the OS fixed this problem!

I have been testing this a bit more today.  Everything works fine with the clickpad, but I still don't have the arrow keys working on the touchpad (I tried it with directly starting the program from the touchpad, and by starting with the clickpad, then putting in the touchpad).  Also, as said earlier, the screen does shift about 10/15 pixels left (I had it go right once, too) after running the particles demo.  I did not have this happen when running other Ndless programs.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 23, 2010, 04:25:08 pm
For me, arrow keys work in OS, but not in block dude.  Also, particles doesn't always shift the screen.  For some reason, after I installed OS, then connected to USB, then opened block dude, then exited and opened particle demo_beta 1.7, I see no shift when I run any of the particle demos.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 23, 2010, 04:40:47 pm
For me, arrow keys work in OS, but not in block dude.  Also, particles doesn't always shift the screen.  For some reason, after I installed OS, then connected to USB, then opened block dude, then exited and opened particle demo_beta 1.7, I see no shift when I run any of the particle demos.

I should have stated that also:  The only spot were the arrow keys didn't work is in an Ndless program.  They worked fine in the OS, unlike before resending the OS.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on December 23, 2010, 09:09:05 pm
I have the Nspire Touchpad CAS.  I downloaded the binaries on page 7; the installer worked, as did the particle demo, so nice job!  However, after I exit the particle demo, the left ~10 pixels are shifted to the right of the screen for some reason.  Additionally, gbd4nspire 0.8 initiates with a black screen, then the calc crashes.  Calc also crashes when the "hello" example are run, while "hella" does nothing.  The tests don't work (I'm using the USB, not RS232, adaptor).

Not sure how useful the above is (probably not), but if anyone wants me to test software on my calc I should be able to. :)
Are you using the updated version of gbc4nspire that is for Ndless 1.7 and up?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 23, 2010, 09:12:11 pm
I have the Nspire Touchpad CAS.  I downloaded the binaries on page 7; the installer worked, as did the particle demo, so nice job!  However, after I exit the particle demo, the left ~10 pixels are shifted to the right of the screen for some reason.  Additionally, gbd4nspire 0.8 initiates with a black screen, then the calc crashes.  Calc also crashes when the "hello" example are run, while "hella" does nothing.  The tests don't work (I'm using the USB, not RS232, adaptor).

Not sure how useful the above is (probably not), but if anyone wants me to test software on my calc I should be able to. :)
Are you using the updated version of gbc4nspire that is for Ndless 1.7 and up?

I think this is an issue with one of the syscall addresses like earlier.  If it shows the completely black screen, I think it is starting successfully, but it crashes when it goes to look for the .rom files.  This is exactly what happened to me in previous versions of Ndless 2.0, but after the address was fixed, it now works fine! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 23, 2010, 09:23:51 pm
My bad - I was using the old 1.1 version! It works! All the keys work except for the arrow keys.  Also, when opening gbc4nspire and then pressing ESC before selecting a game, the top ~10-15 pixels are not redrawn by the OS, so you can see the "gbc4nspire v0.8 - Select a ROM file:" line on black background.

Still, this is really awesome - I have a nice screensaver for my Nspire now!  :w00t:  :hyper:  :angel:
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 23, 2010, 09:58:54 pm
As a suggestion to staff, links to OS 2.0.1 should probably be added to the first post, in case some people miss the other topic outside the Ndless sub-forum.

TI-Nspire 2.0.1.60 (http://education.ti.com/downloads/files/ti-nspire/2/TI-Nspire-2.0.1.60.tno)
TI-Nspire CAS 2.0.1.60 (http://education.ti.com/downloads/files/ti-nspire/2/TI-NspireCAS-2.0.1.60.tnc)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 24, 2010, 04:44:45 am
Question to those who tested with touch-pad: are your keys NOT scrambled ???

like +=w -=q ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 24, 2010, 10:12:51 am
(I have CAS Touchpad) The OS works fine - no keys are scrambled.  Touchpad doesn't work in asm programs, idk about keys.

Anyways, I did some more tests: (apps from ticalc)

ncaster/floorcaster 0.3 - app runs, but nothing on screen changes (it's like a transparent app or something)
ncaster 0.2.2 - crash
nespire - works (arrow keys don't, of course)! But yeah, here some keys are scrambled: Pause is not 'p' but actually 'EE'.  Reverse colors is not 'r' but 'o'. And quit is not 'q' but 'n'.
snake - crashes (prob. not ndless 1.7)
ChipsChallenge alpha1 - crash

I'm guessing different addresses/layout need to be found for CAS Touchpad.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 24, 2010, 10:21:30 am
The versions of ncaster/floorcaster/snake from ticalc will not work because all were built for Ndless 1.1.  There is a 1.7 compatible of Ncaster somewhere here on Omnimaga (probably in the Ncaster project thread).

/me pokes bwang to update ncaster on ticalc :P

As for Chip's Challenge not working:  that is strange.  It works fine for me with the Non CAS with both touchpad (although the keys are mixed up) and the clickpad for me (although, I think I am using a more recent version than in the thread, as I know mine has a test-map I made with water and such).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 24, 2010, 10:31:31 am
I'm guessing different addresses/layout need to be found for CAS Touchpad.
They are already fund and as far as I understand also implemented in "common.h" but it seem not to work for us :(

I get the all keys (except on/home + arrow-keys) right by modifying that header but the tns' build so would then have their keys scrambled with a Cklickpad...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: qazz42 on December 24, 2010, 12:57:59 pm
Hmm, an alpha already? That was quick. Sadly, my dad uninstalled almost everything on my computer and I cant remember what so building for me.

oh well, 1.7 it is
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 24, 2010, 01:05:33 pm
It remains 5 days before Ndless birthday, isn't it ? :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 24, 2010, 01:06:11 pm
Shrear, can't there just be two separate files then, like one for CAS and nonCAS, and then also for Touchpad and Clickpad?

Also, don't the arrow keys work on the Touchpad non-CAS; they're just scrambled? So why don't they work on CAS?

Btw apcalc has 666 posts! (devil :P)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 24, 2010, 01:58:59 pm
Ask this ExtendeD, not me...

but if you wait a few seconds I may post an "alternative" header-file.


EDIT: added one, but if you use this one keys will be scrambled on a Clickpat, also arrow-keys and on do not work( at least for me)

(ExtendeD I hope you don't mind?)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 24, 2010, 03:34:07 pm
Try this:
put after function main()
Code: [Select]
int main(void){
.
.
unsigned intmask = TCT_Local_Control_Interrupts(0);
.
.
TCT_Local_Control_Interrupts(intmask);
return 0;
}
See if this fixes the Touchpad probem.
I had to do this for test.c in Ndless1.3, because I was getting unexplained crashes.
This fixes using stdout, will it fix the Touchpad problem ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 24, 2010, 04:20:30 pm
No, doesn't help...
Arrowkeys+on still do not react

but the clock on the screen seems to reacts on the touchpat, wtf...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 25, 2010, 11:40:28 am
Tried installing the build from page 7 on my Nspire, but without success. After 50 popups of "format not supported" errors and reboots, I gave up. I made sure not to have any special characters in folder names, and even tried with the calc plugged and unplugged into the PC, without results. Am I missing something?

Info:
Nspire non-CAS Touchpad
OS 2.0.1 (modified version with TNOC without boot2 and examples - maybe this is the problem?)
Old HW version (no power bug on OS 1.1)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 25, 2010, 12:16:07 pm
For now, while the keypad isn't working, would it be possible to just map the arrow keys to the numbers?

i.e., map up to 8, down to 5, left to 4, and right to 6?

EDIT: I tried compiling myself on Ubuntu, but I'm getting
Quote
utils_light_thumb_os-1.7.o: In function `ut_calc_reboot':
utils.c:(.text+0xcc): undefined reference to `__builtin_unreachable'

so if anyone could try doing the above that'd be cool in the meantime
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 25, 2010, 01:31:54 pm
I just comment those out like this (see older version of Ndless)
while(1); //__builtin_unreachable();
This line should ideally never get reached anyway, since its in a function that
does'nt return.

Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 25, 2010, 02:20:32 pm
Thanks bsl.  I got through that part but now I'm getting

Quote
arm-none-linux-gnueabi-objcopy -O binary ndless_core.elf ndless_core.bin
stage2_hexsize=`wc -c ndless_stage2.bin | cut -f1 -d' ' | xargs  printf '%04x'` \
   && test -n "$stage2_hexsize" \
   && echo -e -n "\x${stage2_hexsize:2:2}\x${stage2_hexsize:0:2}\x00\x00" > ../calcbin/ndless_resources.tns
/bin/sh: Bad substitution
make[1]: *** [ndless_resources.tns] Error 2
make[1]: Leaving directory `/home/cs/trunk/arm'
make: *** [subdirs] Error 1

Do you think it would be possible to put something like this into common.h?

Code: [Select]
#define KEY_NSPIRE_UP         KEYTPAD_(0x1C, 0x040, 0x18, 0x040)
#define KEY_NSPIRE_RIGHT      KEY_(0x14, 0x008)
#define KEY_NSPIRE_DOWN       KEY_(0x14, 0x080)
#define KEY_NSPIRE_LEFT       KEYTPAD_(0x1C, 0x010, 0x18, 0x020)

I think it should work based on the map at http://tibank.forumactif.com/t6325-ndless-17-sur-cas-touchpad
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on December 25, 2010, 02:51:19 pm
Actually, the arrow and click keys cannot be checked the same way as the other keys on the touchpad. That mapping is actually for some sort of touchpad prototype which is supported by the OS (which is what nspire_emu uses, and thus where this faulty key mapping comes from). I personally have no idea how to check the touchpad, but Goplat mentioned some OS routines that can be used.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 25, 2010, 03:17:04 pm
Tried installing the build from page 7 on my Nspire, but without success. After 50 popups of "format not supported" errors and reboots, I gave up. I made sure not to have any special characters in folder names, and even tried with the calc plugged and unplugged into the PC, without results. Am I missing something?

Info:
Nspire non-CAS Touchpad
OS 2.0.1 (modified version with TNOC without boot2 and examples - maybe this is the problem?)
Old HW version (no power bug on OS 1.1)

The pop-up that this file format is not supported doesn't necessary mean that Ndless didn't install, try out particles , there is a big chance that it works.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on December 25, 2010, 06:34:51 pm
Actually, the arrow and click keys cannot be checked the same way as the other keys on the touchpad. That mapping is actually for some sort of touchpad prototype which is supported by the OS (which is what nspire_emu uses, and thus where this faulty key mapping comes from).

It might be unrelated.
But here is a corrected image of what the TouchPad keys are doing when used:
* in boot1
* in boot2
* in the diagnostic software
* with a 1.x OS

(http://i63.servimg.com/u/f63/13/23/13/53/castou13.gif)


This is not the prototype anymore.
Please tell me if I've made any error.
Thank you!

Hope it can be usefull to you!
(hard to use the diagnostic software or even the maintenance menu without having that image...)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 25, 2010, 08:07:39 pm
Nice work, critor - I knew it would be a matter of time before somebody
would make a better image than what I posted on  UTI.  I knew what I had was temporary anyway.
How did you edit the original image ? The usual graphics tools ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on December 25, 2010, 08:12:19 pm
Nice work, critor - I knew it would be a matter of time before somebody
would make a better image than what I posted on  UTI.  I knew what I had was temporary anyway.

Thanks. But your image was mostly right: thank you for your work.
Too bad the arrow "keys" can't work at all...

How did you edit the original image ? The usual graphics tools ?

Yes. Edited with "The GIMP".
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 26, 2010, 03:16:30 am
Nice image Critor! Also welcome back to Silver Shadow!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 26, 2010, 10:54:04 am
Thanks shrear, I didn't think about trying to launch any programs after that, and sure enough, they worked! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 26, 2010, 10:57:54 am
Believe me, I also needed a lot of time to get behind that...

And actually it's written one the first page...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 26, 2010, 11:51:01 am
I saw that, but I thought that it meant that instead of installing, it displayed this error message, but it actually meant that it installed correctly but instead of displaying the "installed" message, it errored.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl on December 26, 2010, 01:09:02 pm
Try this work around in an Ndless program:
Ctrl-8   UP
Ctrl-4   LEFT
Ctrl-6  RIGHT
Ctrl-2  DOWN

I chose these keys because it should be easy to remember and use.

EDIT: Ctrl-5  Click
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 26, 2010, 01:44:49 pm
Try this work around in an Ndless program:
Ctrl-8   UP
Ctrl-4   LEFT
Ctrl-6  RIGHT
Ctrl-2  DOWN

I chose these keys because it should be easy to remember and use.

I confirm, mapping the keys to the numbers works fine.
;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on December 26, 2010, 05:12:01 pm
Is this ready to be used or is it still being tested?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 26, 2010, 05:19:29 pm
Still being tested right now. They make sure it's bug-free or stable enough before release, otherwise the forums would get flooded with "My calc is broken I will kill you" messages. :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on December 26, 2010, 09:34:55 pm
Still being tested right now. They make sure it's bug-free or stable enough before release, otherwise the forums would get flooded with "My calc is broken I will kill you" messages. :P

lol I wouldn't post that gives them warning
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 27, 2010, 07:28:47 am
So to sum up the previous posts:
1) The dynamic remap available on the HEAD of the SVN repository works for nobody, right?. Strangely it works for me on nspire_emu.
2) The Touchpad arrows won't work as long as we don't find how to interact with the hardware. Could anyone try Goplat's keypad swap (http://ourl.ca/8160/156737) suggestion?
3) The best workaround would be to map the arrows to 1-9. But this depend on 1).

However, after I exit the particle demo, the left ~10 pixels are shifted to the right of the screen for some reason.

Yes, the "shifted screen" is listed in the first post. I have no idea of the cause at the moment.

As a suggestion to staff, links to OS 2.0.1 should probably be added to the first post, in case some people miss the other topic outside the Ndless sub-forum.

Sure, good idea.

It remains 5 days before Ndless birthday, isn't it ? :D

You have a good memory :) It was not really Ndless at this time, but a picture of the first lines of code run on real hardware.

EDIT: I tried compiling myself on Ubuntu, but I'm getting
Quote
utils_light_thumb_os-1.7.o: In function `ut_calc_reboot':
utils.c:(.text+0xcc): undefined reference to `__builtin_unreachable'

Make sure you are using GCC v4.5.1.

Actually, the arrow and click keys cannot be checked the same way as the other keys on the touchpad. That mapping is actually for some sort of touchpad prototype which is supported by the OS (which is what nspire_emu uses, and thus where this faulty key mapping comes from). I personally have no idea how to check the touchpad, but Goplat mentioned some OS routines that can be used.

Could you point me to the post? I don't remember it.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 27, 2010, 07:39:24 am
Could anyone try Goplat's http://ourl.ca/8160/156737]keypad swap (http://) suggestion?
can it be that you placed the "[/url" at the wrong place?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on December 27, 2010, 08:35:47 am
Could anyone try Goplat's keypad swap (http://ourl.ca/8160/156737) suggestion?
(link corrected)

I've tried to boot with a ClickPad keypad, and then swapping the keypads while a Ndless program is running.
The TouchPad arrows didn't work.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on December 27, 2010, 02:03:09 pm
So to sum up the previous posts:
1) The dynamic remap available on the HEAD of the SVN repository works for nobody, right?. Strangely it works for me on nspire_emu.

nspire_emu is wrong:
Quote
  /Kn           - set keypad type (2 = TI-84 Plus, 3 = Touchpad)
Keypad type 3 was a touchpad prototype or something, which apparently set appropriate directional key bits in 900E0010-900E002F when the touchpad was pressed down. Keypad type 4 is the touchpad that was actually sold. It never sets directional key bits. Instead, you have to use the I²C (which is not emulated yet) to get the touch position and whether it's pressed down or not.

This screen from DIAGS 2.00.1183 says it all:
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 27, 2010, 02:10:33 pm
^Nice!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 27, 2010, 02:24:39 pm
Thanks, that's what I have also found thanks to critor's tests.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Yeong on December 27, 2010, 07:51:53 pm
woah Ndless 2.0 came out?? :o
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 28, 2010, 07:43:35 am
/me goes to search for "alacrity" in Wikipedia. :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD 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 (http://hackspire.unsads.com/wiki/index.php/Syscalls) 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 (http://hackspire.unsads.com/wiki/index.php/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!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 28, 2010, 12:06:29 pm
tested particles: +-are really +- on my Touchpat now.
Will do some more testing now.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SirCmpwn on December 28, 2010, 12:07:53 pm
Wish, this actually exists?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc 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! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl 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
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 28, 2010, 03:46:11 pm
The following issue has been fixed:

Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD 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?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calcforth on December 28, 2010, 05:59:59 pm
Could there be some execution protection on the heap, but not for all the allocations?
Highly unlikely. nSpire is ARM9 and XN bit was only introduced in ARMv6. It looks more like some kind of timing issue.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 28, 2010, 06:11:56 pm
But with the interrupts masked, what could interfer?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calcforth on December 28, 2010, 06:24:54 pm
But with the interrupts masked, what could interfer?
Most probable cause is caches. Read this (http://blogs.arm.com/software-enablement/141-caches-and-self-modifying-code/) - does it look like what you are seeing?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on December 28, 2010, 07:49:32 pm
Ah yes, caches could be a big issue. In the Ndless program loader, after loading a program try running this: (info taken from the arm926ej-s manual)
Code: [Select]
tc_loop: MRC p15, 0, r15, c7, c10, 3 @test and clean DCache
BNE tc_loop
mov r0,#0
MCR p15, 0, r0, c7, c7, 0 @invalidate ICache and DCache
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 28, 2010, 08:30:59 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.

I am confused, does the strikethrough means you had it fixed, but then you discovered it was not and you added the [ s ] tag to your text so people disregard the post? ???
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on December 28, 2010, 11:24:48 pm
So how is this going?
Is the touch pad compatible yet?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Tuxpp on December 29, 2010, 03:37:56 am
All keys work, except arrow keys : but they are mapped to number keys (1 to 9).
And you have to rebuild all programs with the new version of ndless to use the touchpad keypad.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 29, 2010, 04:54:26 am
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.

I still get the format warning message. (I did "make clean", before the rebuild (revision 351) )
So this isn't fixed yet...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 29, 2010, 05:23:19 am
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.

I still get the format warning message. (I did "make clean", before the rebuild (revision 351) )
So this isn't fixed yet...

He removed it from Major issues, didn't he ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 29, 2010, 05:29:02 am
Yes he did.
Maybe it's my English but what does that change ???
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 29, 2010, 06:33:00 am
Could someone please build the latest release for me? Or explain step-by-step how to do it? (I'm sorry for being a n00b.) I can't seem to figure out how to setup everything myself... :(
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 29, 2010, 06:56:01 am
-install Msys + Mingw (http://www.mingw.org/wiki/MSYS)
-install 7zip (http://www.7-zip.org/download.html)
-install Yagarto (http://sourceforge.net/projects/yagarto/files/YAGARTO%20for%20Windows/20101223/)
-add the 7-zip folder and the yagarto "bin-folder"  to your "Path" variable (on W7: Control Panel\System and Security\System # Advanced system settings # Environment Variables )
(to add: write ";" after the existing "paths" and copy paste)


open Msys
write: cd <path to ndless directory>/tools
write: make

add the crated "bin folder" (/something/ndless/bin) to your path variables

write: cd <path to ndless directory>
write: make

if I didn't miss something it should now build.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 29, 2010, 07:06:59 am
Could someone please build the latest release for me? Or explain step-by-step how to do it? (I'm sorry for being a n00b.) I can't seem to figure out how to setup everything myself... :(

follow this http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 29, 2010, 07:22:50 am
Thanks a lot guys! I'll let you know when I finish setting up everything.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 29, 2010, 07:45:52 am
I get this error when I do "make" in the Ndless directory:

make[1]: nspire-gcc: Command not found
make[1]: *** [any_key_pressed.o] Error 127
make[1]: Leaving directory `/c/users/silver/documents/ndless/libndls'
make: *** [subdirs] Error 1
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on December 29, 2010, 08:31:00 am
Had you add the /Ndless/bin directory to your Windows PATH variable ?
If yes, you should verify it twice.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 29, 2010, 08:33:22 am
Yes I have.
I didn't add the 7zip bin folder though, as I didn't find it.

EDIT: Doing "make" in /tools succeeds. It only errors when I do it on the whole Ndless directory.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 29, 2010, 09:27:06 am
Search under "Program Files" or "Program Files (x86)" for 7zip
(except you installed it manually somewhere else) 
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on December 29, 2010, 09:41:20 am
I mean, I found the 7zip folder, but there isn't any subfolder named "bin" inside. Should I create one?

EDIT: I succesfully added C:\Program Files\7-Zip\bin to the path variable. The build now succeeds, but I get an error at the end:

make[1]: 7za: Command not found
make[1]: *** [ndless_installer_os-1.7.tns] Error 127
make[1]: Leaving directory `/c/users/silver/documents/ndless/arm'
make: *** [subdirs] Error 1

EDIT2: I've added C:\Program Files\7-Zip to the path variable too, and now everything worked! Gonna test out the result on my calc now...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on December 29, 2010, 10:12:21 am
I just noticed that I have no 7zip/bin either, should perhaps have verified that before posting...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 29, 2010, 10:49:05 am
Nope, no /bin directory for 7zip.  Just add C:\Program Files (x86)\7-Zip to your path, I believe.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on December 29, 2010, 06:35:27 pm
I still get the format warning message. (I did "make clean", before the rebuild (revision 351) )
So this isn't fixed yet...

I actually didn't not really find what was the root cause, I just noticed it disappeared on my own calculator after reorganizing the program loader's code. But during my tests on the random crash, it sometimes reappeared... I'll have to consider it still unfixed.

But with the interrupts masked, what could interfer?
Most probable cause is caches. Read this (http://blogs.arm.com/software-enablement/141-caches-and-self-modifying-code/) - does it look like what you are seeing?
Ah yes, caches could be a big issue. In the Ndless program loader, after loading a program try running this: (info taken from the arm926ej-s manual)

Thanks calcforth and calc84maniac, this is a good lead, I'll try.

I am confused, does the strikethrough means you had it fixed, but then you discovered it was not and you added the [ s ] tag to your text so people disregard the post? ???

Sorry if this was not clear, I just meant the bug was fixed. Well, it isn't after all.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 30, 2010, 12:04:57 pm
Ah ok, well good luck with it, then. X.x
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: NeoCrisis on December 30, 2010, 12:15:03 pm
i've got silver shadow's files, and it's working quite well, though I only ran Pokémon Rouge XD
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 30, 2010, 12:16:44 pm
Cool to hear you got it to work. Hopefully you don't have too much troubles with other games and files.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: NeoCrisis on December 30, 2010, 12:17:24 pm
well, I'm gonna try Block Dude and the overclocking things, so I'll tell you ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 30, 2010, 06:23:26 pm
So all the current apps must be rebuilt in order to work with the new key configurations?  Are there any updates on this yet?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 30, 2010, 06:25:15 pm
I posted an updated version of Block Dude in the Block Dude thread here (in the "Trapped for TI-Nspire and 89 subforum).  I will try to get around to posting updated versions of the Trapped and Chip's Challenge betas.

I don't think any other programs (gbc4nspire, NESpire) have been updated yet. :(
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 30, 2010, 06:28:30 pm
Awesome, thanks! Now I have one game working on my calc before New Year's!


EDIT: apcalc - it works!  :evillaugh: But one thing, the password for Level 2 contains theta, which Nspire CAS does not have (or does it? using the ti.bank keymap?)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on December 30, 2010, 06:38:49 pm
I am working on fixing the password issues.  Right now, I am kinda busy with stupid Christmas assignments from school.  As soon as I get a minute or two, I will change all of the passwords to be touchpad compatible (I will leave the old ones there too, so people with the old codes will still be able to get to their level).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 30, 2010, 06:40:45 pm
Great! Take your time... I myself am burdened with assignments. :( No hw for AP Calc though! :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on December 30, 2010, 10:23:25 pm
BTW: In the meantime, can I suggest to map the down arrow to 5 (instead of to 2), and the Click to something else?  It's just that for the current apps like Block Dude/GBC/NES, you need to use the "arrow" keys to walk, and the click in the middle makes it hard to control the joystick with just one hand.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on December 31, 2010, 04:45:02 pm
I hate Christmas assignments. When I went to college we practically had no Christmas break. X.x

Nice work Apcalc by the way. :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 01, 2011, 09:27:00 am
I took some advance for OS 2.1 support

                   bootStrapper.S          install.c        stage2.c        utils.c
NONCAS   2.0.1   101EB1D8 101EB2DC   10008BCC 10013F6C   101EAC68       10266030 1088F164
NONCAS   2.1     101FEF18 101FF01C   10008D94 100145A0   101FE9CC /!\   10279D70 109A2B74
CAS      2.1     101FF7E0 101FF8E4   10008D64 100144E4   101FF294 /!\   1027A640 10966B74


The /!\ addresses have been modified under OS 2.1, I found an equivalent, please take some time to verify them.

EDIT : added syscalls_light

syscalls-light_ncas-2.1.c
Code: [Select]
/* Each entry matches a symbol in syscalls.h. This file is generated by mksyscalls.sh. */
unsigned syscalls_light_ncas_2_1[] = {
  0X102F75C0
, 0X102F77B4
, 0X102F78F0
, 0X102F6EAC
, 0X102F508C
, 0X102FDAE0
, 0X102F7DC8
, 0X102F37D0
};


syscalls-light_cas-2.1.c
Code: [Select]
/* Each entry matches a symbol in syscalls.h. This file is generated by mksyscalls.sh. */
unsigned syscalls_light_cas_2_1[] = {
  0X102F7E90
, 0X102F8084
, 0X102F81C0
, 0X102F777C
, 0X102F595C
, 0X102FE3B0
, 0X102F8698
, 0X102F40A0
};

EDIT : When I modify Ndless sources to support OS 2.1, it fails, one or more adresses should be wrong.
The fail is : nspire-emu enter in debugger-mode with backtrace, the clock made 1/2 turn, no pixels on the top of the screen, where is the mistake ?
Are the syscalls_[ncas/cas]-2.1.c files important for a simple ndless install ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 01, 2011, 06:47:54 pm
Here are the syscalls_[ncas/cas]-2.1.c

The bug is still there ...
I have double check hard coded and syscalls-lights adresses.

The only supposed issues are :
 - the changed subroutine make Ndless bug
 - one error in syscalls_[ncas/cas]-2.1.c

For those how know better the Nspire than me, here is the backtrace from the nspire-emu when I want to install Ndless 2.1 on an emulated 2.1 CAS :

Code: [Select]
Error at PC=0000032C: Cannot shift memory offset by register
        Backtrace:
Frame     PrvFrame Self     Return   Start
1800E06C: 1800E0DC 1800E070 102086F0 1020BC24
1800E0DC: 1800E14C 1800E0E0 101FF880 102071C4
1800E14C: 1800E194 1800E150 101FF294 101FF7E0
1800E194: 1800E8B4 1800E198 10041A1C 101FF1F4
1800E8B4: 1800E93C 1800E8B8 1002B32C 100419C8
1800E93C: 1800EA6C 1800E940 1000A684 1002B2E8
1800EA6C: 1800ECB4 1800EA70 101D5684 1000A620
1800ECB4: 1800ECF4 1800ECB8 101D3F00 101D51C0
1800ECF4: 1800FA54 1800ECF8 1000E1F0 101D3D48
1800FA54: 1800FAA4 1800FA58 1000EAA8 1000E180
1800FAA4: 1800FABC 1800FAA8 1025B22C 1000E8F0
1800FABC: 1800FB0C 1800FAC0 101C701C 1025B164
1800FB0C: 1800FCB4 1800FB10 101C7364 101C6EEC
1800FCB4: 1800FCD4 1800FCB8 101C73EC 101C723C
1800FCD4: 1800FD34 1800FCD8 1000F16C 101C73BC
1800FD34: 1800FD9C 1800FD38 100012A4 1000EF5C
1800FD9C: 1800FDD4 1800FDA0 102F2640 10000FE8
1800FDD4: 1800FDF4 1800FDD8 10279F40 102F25F4
1800FDF4: 1800FDF8 1800FDF8 00000000 10279F28
debug>

EDIT :
I noticed, that randomly, i had some pixels on the top of the screen :
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 02, 2011, 07:26:11 am
Levak: I'll have a look, but I would prefer to fix the other issues before the port to OS 2.1.

calcforth, calc84maniac: thank you so much, cleaning the cache is the solution!
I would like to clean the cache everywhere code is loaded dynamically, including in bootstrapper.S. But GNU AS keeps failing with the following error:

bootstrapper.S:89: Error: selected processor does not support `mrc p15,0,r15,c7,c10,3
bootstrapper.S:89: Error: selected processor does not support `mcr p15,0,r0,c7,c7,0


I have tried different -mcpu and -march options for GCC without success...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 02, 2011, 07:38:28 am
My mistake, these instructions cannot be used in Thumb state.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 02, 2011, 10:52:26 am
The following issues are now fixed, they were caused by conflicts with the CPU cache. Thanks again, I wouldn't have figured this out alone.
Anyone who still finds one of those with his own calculator can please post a bug report.

Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 02, 2011, 11:47:30 am
Yet another bug fix:


For the shifted screen, my tests tell me that:
- It is only caused by read then write from and to the screen buffer (for example the fading loop at the beginning of the particles demo)
- Once shifted, it remains as it is in the program and the OS
- The problem will only appear at certain read/write frequencies (shortening the delay it the fading loop of the demo solves the problem)

I don't really understand how it disturbs the LCD controller, but I recommend not to use byte-size read+write operations on the screen buffer - use instead a copy of the whole screen to read from.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on January 02, 2011, 03:37:02 pm
Ah yes, caches could be a big issue. In the Ndless program loader, after loading a program try running this: (info taken from the arm926ej-s manual)
Code: [Select]
tc_loop: MRC p15, 0, r15, c7, c10, 3 @test and clean DCache
BNE tc_loop
mov r0,#0
MCR p15, 0, r0, c7, c7, 0 @invalidate ICache and DCache

I tried adding this, the frequent random crashes I was getting when starting a program are gone :D Definitely the right idea, but I have a couple of quibbles:

Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 02, 2011, 04:24:41 pm
Levak: the skip offset in s2_tizip_hook has changed, maybe this is why it crashes on your side.
I have commited a version that installs on OS 2.1.0 but crashes in ndless_tests, there's probably a wrong address for one of the syscalls.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 02, 2011, 05:07:33 pm
I have commited a version that installs on OS 2.1.0 but crashes in ndless_tests, there's probably a wrong address for one of the syscalls.
After ten reboots I downgraded back to 2.0 (with the emu I get three bars then reboot; on hw it's to fast to see the bars)

But it's nice to see ndless making progress direction 2.1 :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 02, 2011, 07:22:07 pm
All the tests now pass on OS 2.1.0 CAS and non-CAS.
The particles demo works on my own Clickpad.
Thanks to Levak for providing some of the addresses.

show_dialog_box2() requires on OS 2.1.0 the interrupts to be enabled else the keyboard won't work. I will provide a wrapper function to make this transparent. Until then some programs such as Block Dude will hang when showing popups.

shrear, that's strange. Could you please try this update which brings full support, at least on nspire_emu?

Goplat: I think I will change clear_cache() with your suggestions that make sense, if it is still stable on real hardware.

Now I feel there are still two main features to be added before moving to the beta-testing phase:

Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 02, 2011, 07:35:43 pm
I have also fixed the addresses of realloc() for OS 2.0.1 which were wrong.
This should hopefully fix the crash in the cleanup code of nDOOM (http://ourl.ca/8582/160050;topicseen#new).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on January 02, 2011, 07:48:22 pm
  • 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 say that the OS functions should not be used, as they certainly do not exist for OS versions less than 2.0. libndls functions to interface with the touchpad might be a good idea. Also, that console idea sounds terrific.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: bsl 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear 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)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak 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$


Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD 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 (http://www.unsads.com/projects/nsptools/ticket/55)).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD 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?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on January 03, 2011, 04:27:21 pm
^^ Don't bother. PTT is there for a reason. You're testing, not playing GBC.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc 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). ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor 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.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious 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?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc 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! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 03, 2011, 09:15:56 pm
Thanks :D

edit: I believe I remember someone saying that arrows have been mapped to 1-9? Does this work in gbc4nspire or not?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 03, 2011, 09:21:14 pm
Thanks :D

edit: I believe I remember someone saying that arrows have been mapped to 1-9? Does this work in gbc4nspire or not?

I don't think so, but I can't say I have tried it myself.  I am almost sure everything has to be rebuilt to support the new arrows, though.

EDIT: 700 Posts! :D.  I am now officially a calculator "Addict"! :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on January 03, 2011, 09:21:50 pm
Thanks :D

edit: I believe I remember someone saying that arrows have been mapped to 1-9? Does this work in gbc4nspire or not?
gbc4nspire came out before the touchpad was even announced. It'll probably need another hex editing session to make a touchpad version (perhaps even with support for reading the actual arrow keys if that could be pulled off -- I've been checking out how to interface with it)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 03, 2011, 09:24:48 pm
Okay. Just wondering because I'm new to the Nspire, due to me losing my faithful TI-84 Plus Silver... With a few Axe source codes I never finished lol.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 03, 2011, 09:26:41 pm
Okay. Just wondering because I'm new to the Nspire, due to me losing my faithful TI-84 Plus Silver... With a few Axe source codes I never finished lol.

Sad to hear you lost your Axe projects. :(

But there are upsides:  now you can play Game Boy games, NES games, and Doom (well, this is only at alpha stage) on your Nspire!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 03, 2011, 09:28:22 pm
Not really lol, no arrow keys as of now. Or so I am experiencing.  And I tried to build the nDoom source for the 360 revision and got errors.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 03, 2011, 09:35:55 pm
Pre-built binaries of nDoom were posted, I believe! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 03, 2011, 09:40:11 pm
I saw that, didn't know if they were for r360, downloading now, putting in Dropbox, then onto my Windows XP Desktop (which seems to have problems with downloading...)

edit: Really really light... Killed my eyes lol. And it crashed my calc after i died.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on January 03, 2011, 10:15:56 pm
For now, the arrow keys on the number pad is actually fine as it's easy for the hand to grip. Just map down to 5 instead of to 2 so it's easier to control with one finger.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 04, 2011, 09:14:02 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 (http://www.unsads.com/projects/nsptools/ticket/55)).
µAnswer to your question.
http://www.unsads.com/projects/nsptools/ticket/55#comment:2
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 04, 2011, 02:36:20 pm
If you are updating an existing working directory, could you please try to rebuild Ndless preceded by a "make clean"?
Could you please try to run a program even when you get a "not supported" message? (although this should have been fixed since revision 354)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 04, 2011, 03:38:32 pm
According to IRC logs today, there are rumors that Ndless 2.0 now works on OS 2.1! O.O
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 04, 2011, 03:42:12 pm
According to IRC logs today, there are rumors that Ndless 2.0 now works on OS 2.1! O.O
rumors? It's a fact. :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 04, 2011, 03:44:28 pm
Meh? I was sucessful in running stuffs after the "Not Supported" Message.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 04, 2011, 03:44:53 pm
Really? But I haven,t even seen any post announcing OS 2.1 support anywhere ???

But again I haven't checked forums as much lately so I might have missed it. I just did CTRL+F on the last few pages and searched for "2.1" without the quotes. No results were found...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 04, 2011, 03:46:46 pm
All the tests now pass on OS 2.1.0 CAS and non-CAS.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 04, 2011, 03:48:14 pm
Ah ok, thanks. I am amazed, now, since a lot of teachers appear to force students to upgrade, nowadays, meaning now they can still use Ndless no matter what. It's also great to hear OS 2.1 is jailbreakable too.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 04, 2011, 04:12:41 pm
Meh? I was sucessful in running stuffs after the "Not Supported" Message.

So this bug comes back :(
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 04, 2011, 04:39:01 pm
Yeah it did.

And what? Teachers make people upgrade the OS? What country lol? Here in New York State, they can't tell us to anything with our calculators. They give us a choice to use our calc and clear it, or use one of theirs.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 04, 2011, 04:42:32 pm
Jkag in USA. Not all teachers there does, but at many places they do. Some just clear your memory on tests, though.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 04, 2011, 05:04:03 pm
Hum... Interesting... My district, they can't really even touch them w/o our permission.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 04, 2011, 05:08:11 pm
Ah that's good to hear. I guess some schools are sold out to TI. I wouldn't be surprised if TI paid schools and retail stores to not support the Casio Prizm series, but again that would probably be illegal to do the latter.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 04, 2011, 07:03:47 pm
According to IRC logs today, there are rumors that Ndless 2.0 now works on OS 2.1! O.O
Just a few pages before :
http://ourl.ca/8160/159591
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 05, 2011, 01:35:28 am
Right. I missed the 2nd part of that page in updates. Thanks.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 05, 2011, 09:48:37 am
bios compatibility ? . . .
what are you talking about?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 05, 2011, 10:12:53 am
Which are?...
I don't know of any disturbance which has not allready been reported here.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 05, 2011, 10:23:04 am
Thank you for completing your post.

Crashes and the unrelated loading loop of elder OSes and Ndless packages seem to be loaded with them, and keymapping may be the least of our worries.

Crashes have allready been reported. I've reported severall of them, with various programs, especially on the TI-Nspire CAS. ExtendeD is working on them.
It's true that crashes are much more frequent with the Ndless 2 build I'm using, than with Ndless 1.7


The elder OSes  reboot loop has nothing to do with Ndless. The elser OSes simply don't support correctly the new Touchpad hardware and the new TouchPad keypads.
As the problem does happen at boot time, we can't interfere with that in any way.
You should ask TI to fix that, but I doubt they will ever...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SatanicToothpaste on January 05, 2011, 10:49:58 am
Just being cautious I'd presume, you're probably totally correct, Critor (though I'd wait a few months for the beta myself). Although there is no hard evidence of total OS annihilation, I wouldn't want to rely on scouring the forums for fixes if there are. A most users imply "crashes" without supplying a cause, the malware-filled (not to mention illegal) OS dumps from rapidshare may be my only backup if something unthinkable happens.
Thanks for the help

PS: Is downgrading to 1.7 is the only way to run the ndless currently. If so, there is absolutely no way my Nspire (being both touchpad hardware and CAS software) will be able to. I know about the loop myself (caused by the absence of appropriate input and the ramifications surrounding this) and I've advised my peers to stay with the oldschool models.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 05, 2011, 10:52:35 am
ndless versions for OS 2.0 and 2.1 exist, but an "official release" exists only for 1.7 and lower so far
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SatanicToothpaste on January 05, 2011, 11:06:15 am
 :thumbsup:
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 05, 2011, 12:12:08 pm
I know about the loop myself (caused by the absence of appropriate input?) and I've advised my peers to stay with the oldschool models.

You can use Ndless.

If you have a black basic TI-Nspire, you have to replace the TouchPad keypad by a ClickPad keypad and install OS 1.7 + Ndless 1.7.

If you have a black CAS TI-Nspire, you have to install OS 1.4 + Ndless 1.4.


Ndless 1.4 supports programs built for Ndless 1.7. Ndless 1.4 is simply a port of Ndless 1.7 on OS 1.4.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 05, 2011, 12:53:19 pm
Just being cautious I'd presume, you're probably totally correct, Critor (though I'd wait a few months years for the beta myself). Although there is no hard evidence of total OS annihilation, I wouldn't want to rely on scouring the forums for fixes if there are. A most users imply "crashes" without supplying a cause, the malware-filled (not to mention illegal) OS dumps from rapidshare may be my only backup if something unthinkable happens.
Thanks for the help

PS: Is downgrading to 1.7 is the only way to run the ndless currently. If so, there is absolutely no way my Nspire (being both touchpad hardware and CAS software) will be able to. I know about the loop myself (caused by the absence of appropriate input?) and I've advised my peers to stay with the oldschool models.
The OSes are still available on TI website, if something wrong happens. http://ourl.ca/7373
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on January 05, 2011, 04:50:36 pm
Ndless does not modify any part of the OS filesystem, only the data loaded to RAM (which is wiped upon reset). Ndless cannot permanently do anything to the Nspire OS. Ndless programs, on the other hand, can do anything they want. But I seriously doubt any developers would want to sneak any malware into their programs, though.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 05, 2011, 05:17:50 pm
Sorry asking but I can't find the ndless_installer in https://www.unsads.com/scm/svn/nsptools/Ndless/trunk/tools/  O.O
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 05, 2011, 05:22:35 pm
I did not check, but I don't think there is one. You need to compile the source code yourself.

Welcome on the forums by the way.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 05, 2011, 05:42:08 pm
Thank you

And how do I compile it, I don't know how to download the files that I need
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 05, 2011, 05:50:16 pm
Follow the directions in doc/Ndless-Development.txt.  Hackspire also might have some information relevant to this.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 05, 2011, 06:19:45 pm
It took me a while to figure out how to get the development set up. In the end lol I had moved the Ndless folder to a diffrent location ol and didnt update the path.
My point here is... Make sure you did everything correctly.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 06, 2011, 06:32:45 am
When I use the make command I get this error:

Quote
make all in libndls...
make[1]: Entering directory '/c/ndless/libndls'
nspire-gcc -os -nostdlib -c any_key_pressed.c
./nspire-gcc: line 27: arm-none-eabi-gcc: command not found
make[1]: *** [any_key_pressed.o] Error 127
make[1]: Leaving directory '/c/ndless/libndls'
make: *** [subdirs] Error 1
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 06, 2011, 06:37:38 am
do you have Yagarto installed? (and it's bin folder in your Path variable)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 06, 2011, 07:02:11 am
No. I installed the MinGW

EDIT: I installed YAGARTO and now i'm getting this error:

Quote
any_key_pressed.c:22:16: fatal error: os.h: No such file or directory
compilation terminated
make[1]: ***[any_key_pressed.o] Error 1
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 06, 2011, 11:56:13 am
how did you get the source, because it's strange that os.h is missing.
it should be under /include
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Lionel Debroux on January 06, 2011, 01:26:23 pm
Quote from: SatanicToothpaste
the malware-filled (not to mention illegal) OS dumps from rapidshare
Well, since the Nspire OS images are signed with 1024-bit RSA keys, third-party-modified versions cannot be transferred to a calculator without it rejecting them :)

That is, unless someone knows TI's private key, which makes them able to re-sign those images... However, the normal way of getting a private RSA key is factoring the public key - with the minor issue that factoring 1024-bit RSA keys is years ahead the state of the art in factoring algorithm implementations. The state of the art is the factorization of a 768-bit RSA key ( http://www.mersenneforum.org/showthread.php?t=12958 ), and factorization of a 1024-bit RSA key is "just" between 1e3 and 1e4 times harder, i.e. it should require at least ten thousand terabytes (!!) of storage space and end up with fiddling with a quasi-square matrix of several billion elements on each side :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on January 06, 2011, 01:40:59 pm
Or you could just try using random combinations of characters, and maybe with a (very very big) bit of luck, you'll find it.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on January 06, 2011, 01:57:29 pm
You're more likely to win the lottery 18 times in a row (probability is approximately 2-493) than you are to guess one of the 512-bit factors at random (probability 2-512).

Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 06, 2011, 02:25:38 pm
Now i'm getting:

Quote
7za: command not found
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 06, 2011, 03:26:04 pm
I think you have to add the /bin directory of 7zip to your path.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 06, 2011, 03:41:16 pm
only the 7zip directory, there is for some confusing reason no 7zip bin.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 06, 2011, 04:17:25 pm
I am not sure what to do with the following open issue:

Quote
(apcalc) Touchpad direction keys become sometimes unusable from the OS after running a program:
Only these keys are affected. Sometimes a reboot doesn't fix the issue, but reinstalling the OS does.

apcalc, did you see it again since the Touchpad support has been fixed?
Did anyone else see it on its own hardware?
Should I keep it open?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 06, 2011, 04:33:51 pm
I am not sure what to do with the following open issue:

Quote
(apcalc) Touchpad direction keys become sometimes unusable from the OS after running a program:
Only these keys are affected. Sometimes a reboot doesn't fix the issue, but reinstalling the OS does.

apcalc, did you see it again since the Touchpad support has been fixed?
Did anyone else see it on its own hardware?
Should I keep it open?

I never have experienced this issue again, and I have been using my touchpad keypad for the past week in school and at home, so I have given it heavy usage/testing.  I would say this issue could be considered closed! :)

only the 7zip directory, there is for some confusing reason no 7zip bin.

Sorry, my mistake.  Just add the 7zip root directory to your path.  There is no /bin directory. :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 06, 2011, 05:08:42 pm
It gives me this again:

Quote
make[2]: Entering directory '/c/ndless/arm/tests'
nspire-gcc -os -wall -w -c tests.c
tests.c:24:16: fatal error: os.h: No such file or directory
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 06, 2011, 05:16:38 pm
check if you have
/c/ndless/include/os.h

if not: double check what else is perhaps also missing, against the SVN repository in the first post of this topic
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 06, 2011, 05:29:33 pm
Yes, I have it. And my SVN repository is from yesterday.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 06, 2011, 05:37:04 pm
ok, then it's a more complicated problem.

msys either doesn't find the file or can't access it. The later may be because it is in C (Windows is sometimes very strange there)
so you could either try to move the files to D (if you have such a drive) or run msys as administrator.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 06, 2011, 06:02:04 pm
I copied the ndless directory to my pendrive and runned msys as admnistrator and it still gives me the error.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 06, 2011, 06:23:15 pm
to be honest. I'm out of ideas

if you copy paste os.h in the directory and it gives you exactly the same error, then there is something very wrong with your msys installation,
in this case a reinstall of msys may help...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 06, 2011, 06:51:36 pm
I reinstalled msys and it keeps giving me the error.

Can't you give me the executable already compilled?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on January 06, 2011, 07:01:11 pm
There are no binaries on purpose because then people who don't know what they're doing and don't understand the risks of using beta software could screw up their calc. No offense to you, though.

Did you remember to add the ndless directory to your PATH variable?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SatanicToothpaste on January 07, 2011, 04:08:12 am
Where exactly is the binary, code or file, and what do I do with it once it is acquired ???. With the lack of knowledge of nspireOS coding, I don't even know what language it IS in. Do I require any applications on my PC (such as activeperl) to compile it? I have, without intelligent wording, no idea how to program directly into NspireOS at all, not really knowing what Ndless "is" (a Ti-BASIC application?) at all in the first place :mad:. Is it already "halfway" compiled, compared to something such as S60 (being the most numerous and nonrestrictive mobile OS) and its .sis signing. Is there even an installer for ANY ndless distribution at all? In conclusion, what do you do once downloading "it."
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 07, 2011, 04:34:22 am
@SatanicToothpaste
you can find most of the answers here (https://www.unsads.com/scm/svn/nsptools/Ndless/trunk/doc/ReadMe.txt); login and password are "guest".
the "binary" files as such for os 2.0 and greater aren't distributed yet, only the source files which you have to compile yourself.

and please, posting the same thing on different topics won't give you a quicker answer it may just upset people...


@robinsousa
due to the place where it gives you the error, the ndless binary as such may be compiled and can be probably (at your own risk) used
you just can as long you get this error not compile any "applications" yourself.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 07, 2011, 04:53:41 am
There are no binaries on purpose because then people who don't know what they're doing and don't understand the risks of using beta software could screw up their calc. No offense to you, though.

Did you remember to add the ndless directory to your PATH variable?

Yes.

What should I do?

EDIT: Ok, I will see it Shrear

EDIT 2: Can you tell me what is the size of the ndless_installer and ndless_resources, so I see if it's totally compiled?
My ndless_installer is 113KB and ndless_resources 7KB.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 07, 2011, 05:35:30 am
my binarys have also that size
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 07, 2011, 05:42:59 am
And how do I send them?

When I use the TI-Nspire Student Software it says that the format of the document isn't supported.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Lionel Debroux on January 07, 2011, 05:49:50 am
Use TI-Nspire Computer Link Software (TINCLS).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 07, 2011, 03:12:05 pm
I deleted the folder, made a new one, downloaded the files and compiled ndless without errors this time  :w00t:

I tried particles and it worked, but blockdude for os 1.7 not. Is there a new version for ndless 2.0?

Note: My OS is 2.1
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 07, 2011, 03:17:54 pm
but blockdude for os 1.7 not. Is there a new version for ndless 2.0?
Note: My OS is 2.1

An error in syscalls ?
Or hard coded adresses in the prog :D ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 07, 2011, 03:22:32 pm
I tested it again it frozens when I use the arrow keys in the message "If you have a level keycode...". When I use the pointer it doesn't (I have the touchpad).

EDIT: What are the keys used in the blockdude on the touchpad
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 07, 2011, 03:59:34 pm
Block Dude would need to be updated by apcalc for compatibility with OS 2.1:

show_dialog_box2() requires on OS 2.1.0 the interrupts to be enabled else the keyboard won't work. I will provide a wrapper function to make this transparent. Until then some programs such as Block Dude will hang when showing popups.

But it's interesting that the pointer still work without the interrupts.

EDIT: What are the keys used in the blockdude on the touchpad

Use the numeric keys. Make sure to use the latest version (http://ourl.ca/6411/158363) of Block Dude.

SatanicToothpaste: what do you want exactly from us to help you?
I am sorry to find most of your posts related to Ndless quite offensive.
To sum up: you are annoyed (http://ourl.ca/8160/152427) not to see any release of a program you are not sure what it is exactly (http://ourl.ca/7717/161485), and at the same time complaining about the poor choices (http://ourl.ca/8160/160837) being made on priorities, and the low quality (http://ourl.ca/8160/160848) of an alpha version. Am I wrong?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Yeong on January 07, 2011, 04:21:03 pm
Erm How do I compile it?(Sorry for being such a noob)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 07, 2011, 04:35:32 pm
I have updated the first post (http://ourl.ca/8160/148895) to make the procedure even clearer. Where are you having problems?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Yeong on January 07, 2011, 04:37:19 pm
Oh. Excuse me for my lack of info-finding s kill.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 07, 2011, 04:49:40 pm
Block Dude would need to be updated by apcalc for compatibility with OS 2.1:

show_dialog_box2() requires on OS 2.1.0 the interrupts to be enabled else the keyboard won't work. I will provide a wrapper function to make this transparent. Until then some programs such as Block Dude will hang when showing popups.

But it's interesting that the pointer still work without the interrupts.


In order to fix this, would I need to add the lines:

Code: [Select]
unsigned intmask = TCT_Local_Control_Interrupts(0);

... Code for Block Dude ...

TCT_Local_Control_Interrupts(intmask);


to the program?  If not, which changes must be made to update this! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 07, 2011, 04:53:08 pm
Yes, that would fix it :)

But I will add very soon (hopefully this weekend) a wrapper function which also converts the strings to UTF-16, maybe you prefer to way for it and use it.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 07, 2011, 04:56:13 pm
Yes, that would fix it :)

But I will add very soon (hopefully this weekend) a wrapper function which also converts the strings to UTF-16, maybe you prefer to way for it and use it.

Ok, thanks! :)

I guess I'll wait for that version, then I'll upload the new version to ticalc.org! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 07, 2011, 05:50:14 pm
In gbc4nspire I can't use the arrows too. Will this problems be solved if I downgrade to 2.0?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 07, 2011, 05:57:22 pm
In gbc4nspire I can't use the arrows too. Will this problems be solved if I downgrade to 2.0?

Do you have a touchpad?  gbc4nspire is not compatible with the touchpad. :(
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 07, 2011, 06:19:15 pm
Oh I thought it was. So what games and programs are compatible up to now
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 07, 2011, 06:20:16 pm
At this point, I think Block Dude and the Ndless Demo may be the only touchpad compatible programs.  Everything else has to be rebuilt with the latest version of Ndless.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: robinsousa on January 07, 2011, 06:43:39 pm
I can play Monopoly for gbc using only the esc and tab buttons :) because it doesn't need the arrow keys (not completely true but, if I accept all the options with the esc key I don't need them) and I don't need to select it in gbc4nspire menu because it is the first of the list.

So, some games of gbc4nspire are compatible with the touchpad  ;D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 08, 2011, 08:57:50 pm
SatanicToothpaste: what do you want exactly from us to help you?
I am sorry to find most of your posts related to Ndless quite offensive.
To sum up: you are annoyed (http://ourl.ca/8160/152427) not to see any release of a program you are not sure what it is exactly (http://ourl.ca/7717/161485), and at the same time complaining about the poor choices (http://ourl.ca/8160/160837) being made on priorities, and the low quality (http://ourl.ca/8160/160848) of an alpha version. Am I wrong?
User was sent a warning because it is definitively clear he doesn't have any respect for the work from people who spend time debugging/working on/testing Ndless. People should be glad that people actually made Ndless.

@SatanicToothPaste, if you feel that Ndless development speed/chronology doesn't satisfy your personal needs, wouldn't you mind contributing yourself as well to improve that?

Anyway to everyone else, keep up the good work on Ndless 2.0!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 09, 2011, 07:15:06 am
apcalc: I have added show_msgbox() (http://hackspire.unsads.com/wiki/index.php/Libndls#UI) as a replacement for show_dialog_box2, compatible with OS 2.1 and which doesn't need calls to ascii2utf16().
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on January 09, 2011, 07:22:25 am
I tried compiling the 362 version, but I get an error:
Code: [Select]
nspire-gcc -Os -nostdlib -std=c99 -c clear_cache.c
clear_cache.c: In function 'clear_cache':
clear_cache.c:27:2: error: 'asm' undeclared (first use in this function)
clear_cache.c:27:2: note: each undeclared identifier is reported only once for each function it appears in
clear_cache.c:27:6: error: expected ';' before 'volatile'
make[1]: *** [clear_cache.o] Error 1
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 09, 2011, 07:47:59 am
Sorry, I should have used "make clean all" to make sure nothing broke. It's fixed.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on January 09, 2011, 08:21:14 am
Now everything works fine. :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 09, 2011, 10:10:46 am
Meh? I was sucessful in running stuffs after the "Not Supported" Message.

So this bug comes back :(

I can't reproduce this problem with my Clickpad, either with OS 2.0.1 and OS 2.1.
jkag, are you using a Touchpad?
Does anyone also have a ""Not Supported" popup instead of the Ndless message at installation time, with revision >= 354?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: compu on January 09, 2011, 03:47:43 pm
Code: [Select]
Juckel@JULIAN /ndless
$ make dist
rm -rf dist
Clearing in tools...
make[1]: Entering directory `/ndless/tools'
Clearing in build...
make[2]: Entering directory `/ndless/tools/build'
cd ../../bin && rm -f nspire-gcc nspire-ld  nspire-as || :
make[2]: Leaving directory `/ndless/tools/build'
Clearing in MakeLoader...
make[2]: Entering directory `/ndless/tools/MakeLoader'
rm -f ../../bin/MakeLoader.exe
make[2]: Leaving directory `/ndless/tools/MakeLoader'
make[1]: Leaving directory `/ndless/tools'
Clearing in libndls...
make[1]: Entering directory `/ndless/libndls'
rm -rf *.o *.elf *.a
rm -f ../lib/libndls.a
make[1]: Leaving directory `/ndless/libndls'
Clearing in arm...
make[1]: Entering directory `/ndless/arm'
rm -rf *.o *.bin *.elf *.xml *.zip
rm -rf ../calcbin/ndless_installer*.tns ../calcbin/ndless_resources.tns
make all in tests...
make[2]: Entering directory `/ndless/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]: Leaving directory `/ndless/arm/tests'
make[1]: Leaving directory `/ndless/arm'
Clearing in samples...
make[1]: Entering directory `/ndless/samples'
Clearing in hella...
make[2]: Entering directory `/ndless/samples/hella'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hella.tns
make[2]: Leaving directory `/ndless/samples/hella'
Clearing in hello...
make[2]: Entering directory `/ndless/samples/hello'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hello.tns
make[2]: Leaving directory `/ndless/samples/hello'
Clearing in particles...
make[2]: Entering directory `/ndless/samples/particles'
rm -f *.o *.elf
rm -f ../../calcbin/samples/particles.tns
make[2]: Leaving directory `/ndless/samples/particles'
rm -f ../calcbin/samples/ReadMe.txt
make[1]: Leaving directory `/ndless/samples'
rm -rf calcbin
rm -rf bin lib
mkdir -p dist/src
cp -r `ls | grep -v dist` dist/src
find dist -name Makefile.config | xargs rm -rf
make all in tools...
make[1]: Entering directory `/ndless/tools'
make all in build...
make[2]: Entering directory `/ndless/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Leaving directory `/ndless/tools/build'
make all in MakeLoader...
make[2]: Entering directory `/ndless/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader.exe
make[2]: Leaving directory `/ndless/tools/MakeLoader'
make[1]: Leaving directory `/ndless/tools'
make all in libndls...
make[1]: Entering directory `/ndless/libndls'
nspire-gcc -Os -nostdlib -c any_key_pressed.c
nspire-gcc -Os -nostdlib -marm -c clear_cache.c
nspire-gcc -Os -nostdlib -c clrscr.c
nspire-gcc -Os -nostdlib -c feof.c
nspire-gcc -Os -nostdlib -c fgets.c
nspire-gcc -Os -nostdlib -c fputs.c
nspire-gcc -Os -nostdlib -marm -c idle.c
nspire-gcc -Os -nostdlib -c isalnum.c
nspire-gcc -Os -nostdlib -c iscntrl.c
nspire-gcc -Os -nostdlib -c rewind.c
nspire-gcc -Os -nostdlib -c show_msgbox.c
nspire-gcc -Os -nostdlib -c sleep.c
nspire-gcc -Os -nostdlib -c strcspn.c
nspire-gcc -Os -nostdlib -c strspn.c
nspire-gcc -Os -nostdlib -c wait_key_pressed.c
nspire-gcc -Os -nostdlib -c wait_no_key_pressed.c
"/c/Programme/yagarto/bin/arm-none-eabi-ar.exe" rcs ../lib/libndls.a any_key_pressed.o clear_cache.o clrscr.o feof.o fgets.o fputs.o idle.o isalnum.o iscntrl.o rewind.o show_msgbox.o sleep.o strcspn.o strspn.o wait_key_pressed.o wait_no_key_pressed.o
make[1]: Leaving directory `/ndless/libndls'
make all in arm...
make[1]: Entering directory `/ndless/arm'
nspire-as -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c bootstrapper.S
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c stage1.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c ints.c -o ints_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls.c -o syscalls_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c utils.c -o utils_light_thumb_os-1.7.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-light_ncas-1.7.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-light_cas-1.7.c
nspire-ld --no-startup -nostdlib bootstrapper.o stage1.o ints_light_thumb.o syscalls_light_thumb.o utils_light_thumb_os-1.7.o syscalls-light_ncas-1.7.o syscalls-light_cas-1.7.o -o ndless_installer_os-1.7.elf
c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: ndless_installer_os-1.7.elf: Unknown mandatory EABI object attribute 44
c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file bootstrapper.o
collect2: ld returned 1 exit status
make[1]: *** [ndless_installer_os-1.7.elf] Error 1
make[1]: Leaving directory `/ndless/arm'
make: *** [subdirs] Error 1


What am i doing wrong?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 09, 2011, 04:04:13 pm
try to checkout the svn and "make clean all"
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 09, 2011, 04:38:27 pm
compu: what does <pre>nspire-ld -v</pre> return, typed in an MSYS console?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Goplat on January 10, 2011, 02:08:08 am
Just found a little bug: I notice that when Ndless tries to restore the FIQ vector (in arm/bootstrapper.S main_copy), it overwrites the Undefined Instruction jump instead:

A4000000  18 F0 9F E5 E4 66 26 10-18 F0 9F E5 18 F0 9F E5
A4000010  18 F0 9F E5 18 F0 9F E5-18 F0 9F E5 18 F0 9F E5
A4000020  30 60 26 10 28 48 04 11-4C 47 04 11 20 48 04 11
A4000030  18 48 04 11 00 00 00 00-C0 66 26 10 40 00 00 00
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: compu on January 10, 2011, 01:38:45 pm
nspire-ld -v returns:

Code: [Select]
Using built-in specs.
COLLECT_GCC=c:\Programme\yagarto\bin\arm-none-eabi-gcc.exe
COLLECT_LTO_WRAPPER=c:/programme/yagarto/bin/../libexec/gcc/arm-none-eabi/4.5.1/lto-wrapper.exe
Target: arm-none-eabi
Configured with: ../gcc-4.5.1/configure --target=arm-none-eabi --prefix=/home/yagarto/install --disable-nls --disable-shared --disable-threads --with-gcc --with-gnu-ld --with-gnu-as --with-dwarf2 --enable-languages=c,c++ --enable-interwork --enable-multilib --with-newlib --with-headers=../newlib-1.18.0/newlib/libc/include --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp -v
Thread model: single
gcc version 4.5.1 (GCC)
COMPILER_PATH=c:/programme/yagarto/bin/../libexec/gcc/arm-none-eabi/4.5.1/;c:/programme/yagarto/bin/../libexec/gcc/;c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/
LIBRARY_PATH=c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/;c:/programme/yagarto/bin/../lib/gcc/;c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-nostartfiles' '-T' 'C:/msys/1.0/ndless/bin/../system/ldscript' '-e' '_nspire_start' '-L' 'C:/msys/1.0/ndless/bin/../lib' '-static' '-v'
 c:/programme/yagarto/bin/../libexec/gcc/arm-none-eabi/4.5.1/collect2.exe -Bstatic -X -e _nspire_start -L C:/msys/1.0/ndless/bin/../lib -Lc:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1 -Lc:/programme/yagarto/bin/../lib/gcc -Lc:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib C:/msys/1.0/ndless/bin/../system/crt0sym.o C:/msys/1.0/ndless/bin/../system/crt0.o C:/msys/1.0/ndless/bin/../system/osstub.o -lndls --start-group -lgcc -lc --end-group -T C:/msys/1.0/ndless/bin/../system/ldscript
c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lndls
collect2: ld returned 1 exit status
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on January 11, 2011, 08:40:53 am
I've noticed the latest version is now 366. May I know what has been changed?

PS: I'm EVIL...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on January 11, 2011, 08:52:31 am
should I downgrade my OS to 2.0 or will this also work for 2.1?
I have a touchpad and would like to test ndless
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on January 11, 2011, 08:58:03 am
there is always a specific version for 1.7, 2.0 and 2.1, they will all be in \calcbin after you compiled ndless
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 11, 2011, 02:26:09 pm
I've noticed the latest version is now 366. May I know what has been changed?

PS: I'm EVIL...

You can use the "log" function of your SVN client to get a detailed log of the latest changes (SVN Show log in the right-click menu of TortoiseSVN for instance).
For revision 366 you will find:
- fix some libndls functions that still fails to build if GCC has --with-mode=thumb.
- All programs are built with -marm, since the program loader/crt0 don't support Thumb mode entry points
These changes are related to issue #55 (http://www.unsads.com/projects/nsptools/ticket/55).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 11, 2011, 06:21:26 pm
Yeah. I am using a Touchpad, but my Clickpad should be coming within the week :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: willrandship on January 11, 2011, 06:22:32 pm
so the svn version already works with 2.1? good to hear.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: compu on January 12, 2011, 10:28:27 am
Removed: I'm just too stupid to read ReadMes :banghead:
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on January 12, 2011, 12:06:03 pm
I'd like to just say that I got ndless 2.0 up and running in NSpire Touchpad non-Cas.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on January 13, 2011, 05:32:15 pm
So how stable is 2.0 atm?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on January 14, 2011, 12:20:24 am
On my calc, very. ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 14, 2011, 04:03:32 pm
I would say it is very stable.  I have been using it for a few weeks not and I have not had any problems for a while! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 14, 2011, 04:07:51 pm
I would say it is very stable.  I have been using it for a few weeks not and I have not had any problems for a while! :)

+42, on CAS ClickPad
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: yifanlu on January 14, 2011, 05:38:30 pm
I'm trying to compile the latest SVN release on ubuntu. However, at "MakeLoader ndless_installer_os-1.7.bin Document.xml" I get "Error: The loader size must be less than 1024 bytes." So I checked the .bin file and it is indeed 1028 bytes. I didn't modify any source, so why is this?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 14, 2011, 05:47:59 pm
I'm trying to compile the latest SVN release on ubuntu. However, at "MakeLoader ndless_installer_os-1.7.bin Document.xml" I get "Error: The loader size must be less than 1024 bytes." So I checked the .bin file and it is indeed 1028 bytes. I didn't modify any source, so why is this?
Please read the known issues before posting :
http://www.unsads.com/projects/nsptools/ticket/55

To sum up : For the moment, nobody can build Ndless 2.0 on Ubuntu with gcc-4.5-10 (lastest version).
If you have the solution (changing the source code is excluded) please post it.

Thanks.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: XVicarious on January 14, 2011, 05:51:03 pm
Really? No building on Ubuntu with gcc-4.5-10? Darn because this computer turns on in seconds and my Windows computer takes forever to turn on lol.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on January 14, 2011, 05:52:34 pm
I would say it is very stable.  I have been using it for a few weeks not and I have not had any problems for a while! :)

+42, on CAS ClickPad
/me confused

@apcalc: Have you noticed your respect is 37?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: yifanlu on January 14, 2011, 06:01:58 pm
I'm trying to compile the latest SVN release on ubuntu. However, at "MakeLoader ndless_installer_os-1.7.bin Document.xml" I get "Error: The loader size must be less than 1024 bytes." So I checked the .bin file and it is indeed 1028 bytes. I didn't modify any source, so why is this?
Please read the known issues before posting :
http://www.unsads.com/projects/nsptools/ticket/55

To sum up : For the moment, nobody can build Ndless 2.0 on Ubuntu with gcc-4.5-10 (lastest version).
If you have the solution (changing the source code is excluded) please post it.

Thanks.

Sorry, but I did read the known issues, but I didn't think that was the same issue. It talks about compiling samples and the error message is different. I got it to compile with source changes, but I don't know if it works yet, installing at the moment.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 14, 2011, 06:07:13 pm
+42, on CAS ClickPad
/me confused

Would you like a significance of my "+42" ?

When I "+1" a message, I agree with it.
"+42" is an extension of "+1", but it is so true that I have upgraded the "+1" with the answer of the universe, of the live and of all the rest : 42
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 14, 2011, 11:05:39 pm
@apcalc: Have you noticed your respect is 37?

Yep!  Its been slowly crawling up for the past month or two! :)

 
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on January 14, 2011, 11:44:14 pm
+42, on CAS ClickPad
/me confused
Ah, I get it now.

@apcalc: lol it's 38 already.

Would you like a significance of my "+42" ?

When I "+1" a message, I agree with it.
"+42" is an extension of "+1", but it is so true that I have upgraded the "+1" with the answer of the universe, of the live and of all the rest : 42

Ah, I get it now
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on January 15, 2011, 01:32:05 am
Dude, stop putting your posts inside your quotes :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on January 15, 2011, 04:39:36 am
Dude, stop putting your posts inside your quotes :P

I'm sure he didn't mean it ;D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on January 15, 2011, 10:13:08 pm
How did that happen??? I typed stuff at the bottom, out of the quotes, but it got cut off somehow./me edits post
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SirCmpwn on January 15, 2011, 11:53:02 pm
Speaking of respect, I think it has gone down for everyone a little, is someone spamming down ratings?
Also, I'd be very happy if someone would post the compiled Ndless installer files for me so I can install it really quick.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on January 16, 2011, 06:55:37 am
I'll send it to you by email, since I'm not sure ExtendeD will want it being posted here.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 16, 2011, 02:19:16 pm
Code: [Select]
Juckel@JULIAN /ndless
$ make dist
rm -rf dist
Clearing in tools...
make[1]: Entering directory `/ndless/tools'
Clearing in build...
make[2]: Entering directory `/ndless/tools/build'
cd ../../bin && rm -f nspire-gcc nspire-ld  nspire-as || :
make[2]: Leaving directory `/ndless/tools/build'
Clearing in MakeLoader...
make[2]: Entering directory `/ndless/tools/MakeLoader'
rm -f ../../bin/MakeLoader.exe
make[2]: Leaving directory `/ndless/tools/MakeLoader'
make[1]: Leaving directory `/ndless/tools'
Clearing in libndls...
make[1]: Entering directory `/ndless/libndls'
rm -rf *.o *.elf *.a
rm -f ../lib/libndls.a
make[1]: Leaving directory `/ndless/libndls'
Clearing in arm...
make[1]: Entering directory `/ndless/arm'
rm -rf *.o *.bin *.elf *.xml *.zip
rm -rf ../calcbin/ndless_installer*.tns ../calcbin/ndless_resources.tns
make all in tests...
make[2]: Entering directory `/ndless/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]: Leaving directory `/ndless/arm/tests'
make[1]: Leaving directory `/ndless/arm'
Clearing in samples...
make[1]: Entering directory `/ndless/samples'
Clearing in hella...
make[2]: Entering directory `/ndless/samples/hella'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hella.tns
make[2]: Leaving directory `/ndless/samples/hella'
Clearing in hello...
make[2]: Entering directory `/ndless/samples/hello'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hello.tns
make[2]: Leaving directory `/ndless/samples/hello'
Clearing in particles...
make[2]: Entering directory `/ndless/samples/particles'
rm -f *.o *.elf
rm -f ../../calcbin/samples/particles.tns
make[2]: Leaving directory `/ndless/samples/particles'
rm -f ../calcbin/samples/ReadMe.txt
make[1]: Leaving directory `/ndless/samples'
rm -rf calcbin
rm -rf bin lib
mkdir -p dist/src
cp -r `ls | grep -v dist` dist/src
find dist -name Makefile.config | xargs rm -rf
make all in tools...
make[1]: Entering directory `/ndless/tools'
make all in build...
make[2]: Entering directory `/ndless/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Leaving directory `/ndless/tools/build'
make all in MakeLoader...
make[2]: Entering directory `/ndless/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader.exe
make[2]: Leaving directory `/ndless/tools/MakeLoader'
make[1]: Leaving directory `/ndless/tools'
make all in libndls...
make[1]: Entering directory `/ndless/libndls'
nspire-gcc -Os -nostdlib -c any_key_pressed.c
nspire-gcc -Os -nostdlib -marm -c clear_cache.c
nspire-gcc -Os -nostdlib -c clrscr.c
nspire-gcc -Os -nostdlib -c feof.c
nspire-gcc -Os -nostdlib -c fgets.c
nspire-gcc -Os -nostdlib -c fputs.c
nspire-gcc -Os -nostdlib -marm -c idle.c
nspire-gcc -Os -nostdlib -c isalnum.c
nspire-gcc -Os -nostdlib -c iscntrl.c
nspire-gcc -Os -nostdlib -c rewind.c
nspire-gcc -Os -nostdlib -c show_msgbox.c
nspire-gcc -Os -nostdlib -c sleep.c
nspire-gcc -Os -nostdlib -c strcspn.c
nspire-gcc -Os -nostdlib -c strspn.c
nspire-gcc -Os -nostdlib -c wait_key_pressed.c
nspire-gcc -Os -nostdlib -c wait_no_key_pressed.c
"/c/Programme/yagarto/bin/arm-none-eabi-ar.exe" rcs ../lib/libndls.a any_key_pressed.o clear_cache.o clrscr.o feof.o fgets.o fputs.o idle.o isalnum.o iscntrl.o rewind.o show_msgbox.o sleep.o strcspn.o strspn.o wait_key_pressed.o wait_no_key_pressed.o
make[1]: Leaving directory `/ndless/libndls'
make all in arm...
make[1]: Entering directory `/ndless/arm'
nspire-as -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c bootstrapper.S
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c stage1.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c ints.c -o ints_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls.c -o syscalls_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c utils.c -o utils_light_thumb_os-1.7.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-light_ncas-1.7.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-light_cas-1.7.c
nspire-ld --no-startup -nostdlib bootstrapper.o stage1.o ints_light_thumb.o syscalls_light_thumb.o utils_light_thumb_os-1.7.o syscalls-light_ncas-1.7.o syscalls-light_cas-1.7.o -o ndless_installer_os-1.7.elf
c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: ndless_installer_os-1.7.elf: Unknown mandatory EABI object attribute 44
c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file bootstrapper.o
collect2: ld returned 1 exit status
make[1]: *** [ndless_installer_os-1.7.elf] Error 1
make[1]: Leaving directory `/ndless/arm'
make: *** [subdirs] Error 1


What am i doing wrong?

Sorry compu, I don't have any idea for that.
Could you try if you have more luck the latest version of YAGARTO (http://www.yagarto.de/) that includes GCC 4.5.2? Don't forget to replace the path in your PATH environment variable.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: compu on January 17, 2011, 03:13:44 am
Code: [Select]
Juckel@JULIAN /ndless
$ make dist
rm -rf dist
Clearing in tools...
make[1]: Entering directory `/ndless/tools'
Clearing in build...
make[2]: Entering directory `/ndless/tools/build'
cd ../../bin && rm -f nspire-gcc nspire-ld  nspire-as || :
make[2]: Leaving directory `/ndless/tools/build'
Clearing in MakeLoader...
make[2]: Entering directory `/ndless/tools/MakeLoader'
rm -f ../../bin/MakeLoader.exe
make[2]: Leaving directory `/ndless/tools/MakeLoader'
make[1]: Leaving directory `/ndless/tools'
Clearing in libndls...
make[1]: Entering directory `/ndless/libndls'
rm -rf *.o *.elf *.a
rm -f ../lib/libndls.a
make[1]: Leaving directory `/ndless/libndls'
Clearing in arm...
make[1]: Entering directory `/ndless/arm'
rm -rf *.o *.bin *.elf *.xml *.zip
rm -rf ../calcbin/ndless_installer*.tns ../calcbin/ndless_resources.tns
make all in tests...
make[2]: Entering directory `/ndless/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]: Leaving directory `/ndless/arm/tests'
make[1]: Leaving directory `/ndless/arm'
Clearing in samples...
make[1]: Entering directory `/ndless/samples'
Clearing in hella...
make[2]: Entering directory `/ndless/samples/hella'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hella.tns
make[2]: Leaving directory `/ndless/samples/hella'
Clearing in hello...
make[2]: Entering directory `/ndless/samples/hello'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hello.tns
make[2]: Leaving directory `/ndless/samples/hello'
Clearing in particles...
make[2]: Entering directory `/ndless/samples/particles'
rm -f *.o *.elf
rm -f ../../calcbin/samples/particles.tns
make[2]: Leaving directory `/ndless/samples/particles'
rm -f ../calcbin/samples/ReadMe.txt
make[1]: Leaving directory `/ndless/samples'
rm -rf calcbin
rm -rf bin lib
mkdir -p dist/src
cp -r `ls | grep -v dist` dist/src
find dist -name Makefile.config | xargs rm -rf
make all in tools...
make[1]: Entering directory `/ndless/tools'
make all in build...
make[2]: Entering directory `/ndless/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Leaving directory `/ndless/tools/build'
make all in MakeLoader...
make[2]: Entering directory `/ndless/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader.exe
make[2]: Leaving directory `/ndless/tools/MakeLoader'
make[1]: Leaving directory `/ndless/tools'
make all in libndls...
make[1]: Entering directory `/ndless/libndls'
nspire-gcc -Os -nostdlib -c any_key_pressed.c
nspire-gcc -Os -nostdlib -marm -c clear_cache.c
nspire-gcc -Os -nostdlib -c clrscr.c
nspire-gcc -Os -nostdlib -c feof.c
nspire-gcc -Os -nostdlib -c fgets.c
nspire-gcc -Os -nostdlib -c fputs.c
nspire-gcc -Os -nostdlib -marm -c idle.c
nspire-gcc -Os -nostdlib -c isalnum.c
nspire-gcc -Os -nostdlib -c iscntrl.c
nspire-gcc -Os -nostdlib -c rewind.c
nspire-gcc -Os -nostdlib -c show_msgbox.c
nspire-gcc -Os -nostdlib -c sleep.c
nspire-gcc -Os -nostdlib -c strcspn.c
nspire-gcc -Os -nostdlib -c strspn.c
nspire-gcc -Os -nostdlib -c wait_key_pressed.c
nspire-gcc -Os -nostdlib -c wait_no_key_pressed.c
"/c/Programme/yagarto/bin/arm-none-eabi-ar.exe" rcs ../lib/libndls.a any_key_pressed.o clear_cache.o clrscr.o feof.o fgets.o fputs.o idle.o isalnum.o iscntrl.o rewind.o show_msgbox.o sleep.o strcspn.o strspn.o wait_key_pressed.o wait_no_key_pressed.o
make[1]: Leaving directory `/ndless/libndls'
make all in arm...
make[1]: Entering directory `/ndless/arm'
nspire-as -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c bootstrapper.S
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c stage1.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c ints.c -o ints_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls.c -o syscalls_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c utils.c -o utils_light_thumb_os-1.7.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-light_ncas-1.7.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1 -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-light_cas-1.7.c
nspire-ld --no-startup -nostdlib bootstrapper.o stage1.o ints_light_thumb.o syscalls_light_thumb.o utils_light_thumb_os-1.7.o syscalls-light_ncas-1.7.o syscalls-light_cas-1.7.o -o ndless_installer_os-1.7.elf
c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: ndless_installer_os-1.7.elf: Unknown mandatory EABI object attribute 44
c:/programme/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file bootstrapper.o
collect2: ld returned 1 exit status
make[1]: *** [ndless_installer_os-1.7.elf] Error 1
make[1]: Leaving directory `/ndless/arm'
make: *** [subdirs] Error 1


What am i doing wrong?

Sorry compu, I don't have any idea for that.
Could you try if you have more luck the latest version of YAGARTO (http://www.yagarto.de/) that includes GCC 4.5.2? Don't forget to replace the path in your PATH environment variable.

I reinstalled YAGARTO and msys and it works fine for me now.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 17, 2011, 02:33:58 pm
How did that happen??? I typed stuff at the bottom, out of the quotes, but it got cut off somehow./me edits post
This is nothing. On Cemetech when I quote nested quotes they end up having the wrong author names afterward. X.x
Speaking of respect, I think it has gone down for everyone a little, is someone spamming down ratings?
Also, I'd be very happy if someone would post the compiled Ndless installer files for me so I can install it really quick.
Not sure, although I remember Bwang's siblings used his account to rate up/down posts not so long ago. Not sure about the rest, though, because the only suspicious respect changes I saw besides that were positive ratings, not negative.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SatanicToothpaste on January 17, 2011, 07:49:56 pm
Which of these files, exactly, is Ndless (in its uncompiled form)? I have found the Ndless readme file (https://www.unsads.com/scm/svn/nsptools/Ndless/trunk/doc/ReadMe.txt) but it does not mention its whereabouts. From the integrated browser on usads, I cannot determine which specifically it is referring to; the multitude of files contained in the Trunk becoming frustrating. Am I to assume the extensionless "makefile," featured in the root directory, is the only required file for compilation?

Sorry for being a noob. I develop Visual and Quick Basic (yup, dos geek here) applications for school and home use. I merely do not know where to start in the TI World and would proudly help out with the mighty NDless. If anyone had a URL of where necessary files are located, I would greatly appreciate it. PS: I've deleted my posts regarding the status of the keyboard, which were inadvertently "offensive" to viewers :-[ . I don't want to bother with my development suggestions, I'll leave you in peace now.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 18, 2011, 12:00:21 pm
Which of these files, exactly, is Ndless (in its uncompiled form)? I have found the Ndless readme file (https://www.unsads.com/scm/svn/nsptools/Ndless/trunk/doc/ReadMe.txt) but it does not mention its whereabouts. From the integrated browser on usads, I cannot determine which specifically it is referring to; the multitude of files contained in the Trunk becoming frustrating. Am I to assume the extensionless "makefile," featured in the root directory, is the only required file for compilation?

Sorry for being a noob. I develop Visual and Quick Basic (yup, dos geek here) applications for school and home use. I merely do not know where to start in the TI World and would proudly help out with the mighty NDless. If anyone had a URL of where necessary files are located, I would greatly appreciate it. PS: I've deleted my posts regarding the status of the keyboard, which were inadvertently "offensive" to viewers :-[ . I don't want to bother with my development suggestions, I'll leave you in peace now.

All is needed. No exception.
Samples (/samples/) are useless if you want to ear so.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 18, 2011, 02:05:13 pm
The current state of Ndless 2.0 targets C developers only, I'm afraid you will have to wait for the stable release.

You could meanwhile try the current stable version v1.7 (http://www.ticalc.org/archives/files/fileinfo/426/42626.html) and run your programs on an emuator (http://hackspire.unsads.com/wiki/index.php/Emulators) if you own a Touchpad. The tutorial (http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction) is what you need to start, but it won't teach you how Makefiles (http://www.google.fr/search?q=makefile+tutorial) work and how to program in C.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 18, 2011, 02:35:24 pm
Yeah the fact Ndless 2.0 is mainly for C developers is one reason why no compiled executable is publicly available yet.

1) Any TI-Nspire owner with very few experience towards that stuff could attempt at installing Ndless 2.0 without bothering to read the instructions and warnings first, then permanently damage their calc
2) The forums will get flooded with death threats (well... maybe not that far) and complaints about how Ndless 2.0 bricked their calc or requesting help on how to unbrick it

So in other words, the lack of a compiled download acts as some kind of filter.

I'm not pointing fingers about who is inexperienced or not, but Omnimaga averages at 100000 page hits a day and the online list often shows people viewing Ndless-related topics, so a lot of TI-Nspire users might frequent this forum besides the already registered members. Also, I am myself inexperienced with that kind of stuff and am not planning to develop C programs, so I don't take any chance myself.

Anyway thank you for understanding.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 20, 2011, 05:53:33 pm
For you ExtendeD (and generaly for the Nspire community) :
http://levak.free.fr/ftp/nspire/render_b255_006c.jpg

And a video introduction currently in developement :
http://www.vimeo.com/19005952
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 21, 2011, 05:12:18 pm
And for those who prefer the TI-Nspire nonCAS :
http://levak.free.fr/ftp/nspire/render_b255_007.jpg

:p
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Ashbad on January 21, 2011, 05:13:02 pm
whoa, nice pic :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 21, 2011, 05:17:46 pm
Any news/infos about the touchpad arrows support?
Have you discovered anything?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on January 21, 2011, 05:22:41 pm
Nice Levak :)

critor: my work on Ndless has really slowed down for various personal reasons. I am trying to get a working console as background work.
I am currently not really tempted to work on the touchpad arrows support because I don't own one and wouldn't be able to test it on real hardware. But I suppose some of you could have a try.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 21, 2011, 05:57:33 pm
Anyway Levak, they are huge images... professional quality!


So here is the next logical step:

(http://i52.tinypic.com/2q1c8pf.jpg)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Munchor on January 21, 2011, 07:54:45 pm
Anyway Levak, they are huge images... professional quality!


So here is the next logical step:

Is that Times Square? If not, then make it be XD
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 22, 2011, 07:11:50 pm
And for those who prefer the TI-Nspire nonCAS TouchPad :
http://levak.free.fr/ftp/nspire/render_b255_018.jpg

:p

Yes, one day I'll make the CAS TouchPad (^.^)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on January 22, 2011, 07:46:46 pm
In the meantime, I think that the number keys may actually be easier to use. But do you think it would be possible to move the down arrow to 5? If you're using one hand, the key in the middle makes it hard to use the keys as a joypad.
So:
....8...
.4.5.6.

8 = up
4 = left
5 = down
6 = right

and then maybe make click "2".

Have any apps other than block dude been compiled with this configuration? (i.e., gbc4nspire or nes)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 22, 2011, 08:35:44 pm
And for those who prefer the TI-Nspire nonCAS TouchPad :
http://levak.free.fr/ftp/nspire/render_b255_018.jpg

:p

Yes, one day I'll make the CAS TouchPad (^.^)

Great, as usual!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 23, 2011, 11:26:23 am
And for those who prefer the TI-Nspire CAS TouchPad :
http://levak.free.fr/ftp/nspire/render_b255_023.jpg

no more Nspire \o/
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 23, 2011, 11:39:05 am
And for those who prefer the TI-Nspire CAS TouchPad :
http://levak.free.fr/ftp/nspire/render_b255_023.jpg

no more Nspire \o/

We still need the old blue Nspire with a touchpad keypad!

Excellent work on these, Levak!  The look beautiful! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on January 23, 2011, 12:54:54 pm
Here we are :
TI Nspire ClickPad + TouchPad keymap
http://levak.free.fr/ftp/nspire/render_b255_024.jpg

The final teaser video (available, I hope, in a moment) :
http://www.vimeo.com/19005952
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 23, 2011, 01:23:48 pm
Here we are :
TI Nspire ClickPad + TouchPad keymap
http://levak.free.fr/ftp/nspire/render_b255_024.jpg

The final teaser video (available, I hope, in a moment) :
http://www.vimeo.com/19005952



It's online!
Great!!! \\^^//
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on January 23, 2011, 03:20:05 pm
Very nice, Levak!

The video looks great!  I can't wait for future progress! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 23, 2011, 06:09:52 pm
Lol, the trailer for the program is ready! ;D
Now we're just missing another little thing: the program itself. :P
(no offense)

After watching that, more and more people will be waiting for it.  ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 24, 2011, 04:13:45 am
WOAH Levak it's really amazing work you did there. Great job!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: SatanicToothpaste on January 24, 2011, 07:00:49 am
Is an underlying POV Hat or D-Pad present beneath the touchpad; either physically or emulated by the firmware? It seems the latter may be in effect already, although I am suspicious of this. If not, is it possible for a secondary application -- one separate from Ndless altogether -- to serve as a keymapper? (Windows' xPadder and freeware JoyToKey are examples of this in the x86 environment) Transmuting the nonstandard "Analogue Stick" to Arrow Keys wields a similar predicament.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: uncfreak2007 on January 24, 2011, 04:43:38 pm
nDoom appears to work on my touchpad
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on January 24, 2011, 07:25:24 pm
How long should it be till this is ready for everyone to use? I would love to be able to put it on my Nspire.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 24, 2011, 07:27:00 pm
You can put and use the beta. It works :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on January 24, 2011, 07:29:42 pm
Sry to repeat myself, but since ExtendeD have no incentive to work on the Touchpad arrows (he doesn't have one), do you think we could do this instead:

Quote
In the meantime, I think that the number keys may actually be easier to use. But do you think it would be possible to move the down arrow to 5? If you're using one hand, the key in the middle makes it hard to use the keys as a joypad.
So:
....8...
.4.5.6.

8 = up
4 = left
5 = down
6 = right

and then maybe make click "2".

Have any apps other than block dude been compiled with this configuration, so arrows keys work? (i.e., gbc4nspire or nespire)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on January 24, 2011, 07:33:48 pm
I'm not a good programmer if there is an executable I'll use it. that way I know its safe and can use it without alot of work.

I'll need it to work well with the touchpad also
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 24, 2011, 07:37:31 pm
I don't think it's a good idea to map the arrow keys to the numeric keys at the Ndless level.
(sorry if I've misunderstood)


Some programs are allready using numeric keys for a different purpose (for example mViewer: arrow keys for scrolling the image, numeric keys for moving of a full screen width/height - another example: Nover to select overclocking parameter 1/2/3 - yet another example: Norse which has a main menu with numeric key shortcuts).

Future Ndless programs may use some kind of text input. How would we enter numeric data then ?


I think the best solution is to let each program handling numeric keys as arrow keys by itself when necessary.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: codeslicer on January 24, 2011, 07:45:28 pm
Oh, I see critor - that makes good sense (although I'm pretty sure that ExtendeD already mapped arrows to keys. See this post: http://ourl.ca/8160/158349).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 24, 2011, 07:53:12 pm
While it is only a temporary trick for testing Ndless 2.0 beta, it's not a problem for me.
I can still use Ndless 1.7 or an older Ndless 2.0 beta.

But the final release should not incude such a trick, even if we can't support the touchpad arrows. Just let the programmer choose.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ase1590 on January 27, 2011, 06:11:24 pm
Also, I just compiled this to attempt to see if it was compatible with the CAS touchpad 2.0.0.118

It appears it is not. As I am not going to read back 25+ pages, I am assuming this is already old news?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 27, 2011, 06:12:38 pm
Yes. It only works on 2.0.1 and 2.1.0.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on January 27, 2011, 06:12:51 pm
I don't think we are including support for 2.0.0, because 2.0.1 is the same but with bugfixes.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 27, 2011, 06:13:45 pm
You need OS 2.0.1.60, not 2.0.0.1188. 2.1.0.631 will work fine too. 2.0.0.1188 support was not added for safety measures (this OS has a very dangerous USB bug that can kill your calc, which probably explains 2.0.1.60 was released this fast after 2.0.0.1188 came out).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ase1590 on January 27, 2011, 06:42:32 pm
You need OS 2.0.1.60, not 2.0.0.1188. 2.1.0.631 will work fine too. 2.0.0.1188 support was not added for safety measures (this OS has a very dangerous USB bug that can kill your calc, which probably explains 2.0.1.60 was released this fast after 2.0.0.1188 came out).
Interesting, well I will upgrade to 2.1.0.631 and see if his changes my results.
Thanks.

edit:success
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gmkizzle on January 27, 2011, 06:46:57 pm
Hi, I am wondering does the current build work with the ti.nspire touchpad cas that came with 2.0 already installed. if so this means ill be able to program my own c program for it ?

Edit: I know that ase1590 just used touchpad but I heard there was a problem with the touchpad cas calcs that came with 2.0 installed already. If I update to 2.1.0.631 will it work as supposed to ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ase1590 on January 27, 2011, 07:15:39 pm
The current build works correctly on the touchpad CAS on OS 2.1.0.631 which is the current latest OS version in case you didnt read my last post and edit
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gmkizzle on January 27, 2011, 07:25:34 pm
After having a look, the problem with the touchpad cas calcs that came 2.0 is that they couldn't be downgraded any further than 2.0
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on January 27, 2011, 07:27:37 pm
TouchPad calculators with a 2.x OS can be downgraded to any 1.x OS using Nleash.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 27, 2011, 07:39:05 pm
Note that the CAS Touchpad will not work with OS 1.7, though, regardless of which keypad you put in (even the clickpad).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gmkizzle on January 27, 2011, 08:10:13 pm
I only have the touchpad keypad, meaning its useless for me to downgrade ? Because I can't use ndless ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 27, 2011, 08:17:02 pm
I unfortunately do not remember if other OSes will work on the Touchpad or just on the ClickPad. Otherwise the only other way would be to use Ndless 2.0, but you would need to compile it yourself.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Tuxpp on January 28, 2011, 01:45:45 pm
OSes 1.1-1.4 work fine on Touchpad Keypad, except naturally the arrow keys. But you can boot and run ndless 1.4 (for OS 1.4 on Touchpas CAS) : all programs built for ndless 1.7 works on ndless 1.4.
But you also can use the alpha of ndless 2.0, of course, who supports the touchpad keypas, by mapping arrow keys.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on January 28, 2011, 03:05:36 pm
If you really need the Ndless build and can't compile it yourself, you can ask someone [cough]e.g. me[/cough] to send it to you by email.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on January 29, 2011, 03:50:42 am
However, just remember that since Ndless 2.0 is not officially out, it doesn't mean it's as stable as the others. Use it at your own risk. This is a bit why ExtendeD doesn't like that binaries are distributed around in public. The lack of public binaries kinda acts as a filter against people who don't read readmes and have no experience with such software and are at higher risk of breaking their calculator then blaming developers.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 03, 2011, 12:32:26 pm
Can anyone define how stable ndless currently is? Since I get requests from classmates to "hack" their calcs. one the one side, after my personal experience ndless in its current form is pretty stable, but I also know that it is only a beta.
So can anyone "tell" me how "responsible" it is to share it with them?
Thx in advance for an answer.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on February 03, 2011, 12:53:09 pm
Personally, I've been using it for a long time, and the worst things that happened were a freezing of the calc (easily fixed by a reboot) or random reboots. And with the newest versions, these problems became much more rare. So I think it is pretty stable.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on February 03, 2011, 01:08:55 pm
It appears we cannot put Ndless installer in the MyLib folder.
It installs well, but on an eventual reboot it blocks definitively the Nspire. A full reset, erasing documents as well, is thus needed.

topic :
http://tibank.forumactif.com/t6519p30-plusieurs-questions-de-debutant
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on February 03, 2011, 01:10:31 pm
what language is that in? Is there an English version I could read.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Levak on February 03, 2011, 01:15:12 pm
what language is that in? Is there an English version I could read.
I had summed up, just above...
If you don't understand french, just don't read it..
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 03, 2011, 07:15:17 pm
I haven't seen ExtendeD in a while by the way. O.O
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on February 03, 2011, 07:47:43 pm
I'm seen him online on TI-Bank yesterday, so don't worry ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 04, 2011, 02:59:44 am
Oh I meant he didn't post here since almost 2 weeks. Hopefully he returns soon. I know he has been checking forums every now and then, though. Hopefully things aren't too hectic for him.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on February 04, 2011, 09:17:50 am
Sorry for having remained silent for the past few weeks. I have been quite busy at work and forced to use an Internet connection filtering forums, and I am currently moving house, which doesn't leave me much time on evenings and weekends.
I haven't touched a single line of code since then, but I'm keeping track of your bug reports and suggestions, hopefully I'll try to integrate them soon.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 04, 2011, 09:38:30 am
I see, well good luck with real life. I hope you do not run into bad stuff like money issues or even more work hours (I know some people here works 60 hours a week sometimes).
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: momrocker on February 08, 2011, 10:42:44 pm
Hey, I'm new to the community (but I have been lurking for awhile) and I would like to have a few questions answered:

First, does Ndless break any of the other functions of the Nspire? It seems like it wouldn't from the .gifs I have seen and such.

Second, when you mention that the arrow keys do not work in Ndless 2.0, does that mean in normal calculator use? Or specifically in C/Assembly programs written for Ndless? And if the first is true, wouldn't that basically make the calculator unusable on the actual hardware? Also, what do you mean by arrow keys, the ones on the touchpad surface?

Lastly, will Ndless 2.0 work on CAS calculators the same as non-CAS? Or do I need to do something special?

Sorry if these seem like obvious questions, I have been reading around for awhile and couldn't seem to find answers for them. :banghead: If these have been answered before, a link would be greatly appreciated.

Thanks!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on February 08, 2011, 10:46:04 pm
Welcome to Omnimaga! :)

Ndless does not break any OS functions, as it is for the most part independent from the individual functions in the calculator "app" like nsolve( and such.

The arrow keys, referring to the ones on the touchpad surface, will only not work in an Ndless program; they will work fine when you are running the actual Nspire outside of a specific Ndless program.

I hope this answers your questions.  If you need any more clarification, please feel free to ask! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: momrocker on February 08, 2011, 10:51:23 pm
Thanks! Wasn't expecting such a quick reply. :P

Yes, that solves all of my problems. I just wanted to be clear about all the particulars on something that I could potentially be installing on my $200 calc!!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: willrandship on February 08, 2011, 10:54:59 pm
Also, I heartily recommend getting a clickpad from TI for $10. :D of course, when 2.0  comes ouut officially many apps will be ported to the touchpad, its trivial in most cases as long as you have the source code.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: momrocker on February 08, 2011, 11:13:13 pm
When you say clickpad, do you mean just the keypad to replace the touchpad one? Would that work? I have a CAS calc, and I know that you can't use non-CAS keypads with it, but I didn't know you could use CAS clickpad keypads... Had absolutely no idea :D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on February 08, 2011, 11:19:31 pm
If you have the CAS, it is really pointless to get the clickpad keypad.  The keypads are not technically compatible.  They will work with each each other, but it is not easy to try to jam the non-CAS keypad into the CAS because at the curve at the top of the CAS keypad that is not present on the non-CAS keypad.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: momrocker on February 08, 2011, 11:22:34 pm
That's disappointing... Oh well. I can settle with no arrow key support until the official release. No big deal.

Thanks for all the help guys!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on February 10, 2011, 07:27:51 am
I haven't touched a single line of code since then, but I'm keeping track of your bug reports and suggestions, hopefully I'll try to integrate them soon.


What have you decided about the arrow and number keys?

I think mapping arrow keys to number keys at the Ndless level (which has been introduced in the last builds if I've understood well) is a bad idea.

I can understand this "hack" has been introduced to make old Ndless 1.7 games work without modifying the source...
But let's look at the future and not at the past: there are many reasons a program would like to test for number keys (numerical input, menu choice...).

I think it's up to the program itself to test for number keys and to decide to handle them either as numbers either as arrows.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Agentx002 on February 10, 2011, 11:25:05 am
How do you "build" ndless 2.x
The instructions are for experienced users and arent even for 2.0, they are for 1.7 and barely tell you how to build that!
To build and hack into Ndless 2.0:

 - Install a Subversion client such as TortoiseSVN (http://"http://tortoisesvn.tigris.org/")
 - Checkout (http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-checkout.html#tsvn-dug-checkout-dia-1) the source code with the URL and account above
 - Set up a C development environment (http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction)
 - Set up the development environment for Ndless and built it: follow the procedure described in src/doc/Ndess-Development.txt in your working copy
 - Install it on nspire_emu or your calculator by following src/doc/ReadMe.txt

Update frequently (http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-update.html) your SVN working copy to get and rebuild the latest version.

You may browse the Development resources (http://hackspire.unsads.com/wiki/index.php/Main_Page#Development_resources) on Hackspire to start your own programs.

Links to download the TI-Nspire OSes are available in this topic (http://ourl.ca/7373).



That basically sounds like "To build ndless, build it." to less experienced people  ???
There is no "src" directory, I did find the "Ndess-Development.txt" but it repeats, "To build ndless 2.0, build it"
I tried the 1.7 instructions on hackspire
Quote
Setting up a development environment

Get Ndless which contains an SDK for C and assembly development on TI-Nspire. This article is written for Ndless v1.7.
Add the sdk/bin/ directory to your PATH environment variable (on Windows XP, Windows Vista or on Linux).
There is no sdk/bin directory in the ndless 2.0 folder, I feel these instructions are a bit irrelevant to 2.0, I tried searching but found no further instruction on how to build ndless 2.0, can anyone help me out here? I mean, even if you can send me the built version of ndless 2.0, I mean, it hasnt been updated since January 18th, no offense to devs, that was almost a month ago. If someone can provide further instructions on how to build it, that would be highly appreciated  :-\

Details:
I have a Non-CAS nSpire touchpad calculator, a non-CAS touchpad, non-CAS clickpad, and OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash) and of course a mini usb cable
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on February 10, 2011, 11:30:19 am
There is no sdk/bin directory in the ndless 2.0 folder, I feel these instructions are a bit irrelevant to 2.0, I tried searching but found no further instruction on how to build ndless 2.0, can anyone help me out here?
Did you follow this step: "Set up the development environment for Ndless and built it: follow the procedure described in src/doc/Ndess-Development.txt in your working copy"
Those should be the instructions for building 2.0, unless I'm horribly mistaken.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Agentx002 on February 10, 2011, 11:33:08 am
There is no sdk/bin directory in the ndless 2.0 folder, I feel these instructions are a bit irrelevant to 2.0, I tried searching but found no further instruction on how to build ndless 2.0, can anyone help me out here?
Did you follow this step: "Set up the development environment for Ndless and built it: follow the procedure described in src/doc/Ndess-Development.txt in your working copy"
Those should be the instructions for building 2.0, unless I'm horribly mistaken.

Was editing my post to throw that I saw that in while you where posting
The text files first instruction
Quote
* Add 7-zip's folder to your PATH environment variable
* Copy Ndless/Makefile.config.tpl to Ndless/Makefile.config and configure the latter
Hurr?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Lionel Debroux on February 10, 2011, 11:39:55 am
Quote
OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash)
Nleash is not required to downgrade from 2.1.0.631 to 1.7.2741 or 2.0.1.60 :)
It's however necessary to use Nleash for reverting from 2.1.0.631 to 1.1.*-1.6.*.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on February 10, 2011, 11:41:16 am
I haven't touched a single line of code since then, but I'm keeping track of your bug reports and suggestions, hopefully I'll try to integrate them soon.


What have you decided about the arrow and number keys?

I think mapping arrow keys to number keys at the Ndless level (which has been introduced in the last builds if I've understood well) is a bad idea.

I can understand this "hack" has been introduced to make old Ndless 1.7 games work without modifying the source...
But let's look at the future and not at the past: there are many reasons a program would like to test for number keys (numerical input, menu choice...).

I think it's up to the program itself to test for number keys and to decide to handle them either as numbers either as arrows.
About this, I have an idea that might make everything work great: how about add a line in Ndless program headers so as to specify for which version they were compiled for. If this line is absent, consider it to be an Ndless 1.7 program, and make Ndless decide which buttons to use, but if the line says that the program was made for Ndless 2.0, let the program decide its own course of action in regard of the keys.
What do you think?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Agentx002 on February 10, 2011, 11:43:22 am
Quote
OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash)
Nleash is not required to downgrade from 2.1.0.631 to 1.7.2741 or 2.0.1.60 :)
It's however necessary to use Nleash for reverting from 2.1.0.631 to 1.1.*-1.6.*.
Nice ta know, saves me a step if I very have to downgrade (hopefully I won't) to 1.7+
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 10, 2011, 12:45:33 pm
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
well if the above is done then msys should spit out the binarys for 1.7,2.0 and 2.1 if you:
run msys, then type in
"cd D:/Nspire/ndless" (or wherever you have stored the source from the svn)
and then
"make"



Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on February 10, 2011, 01:27:34 pm
Quote
OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash)
Nleash is not required to downgrade from 2.1.0.631 to 1.7.2741 or 2.0.1.60 :)
It's however necessary to use Nleash for reverting from 2.1.0.631 to 1.1.*-1.6.*.

In fact, Nleash is required to downgrade to 1.7.2741 if you have a TouchPad keypad.
If the TouchPad keypad is detected, OSes 2.x set the minimal OS version to 2.0.

But anyway, someone having only a TouchPad keypad should not downgrade to 1.7...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Agentx002 on February 10, 2011, 02:55:44 pm
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
well if the above is done then msys should spit out the binarys for 1.7,2.0 and 2.1 if you:
run msys, then type in
"cd D:/Nspire/ndless" (or wherever you have stored the source from the svn)
and then
"make"
Well, it spat out a bin folder, and some other stuff. Now what :|
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: benoit934 on February 10, 2011, 03:01:53 pm
When i try to build i have error can tou help me pleas ?

Code: [Select]
make[1]: Entering directory `/home/Ndless/libndls'
nspire-gcc -Os -nostdlib -c feof.c
feof.c: In function 'feof':
feof.c:28:11: error: 'EOF' undeclared (first use in this function)
feof.c:28:11: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [feof.o] Error 1
make[1]: Leaving directory `/home/Ndless/libndls'
make: *** [subdirs] Error 1
:banghead:
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 10, 2011, 03:41:48 pm
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
well if the above is done then msys should spit out the binarys for 1.7,2.0 and 2.1 if you:
run msys, then type in
"cd D:/Nspire/ndless" (or wherever you have stored the source from the svn)
and then
"make"
Well, it spat out a bin folder, and some other stuff. Now what :|

add that bin folder to your path and then redo
if it gives the same error restart your pc (don't really know why that helps sometimes)
if that doesn't help post the error message please

hope this helps



When i try to build i have error can tou help me pleas ?

Code: [Select]
make[1]: Entering directory `/home/Ndless/libndls'
nspire-gcc -Os -nostdlib -c feof.c
feof.c: In function 'feof':
feof.c:28:11: error: 'EOF' undeclared (first use in this function)
feof.c:28:11: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [feof.o] Error 1
make[1]: Leaving directory `/home/Ndless/libndls'
make: *** [subdirs] Error 1
:banghead:
Could you check which version you have?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: benoit934 on February 10, 2011, 04:10:06 pm
I have rev 364 of Ndless
GNU Make 3.81
gcc.exe (GCC) 4.5.0
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 10, 2011, 04:19:48 pm
GNU Make 3.81 ?
err... are you on a linux system?
(for windows you need msys+yagarto as described in the first post of this topic)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: benoit934 on February 10, 2011, 04:46:39 pm
I have msys+yagarto and i have Centos how i can update ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 10, 2011, 04:55:18 pm
I assume that you got your sourcecode via a SVN-client.
To get the current source (167) you could either see if your SVN-client has an "SVN-update" function (it should have one) or you could simply redownload the whole source code again.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: benoit934 on February 10, 2011, 05:30:47 pm
I no found which SVN

EDIT : Solved i have bug with Ndless tool
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 11, 2011, 12:14:35 pm
nice to hear :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gmkizzle on February 14, 2011, 08:30:58 am
If you really need the Ndless build and can't compile it yourself, you can ask someone [cough]e.g. me[/cough] to send it to you by email.
Could you please send me the latest build, or will it not work with a CAS Touchpad?
[email protected]
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 15, 2011, 03:54:29 am
On a totally unrelated note, welcome to all the new members on the forums. :)

Also good luck ExtendeD on solving your life issues.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Jonius7 on February 15, 2011, 04:59:41 am
Progress has been made  - ndless for 2.0! I will try this soon. now if only the ti-nspire didn't use batteries so quickly.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: mSuman95 on February 16, 2011, 06:36:00 am
Is there any way we could get our hands on an alpha soon? Rather than requesting for emails individually, although I'd love it emailed to myself ;) , is there any member who would be interested in uploading? I don't want to come off as an outsider on my first visit, but a Megaupload would be greatly appreciated. (PS: I'm not fussed by the risks, the majority of users have reported no problems anyway)

The school year's already started over here, ^-^ let the games begin.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: TIfanx1999 on February 16, 2011, 08:51:29 am
There is no binary yet, you have to build it yourself. The current release is considered a "developer's release", however it is functional, but is not final release and as such may be buggy.

A link to the download is in the first post here: http://ourl.ca/8160
If you have questions on how to build you can ask, but this thread has plenty of information on it anyways. =) Oh, and welcome here!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Agentx002 on February 17, 2011, 03:12:16 pm
I have suceeded only in installing msys, yugarto, and making msys spit out a bin folder... Now what? How do I get my nspire running ndless 2.0? Can someone please instruct me on how to get from that bin folder to something I can put on my nspire and install ndless 2.0? Or maybe *cough*emailittomeplease*cough*?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 17, 2011, 04:08:00 pm
-install Msys + Mingw (http://www.mingw.org/wiki/MSYS)
-install 7zip (http://www.7-zip.org/download.html)
-install Yagarto (http://sourceforge.net/projects/yagarto/files/YAGARTO%20for%20Windows/20101223/)
-add the 7-zip folder and the yagarto "bin-folder"  to your "Path" variable (on W7: Control Panel\System and Security\System # Advanced system settings # Environment Variables )
(to add: write ";" after the existing "paths" and copy paste)


open Msys
write: cd <path to ndless directory>/tools
write: make

add the crated "bin folder" (/something/ndless/bin) to your path variables

write: cd <path to ndless directory>
write: make

Msys should now create a "calcbin" folder. (and some other stuff, may take a minute of time)
transfer "ndless_installer_os_xxx.tns" and "ndless_resources.tns" to your nspire (make sure they are in the same folder)
"open" "ndless_installer_os_xxx.tns"
a message that ndless installed successful may then pop up, or your calc could crash ;) : in this case reset it (if no automatic reboot) and retry.

Did I miss some step or is this enough to help you?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on February 17, 2011, 10:12:39 pm
I'm having trouble checking out the SVN. TortoiseSVN gives me this error:
access to '/scm/svn/nsptools/!svn/act/5fd8be76-d0ea-3646-ba4f-d6c7db3a5549' forbidden
What is going on ??? I got the login correct.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on February 17, 2011, 10:19:40 pm
What games are there currently available for the Ti-Nspire 2.0 touchpad. I am looking forward to using this to its full potential. wonderful program.
By the way I already have nDoom it is awesome
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on February 17, 2011, 11:56:06 pm
I have the same problem with Tortoise. But I found a workaround: I just manually cut and paste the files from the SVN browser to my PC.

And also, don't put the .tns files into the MyLibs folder on your calc. You will have to reinstall the entire OS if you do that.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on February 18, 2011, 12:25:48 am
I got it working. Don't use "import svn" but just use checkout, even if it is your first time.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 18, 2011, 12:30:48 pm
@ruler

quit a lot of the available programs are listed here (http://hackspire.unsads.com/wiki/index.php/Assembly_programs)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on February 19, 2011, 08:11:48 am
I got it working. Don't use "import svn" but just use checkout, even if it is your first time.
Thanks a lot! I'll no longer have to copy the files manually! :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: furyfight on February 20, 2011, 01:03:49 am
I got it working. Don't use "import svn" but just use checkout, even if it is your first time.
Thanks a lot! I'll no longer have to copy the files manually! :)

please help me, i accidently put the ndless 1.7 into the mylib and something went wrong! please tell me how to fix this, im really afraid since thsi calculator costs alot, my parents will kill me! it's a touchpad and i held the doc, then the enter key, then i held the EE key, then i hit on and nothing happens!!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 20, 2011, 05:38:25 am
Did you keep pressing them the whole time, after a reboot?

Also what OS do you have on your Nspire?
Because on a Touchpad you need (exept if it is a non-cas and you have a clickpad) ndless2.0 or greater.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on February 20, 2011, 08:59:41 am
Yeah, you have to keep holding the keys till the boot loading bar is half-way full (because the maintenance menu is in the boot2 code)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: compu on February 20, 2011, 03:01:45 pm
For all the newcomers, here is something I have recently been working on...
It was supposed to be a large ndless programming tutorial ;D but it's not finished and I don't have much time to work at it atm.
To the others, since I don't have much experience with ndless too, there might be a lot of errors in it... feel free to correct me, I will change it as soon as possible then :)

At least this is how I installed ndless... ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on February 20, 2011, 08:13:08 pm
Nice, deserves a thread of its own.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on February 20, 2011, 10:18:31 pm
For all the newcomers, here is something I have recently been working on...
It was supposed to be a large ndless programming tutorial ;D but it's not finished and I don't have much time to work at it atm.
To the others, since I don't have much experience with ndless too, there might be a lot of errors in it... feel free to correct me, I will change it as soon as possible then :)

At least this is how I installed ndless... ;)
Nice! I had started working on one too, but never had the time to finish it.

EDIT: Just a small remark though, the end with the emu stuff might confuse some people just wanting to install Ndless on their Nspire...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: compu on February 21, 2011, 02:45:43 am
EDIT: Just a small remark though, the end with the emu stuff might confuse some people just wanting to install Ndless on their Nspire...

Like I said, it was supposed to be a programming tutorial, so i thought it would be useful to explain the emulator.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: greg701 on February 21, 2011, 06:53:38 pm
Hi all, I have managed to build the current version of ndless and installed it sucessfully on my calc. I also put gbc4nspire on my calc and downloaded a gameboy rom.

The problem I am getting is that I have no arrow key support. Is it possible to map the keys to the number pad so it would be possible for me to play pokemon on my calculator in maths lessons??  :w00t:

Thanks for all your trouble and keep up the good work :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on February 21, 2011, 07:36:06 pm
Hi!  Welcome to Omnimaga!

At the current point, gbc4nspire is not compatible with the touchpad. :(

It would require another hex-edit to fix this, as the source code to gbc4nspire has been lost. :(
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ruler501 on February 21, 2011, 07:39:39 pm
Yes it is I use it with my touchpad you just have to find the special download for it buried domewhere in the gbc emulator forum. I'll post it in a while if you can't find it
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on February 21, 2011, 10:12:02 pm
http://www.omnimaga.org/index.php?action=topicattach;topic=1243
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 22, 2011, 04:08:58 am
Heya and welcome on the forums. :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: greg701 on February 22, 2011, 04:19:19 am
Wow thanks guys. It works well. You do realise this is going to mean i fail all my exams :|

Hahah not to worry, I think further maths is under rated anyway ;)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 22, 2011, 04:20:15 am
Maths are necessary if you plan to port Starcraft II to the TI-Nspire, though. ;D
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Cuervo on February 22, 2011, 11:49:59 am
Hi,

I'm new here..
Tried to make Ndless, but I'm having also this problem with os.h not being found..
The same problem on Mac OS X 10.6.6 and Ubuntu 10.10..

Where is the include-dir included? I didn't find it..

Code: [Select]
christian@CUBULAP1:~/Desktop/ndless/trunk$ make
make all in tools...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in build...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
make all in MakeLoader...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in libndls...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
nspire-gcc -Os -nostdlib -c any_key_pressed.c
any_key_pressed.c:22:16: fatal error: os.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[1]: *** [any_key_pressed.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
make: *** [subdirs] Fehler 1
christian@CUBULAP1:~/Desktop/ndless/trunk$

And if I add
-I../include
in
libndls/Makefile, so
GCCFLAGS = -Os -nostdlib
becomes
GCCFLAGS = -Os -nostdlib -I../include
I get a much more confusing output:

Code: [Select]
make all in tools...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in build...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
make all in MakeLoader...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in libndls...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
nspire-gcc -Os -nostdlib -I../include -c any_key_pressed.c
In file included from any_key_pressed.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -marm -c clear_cache.c
In file included from clear_cache.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c clrscr.c
In file included from clrscr.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c feof.c
In file included from feof.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c fgets.c
In file included from fgets.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c fputs.c
In file included from fputs.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -marm -c idle.c
In file included from idle.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c isalnum.c
In file included from isalnum.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c iscntrl.c
In file included from iscntrl.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c rewind.c
In file included from rewind.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c show_msgbox.c
In file included from show_msgbox.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
show_msgbox.c: In function ‘show_msgbox’:
show_msgbox.c:35:1: error: insn does not satisfy its constraints:
(insn 63 20 21 2 show_msgbox.c:29 (set (reg:SI 2 r2)
        (reg/f:SI 13 sp)) 167 {*thumb1_movsi_insn_osize} (nil))
show_msgbox.c:35:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
make[1]: *** [show_msgbox.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
make: *** [subdirs] Fehler 1

Sorry for german output.. (and wrong encoding..-.-)


At first I understood why there are no binaries released, but if the people destroy their calculators, it's not your fault, is it?..


TIA
Cuervo
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gamecheet on February 22, 2011, 09:21:39 pm
help me please, im using ubuntu 10.10 and a windows xp virtualbox in unison to try and compiling Ndless but no matter what i try it won't, in windows my [subdirs] always seem to be the problem, in ubuntu my /tools folder compiles nicely but i can't make Ndless :( if somebody could be as so kind as to either send me a binary or lend a helping hand i would be more than happy
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on February 22, 2011, 09:26:28 pm
@Cuervo - I don't understand German, but make sure you did the following:

From the Ndless root:
Code: [Select]
cd tools;make

Then add the created /bin directory in the ndless root to your path

@gamecheet - I am not familiar with Linux at all, but I recall there being an issue with building Ndless in Linux.  I can't remember if it was resolved yet or not. :(
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on February 22, 2011, 09:46:35 pm
@Cuervo: even when the end user is still fully liable, we wouldn't want people to destroy their calc if they didn't know what they were doing. It would give ndless, it's authors, and omni a bad name.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gamecheet on February 22, 2011, 09:53:18 pm
i dont need the binary itself (although it would be nice) all i need is a windows xp step by step kind of thing ;) lol anything would be helpful, ive looked far and wide and nobody is being very helpful. i also have access to a windows vista virtualbox if thats any easyier, maybe somebody could describe how they did it, im sure many people are looking for the same thing as me :/
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on February 22, 2011, 09:57:01 pm
Try this tutorial I wrote a while back:
http://ourl.ca/6330
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: fb39ca4 on February 22, 2011, 09:59:32 pm
You will also need to install mingw, so you can actually build ndless.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gamecheet on February 22, 2011, 10:07:07 pm
@apcalc your tutorial assumes youre using a post xp version of windows, would that make a difference while compiling, or in any way make the process easier?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: pokemonrules9 on February 22, 2011, 10:44:40 pm
Hey, like many others, I am all very new to this.  I followed the tutorial, but when trying to build it, I came up with this.  :banghead:   Can anyone tell me what i did wrong?


Spoiler For Spoiler:
$ make
make all in tools...
make[1]: Entering directory `/C/ndless/tools'
make all in build...
make[2]: Entering directory `/C/ndless/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Leaving directory `/C/ndless/tools/build'
make all in MakeLoader...
make[2]: Entering directory `/C/ndless/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader.exe
make[2]: gcc: Command not found
make[2]: *** [MakeLoader.exe] Error 127
make[2]: Leaving directory `/C/ndless/tools/MakeLoader'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/C/ndless/tools'
make: *** [subdirs] Error 1
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: apcalc on February 22, 2011, 10:46:26 pm
Add the /bin directory of MinGW to you path. :)

@apcalc your tutorial assumes youre using a post xp version of windows, would that make a difference while compiling, or in any way make the process easier?

It has been years since I last used Windows XP, but I highly doubt it will make that much of a difference.  The only issue I can think of is you might have to use a different method to add to your path (I am sure there are countless tutorials on how to do this on the Internet!). :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gamecheet on February 22, 2011, 10:49:43 pm
duuuude thats what i get in windows xp i will try to do what apcalc says
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: gamecheet on February 22, 2011, 11:16:29 pm
how about an md5, would that work or would it be different because its diy?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 23, 2011, 04:30:25 am
Where is the include-dir included? I didn't find it..

It's location should be as simple as
ndless\include or ndless\trunk\include in your case
If it isn't there I would have a serious talk with your svn client if I where you.
(especially since the "missing os.h" error is probably related with an error in your tree.)


@pockemonrules9

Seems to me as if you didn't install mingw properly
look here (http://www.mingw.org/wiki/InstallationHOWTOforMinGW) for how to do it.
Make also sure that you have Yagarto and 7Zip installed (and their respective folders in your path
or you'r going to have error's later therefore.)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Cuervo on February 23, 2011, 11:54:23 am
Ok, thanks, I now get another error.. but he finds os.h^^

Code: [Select]
nspire-gcc -Os -nostdlib -c any_key_pressed.c
In file included from /Users/christiancoors/Desktop/TI-nspire/ndless/trunk/bin/../include/os.h:8:0,
                 from any_key_pressed.c:22:
/Users/christiancoors/Desktop/TI-nspire/ndless/trunk/bin/../include/common.h:225:20: schwerwiegender Fehler: stddef.h: No such file or directory
Kompilierung beendet.
make[1]: *** [any_key_pressed.o] Error 1
make: *** [subdirs] Error 1

He does not find stddef.h.. And on Ubuntu gcc still crashes.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on February 23, 2011, 12:10:28 pm
stddef.h has to be in the include folder of "GNU C Compiler" if I interpret the source right but there I can't help you...
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Silver Shadow on February 23, 2011, 12:38:17 pm
Have you added
C:/Users/christiancoors/Desktop/TI-nspire/ndless/trunk/bin
to your PATH variable?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Cuervo on February 23, 2011, 01:01:52 pm
Yes, I did

Code: [Select]
export PATH=$PATH:/Users/christiancoors/Desktop/TI-nspire/ndless/trunk/bin/
before.. (on Mac OS X there is no 'C'-drive..)


If I don't do that he tells me os.h is missing and with it it's being included. (but not finding stddef.h)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on February 23, 2011, 01:36:51 pm
I think stddef.h is part of YAGARTO. Is Yagarto's bin folder also in your path?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Cuervo on February 24, 2011, 11:15:48 am
OK, I got very (!) far now, the only thing not working is I'm not getting a ndless_resources.tns..

Code: [Select]
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -c syscalls_cas-2.0.1.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -c syscalls_ncas-2.1.0.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -c syscalls_cas-2.1.0.c
nspire-ld --light-startup -nostdlib install.o ploaderhook.o ints.o syscalls.o utils.o emu.o syscalls_ncas-1.7.o syscalls_cas-1.7.o syscalls_ncas-2.0.1.o syscalls_cas-2.0.1.o syscalls_ncas-2.1.0.o syscalls_cas-2.1.0.o -o ndless_core.elf
"/usr/local/arm-elf/bin/arm-elf-objcopy" -O binary ndless_core.elf ndless_core.bin
stage2_hexsize=`wc -c ndless_stage2.bin | cut -f1 -d' ' | xargs  printf '%04x'` \
&& test -n "$stage2_hexsize" \
&& echo -e -n "\x${stage2_hexsize:2:2}\x${stage2_hexsize:0:2}\x00\x00" > ../calcbin/ndless_resources.tns
make[1]: *** [ndless_resources.tns] Error 1
make: *** [subdirs] Error 1

I actually do not see, what the problem is..


EDIT:
Ok, if I manually enter the number, I get the file. Does not work on my nspire cas OS 2.1.0 or 2.0.1.. tried many times. Always crashes.

TIA
Cuervo
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 25, 2011, 03:26:20 pm
Hi Cuervo and welcome to the forums (I wonder if I missed anyone else, but welcome to others too). Hopefully now you should no longer need to compile Ndless as ExtendeD posted a binary of it here: http://ourl.ca/9367

Just make sure to send the right file to your calculator, though. There is one for OS 1.7, one for 2.0.1 and one for 2.1, and you must also send the resources file.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on February 25, 2011, 05:06:12 pm
Just found a little bug: I notice that when Ndless tries to restore the FIQ vector (in arm/bootstrapper.S main_copy), it overwrites the Undefined Instruction jump instead:

A4000000  18 F0 9F E5 E4 66 26 10-18 F0 9F E5 18 F0 9F E5
A4000010  18 F0 9F E5 18 F0 9F E5-18 F0 9F E5 18 F0 9F E5
A4000020  30 60 26 10 28 48 04 11-4C 47 04 11 20 48 04 11
A4000030  18 48 04 11 00 00 00 00-C0 66 26 10 40 00 00 00
This one was well hidden! I've just fixed it. I wonder if this could be the source of the random crashes at installation time.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on February 25, 2011, 05:51:34 pm
In the meantime, I think that the number keys may actually be easier to use. But do you think it would be possible to move the down arrow to 5? If you're using one hand, the key in the middle makes it hard to use the keys as a joypad.
So:
....8...
.4.5.6.

8 = up
4 = left
5 = down
6 = right

and then maybe make click "2".

Have any apps other than block dude been compiled with this configuration? (i.e., gbc4nspire or nes)

I haven't touched a single line of code since then, but I'm keeping track of your bug reports and suggestions, hopefully I'll try to integrate them soon.


What have you decided about the arrow and number keys?

I think mapping arrow keys to number keys at the Ndless level (which has been introduced in the last builds if I've understood well) is a bad idea.

I can understand this "hack" has been introduced to make old Ndless 1.7 games work without modifying the source...
But let's look at the future and not at the past: there are many reasons a program would like to test for number keys (numerical input, menu choice...).

I think it's up to the program itself to test for number keys and to decide to handle them either as numbers either as arrows.
About this, I have an idea that might make everything work great: how about add a line in Ndless program headers so as to specify for which version they were compiled for. If this line is absent, consider it to be an Ndless 1.7 program, and make Ndless decide which buttons to use, but if the line says that the program was made for Ndless 2.0, let the program decide its own course of action in regard of the keys.
What do you think?

I have implemented codeslicer's suggestion for the v2.0 release. Block Dude and maybe nDoom need to be rebuilt to use the new mapping if apcalc and Mrakoplaz want to, sorry for the inconvenience.

In any case programs written for Ndless 1.1 needs to be rebuilt with this version to be compatible with the Touchpad, and programs will have to be rebuilt once the full Touchpad support is added to Ndless, since the key mapping is actually inlined into the program's codes. With the current implementation the options are the following:
- either the program keeps the current default mapping, and will be rebuilt (and perhaps slightly adapted) once the Touchpad arrows scanning is available in Ndless
- either the program needs both arrow keys and numeric keys as input, and layout the keyboard as it wants, without using the  KEY_NSPIRE_LEFT constants and the like.

Are we all OK with this?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Lionel Debroux on February 26, 2011, 02:40:47 am
As I wrote in another topic, for fully abstracting the Clickpad/Touchpad difference wrt. direction and click, and for proper handling of arrow keys and numeric keys used at the same time in a given program, we may want to kill the KEY_NSPIRE_* and usage of isKeyPressed() for those five keys, and move the way to check those keys to a new function.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Cuervo on February 26, 2011, 07:57:01 am
Hi Cuervo and welcome to the forums (I wonder if I missed anyone else, but welcome to others too). Hopefully now you should no longer need to compile Ndless as ExtendeD posted a binary of it here: http://ourl.ca/9367

Just make sure to send the right file to your calculator, though. There is one for OS 1.7, one for 2.0.1 and one for 2.1, and you must also send the resources file.

Ok.. thanks!

That version actually DOES work while the one compiled by me does not. I have no idea why.
Anyway, it's great!
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: DJ Omnimaga on February 26, 2011, 02:04:03 pm
Ok great to hear. This one might work better since he fixed some errors and is supposedly more stable. It doesn't seem to run nDoom as well for me, though, but I think Mraklopaz has to recompile it.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 04, 2011, 10:16:22 am
Touchpad scan has been added with the help of Goplat (http://ourl.ca/9315/178315). Since I don't own a TI-Nspire Touchpad and could only rely on emulated tests, I am really interested by any feedback from Touchpad users. For this you need to:


Here is a description of the current implementation, that may be adapted if it doesn't behave well on real hardware:
The area is divided in 9 rectangles (left, upper-left, up, upper-right and so one) of identical width and height. Touching the rectangle in the middle make it click. I'm not sure if I should use a non-default proximity sensitivity for this one to be consistent with the OS behavior. I have never used a Touchpad so please tell me how it feels.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on March 04, 2011, 11:14:43 am
The touchpad isn't divided into 9 rectangles? Also, you say "Touching the rectangle in the middle makes it click." I assume you also have to press the button down for a keypress to register?

Edit:
Also, nice work :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on March 04, 2011, 12:51:53 pm
nice that the touchpad is now included, but sadly I get an erro when trying to build this version :(  :banghead:

Code: [Select]
make all in arm...
make[1]: Entering directory /d/Nspire/Ndless/arm
nspire-as -Os -nostdlib -Wall -Wno-strict-aliasing -D OS_VERSION_INT=17 -c bootstrapper.S
c:/program files (x86)/yagarto/lib/gcc/../../arm-none-eabi/sys-include/stdint.h: Assembler message:
41: Error: bad instruction 'typedef signed char int8_t'
c:/program files (x86)/yagarto/lib/gcc/../../arm-none-eabi/sys-include/stdint.h: Assembler message:
42: Error: bad instruction 'typedef unsigned char uint8_t'
...
...lots of similar errors
...

Anyone an idea where to search for the source of this... ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Lionel Debroux on March 04, 2011, 12:54:59 pm
This looks like some C code getting included bare-naked into an ASM file ?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 04, 2011, 01:01:53 pm
calc84maniac: sorry, yes its 9.
Which button do you mean? (I have never seen a real Touchpad)

shrear, Lionel: you're right, I should have "make clean all". It's fixed.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on March 04, 2011, 01:10:04 pm
Yes it works now :)

And I think calc84maniac means the middle of the touchpad which can be "pressed down" like a normal button.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: some1specia1 on March 04, 2011, 01:14:32 pm
I am having trouble with the prebuilt version of ndless. It only installs on my calculator 50% of the time, and when it does work it pops up a message.

"error
This document format is not supported.
ndless installer.tns"

Once i hit okay for this message ndless works okay, I can play games or use programs even with that message that came up.

If this topic has already been discussed I would appreciate another pre-built version being uploaded until I can figure out how to do that myself.

Thanks
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on March 04, 2011, 01:31:34 pm
What you describe is a long know error, basically everything works fine but this message.
And I think if ExtendeD knew what the cause is, he would upload a fixed version very quickly ;)
What model of nspire have you between as this error seems to appear never to some people but always to others, so knowing on which hardware the error appears may help to find it (that's what I think at least).




@ExtendeD

Touchpad works fine so far, exept two things.

1) RIGHTDOWN is mapped to LEFTUP
here is the corrected line:
Code: [Select]
case TPAD_ARROW_RIGHTDOWN:
return report.y <= touchpad_info.height/TPAD_RATIO && report.x >= (touchpad_info.width * (TPAD_RATIO - 1))/TPAD_RATIO;

2) I suppose that since you haven't a Touchpad, you aren't aware of the fact that the touchpad does not only "react" on "touch" but also to "press" on the nine areas.
Actually that's how it is most used in normal OS function, and I think it would be very tiresome to "touch" it when you only want to navigate through a menu etc.
Now the touch will be sure useful in future games but the press is what, as far as I can say, corresponds to the up,down,left etc. keys on the clickpad.
I barely got that line above done so I fear that I can't help there but it would be nice if you add a test for "touchpad pressed".
My proposal is that isKeyPressed() tests for press and a other separate function tests for touch and returns the cords. ( I think that's what touchpad_scan() does but I'm not yet so far in the code)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 05, 2011, 02:52:42 am
some1specia1: OK so it's still there. I'll try other fixes and let you test them if you can.

shrear: 1) thanks, I couldn't test this one.

My proposal is that isKeyPressed() tests for press and a other separate function tests for touch and returns the cords. ( I think that's what touchpad_scan() does but I'm not yet so far in the code)

Yes, that is the idea.
I'm not sure if "pressed" means report->contact = TRUE, or if it corresponds to a special threshold of report->proximity, so I don't know how to update ndless_tpad.tns to test it. For you would the sensibility of ndless_tpad.tns be a touched Touchpad or a pressed Touchpad?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on March 05, 2011, 04:19:46 am
Yes, that is the idea.
I'm not sure if "pressed" means report->contact = TRUE, or if it corresponds to a special threshold of report->proximity, so I don't know how to update ndless_tpad.tns to test it. For you would the sensibility of ndless_tpad.tns be a touched Touchpad or a pressed Touchpad?
The sensibility there is what I would call "touched",
if I make sure to only "press" it (just pressing it on the edges or in the middle with a pencil) , it doesn't even react.
EDIT: just noticed that the OS doesn't react either in that case...

EDIT2:
I tested a bit and I come to the following conclusion:
the touchpad is one key which can be "pressed", but it makes no difference where you press.
the "touch" is registered separate on the surface of this key, but only if the "key" is not pressed.

I believe that the OS if you press par example down, first registers the location where you touch while your pressure isn't yet high and then as soon as you have pressed it down the OS reacts like pressing the down key on the clickpad.
This would at least explain the following bug: if you press in a menu first down and then press very quickly up the OS reacts still as if you pressed down.(probably since he didn't have time to updated the "touched" location.)

This are now my wild guesses and I may be wrong, so everyone who has a touchpad, feel free to correct me if you think I'm wrong.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 05, 2011, 06:21:26 am
Thank you for these details.
I have added a proximity bar at the top of the screen in ndless_tpad.tns. The vertical line shows the limit above which a "click" is reported by isKeyPressed().

Is the proximity correctly reported? Is the "touched"/"clicked" limit good for you? (it is the one defined by the Touchpad controller)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on March 05, 2011, 07:05:43 am
the limit seems to correspond to the point where the OS would actually start to display a mouse and not in any way, if "pressed" or not.
If it is good or not, depends directly from where you using it, for "porting" clickpad games it is probably low enough but I can easily think of scenarios where in may need more sensitivity.

But I think I have to take back
Quote
the "touch" is registered separate on the surface of this key, but only if the "key" is not pressed.
this misinterpretation origins from my habit to press the touchpad on its borders, where the proximity is much inferior to what it is half a mm more to the middle  (what probably also is the cause why isKeyPressed(***) sometimes didn't seem to work for me :( )
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 05, 2011, 07:31:30 am
touchpad_scan() let use should the proximity threshold adapted to the program. But the threshold displayed is currently used for isKeyPressed() (ie for clickpad/touchpad programs). Should I keep it as it is? Else how can we find this "pressed" limit?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on March 05, 2011, 08:10:57 am
dividing the threshold by two would make sure that the big majority of "presses" are registered, on the cost that miss-presses would be more likely (but still rare if the user hasn't a dexterity problem).

About the pressed limit: To me it doesn't seem as if "touchpad-pressed" is resolved over "proximity", but is reported separate
and that it is at the software to merge "pressed" and "touched at the left" to "pressed left"

at hackspire (http://hackspire.unsads.com/wiki/index.php/Keypads) proximity is on bit 01,
bit 0A has as description,
Quote
1 if touchpad pressed down, 0 if not
could that bit therefore make the difference between touched and pressed?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 05, 2011, 08:46:53 am
You're right, I didn't see it.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on March 05, 2011, 03:41:06 pm
I've noticed that the keypad_type is not updated when you hot-swap the keypad in an Ndless program.
I'm not saying it's a bug: Ndless is simply returning the type that was detected by the OS, and which is not updated anymore as interrupts are disabled.

But it might be usefull for some programs to be able to hot-swap the keypad while a Ndless program is running.


So, is there a way for a Ndless program to detect the current inserted keypad?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 06, 2011, 06:34:22 am
A discussion about this was started here (http://ourl.ca/8357) a while ago. I could indeed include hot keypad detection if anyone provides more info on it.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 06, 2011, 07:59:14 am
shrear, I have just updated libndls to use the "pressed" field returned by the touchpad controller (and the velocity fields are now also available with touchpad_scan()).
So isKeyPressed() should now react as expected, could you please confirm?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: shrear on March 06, 2011, 08:15:36 am
confirmed. Works excellent now. :)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on March 06, 2011, 10:38:28 am
Is there anythng to change in the Makefile or in the headers?

I cannot recompile code which did compile on the previous r369.
Error at linking time:
Code: [Select]
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(touchpad.o): Unknown mandat
ory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin
/../lib\libndls.a(touchpad.o)
collect2: ld returned 1 exit status
make: *** [mviewer.tns] Error 1

I didn't modify the code, and I've performed a "make clean"...



Edit: It doesn't seem to come from the makefile or from my code...
I cannot even recompile the samples.
Same kind of errors, which all seem to be related to the new libndls:
Code: [Select]
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(show_msgbox.o): Unknown man
datory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin
/../lib\libndls.a(show_msgbox.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(sleep.o): Unknown mandatory
 EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin
/../lib\libndls.a(sleep.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: c:/ndless/sdk/bin/../lib\libndls.a(idle.o): Unknown mandatory
EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none
-eabi/bin/ld.exe: failed to merge target specific data of file c:/ndless/sdk/bin
/../lib\libndls.a(idle.o)
collect2: ld returned 1 exit status
make: *** [particles.tns] Error 1
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on March 06, 2011, 12:40:43 pm
Odd how there's a backslash in there along with all the forward slashes... does that matter?
c:/ndless/sdk/bin/../lib\libndls.a
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: jnesselr on March 06, 2011, 02:04:28 pm
Odd how there's a backslash in there along with all the forward slashes... does that matter?
c:/ndless/sdk/bin/../lib\libndls.a
It depends.  Usually it doesn't, but considering he bolded it, I would say yes.  I know for paths, windows CMD doesn't seem to care.  My mac does, though.  I would say it matters here.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: calc84maniac on March 06, 2011, 02:05:52 pm
Odd how there's a backslash in there along with all the forward slashes... does that matter?
c:/ndless/sdk/bin/../lib\libndls.a
It depends.  Usually it doesn't, but considering he bolded it, I would say yes.  I know for paths, windows CMD doesn't seem to care.  My mac does, though.  I would say it matters here.
Actually, I was the one who bolded it :P
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: jnesselr on March 06, 2011, 02:13:02 pm
Odd how there's a backslash in there along with all the forward slashes... does that matter?
c:/ndless/sdk/bin/../lib\libndls.a
It depends.  Usually it doesn't, but considering he bolded it, I would say yes.  I know for paths, windows CMD doesn't seem to care.  My mac does, though.  I would say it matters here.
Actually, I was the one who bolded it :P
well, either way, it seems important.  My mac considers "Desktop\folder" as "Desktopfolder" it seems.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on March 07, 2011, 10:48:20 am
Problem solved by updating Yagarto.

Thank you ExtendeD.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on March 07, 2011, 10:52:50 am
Please make all sure you are using YAGARTO (http://www.yagarto.de/)'s 23.12.2010 release (GCC v4.5.2). It seems there have been incompatible ABI changes of object files or libraries between the previous one and this one.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: critor on March 25, 2011, 06:43:46 pm
Thanks :D

edit: I believe I remember someone saying that arrows have been mapped to 1-9? Does this work in gbc4nspire or not?
gbc4nspire came out before the touchpad was even announced. It'll probably need another hex editing session to make a touchpad version (perhaps even with support for reading the actual arrow keys if that could be pulled off -- I've been checking out how to interface with it)

Any news about a fully functional TouchPad version of gbc4Nspire?
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Firerouge on June 05, 2011, 04:54:15 am
I'm getting the following error when trying to make the latest revision. As a side note I do have all the paths setup.

(http://img88.imageshack.us/img88/3858/administratorcwindowssy.png)
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: ExtendeD on June 06, 2011, 02:56:07 am
Can you make sure your PATH variable doesn't contain the bin/ directory of a previous version of Ndless? Ndless 2.0 should be built with itself.
Title: Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
Post by: Firerouge on June 06, 2011, 03:14:49 am
Can you make sure your PATH variable doesn't contain the bin/ directory of a previous version of Ndless? Ndless 2.0 should be built with itself.

Thanks that was the issue, had left it in my path by accident. Everything is working perfectly now!