Author Topic: Tutorial - Setting up C Development Environment for the TI-Nspire  (Read 65933 times)

0 Members and 1 Guest are viewing this topic.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #60 on: February 17, 2011, 08:28:47 pm »
Hi! Welcome to Omnimaga! :)

This is not possible on the Nspire, but it has been done before, namely with the TI-89 series of calculators.  A C-Development environment program, named GTC, was made that allowed C development directly on the calc.
I wouldn't say it is not possible. Gcc and the various tools it requires just need to be ported over. (Not that I'm going to do it or anything, but still,it is a possibility)

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #61 on: February 17, 2011, 08:35:29 pm »
Hi! Welcome to Omnimaga! :)

This is not possible on the Nspire, but it has been done before, namely with the TI-89 series of calculators.  A C-Development environment program, named GTC, was made that allowed C development directly on the calc.
I wouldn't say it is not possible. Gcc and the various tools it requires just need to be ported over. (Not that I'm going to do it or anything, but still,it is a possibility)

When I said it is "not possible", I meant that it is not possible at this time! :)

Sorry for any confusion I may have caused. :)


Offline PeonHero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +13/-5
  • Coder of Tomorrow, Coding Today.
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #62 on: February 19, 2011, 11:13:09 pm »
well it's impossible for everything to be possible, because if everything is possible, then it's possible that everything is impossible.
There are a lot of<a href="http://justmegawatt.com/images/youdidntknow"> Things you didn't know </a>about until you clicked that link.

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #63 on: February 22, 2011, 05:24:22 pm »
Nice paradox PeonHero,
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #64 on: February 26, 2011, 09:43:09 pm »
I just got this to work on my first try. Funny since I am new to all of these procedures except installing YAGARTO.  :thumbsup:

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #65 on: February 26, 2011, 09:44:54 pm »
I just got this to work on my first try. Funny since I am new to all of these procedures except installing YAGARTO.  ;D

Good to hear! :)


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #66 on: February 28, 2011, 04:00:22 am »
Good to hear. Good luck in your Nspire development. Feel free to ask questions. :D
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #67 on: March 04, 2011, 05:20:05 pm »
I'm new to NSpire Development (C and Assembly) and there are a few things I'm curious about.

The files are .tns (Assembly files) but that's just to allow the Computer Link Software to read it, right?
C files are converted to Assembly when compiled?
I am gonna follow the tutorial later and then come back.

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #68 on: March 04, 2011, 05:26:08 pm »
yes and no if you mean "machine code"(hex) with assembly then 2*yes
but if you mean with assembly something like
...
add r1, r2
mov r3, #4
ldr r0, [r1]
...
then no

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #69 on: March 04, 2011, 07:56:50 pm »
Good to hear. Good luck in your Nspire development. Feel free to ask questions. :D

Just 1 request. A working "Hello world". Puts() does nothing but crash, even when the file is unmodified.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #70 on: March 05, 2011, 03:05:28 am »
Did you try samples/hello.tns? Does it crash?

puts() writes to the serial output, you won't see anything on real hardware unless you've built an adapter. But run from nspire_emu the text will be displayed on the DOS console.
There is currently no standard function to display text on the screen but several programs already integrate custom functions for this.
Ndless.me with the finest TI-Nspire programs

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #71 on: May 13, 2011, 07:51:18 pm »
how do you do this on linux mint 10?
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #72 on: May 14, 2011, 03:48:59 am »
I don't know about mint, but http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction describes the setup for Ubuntu.
Ndless.me with the finest TI-Nspire programs

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #73 on: May 14, 2011, 03:52:43 am »
Yagarto is an arm-none-eabi toolchain (and that's what we want), while the Ubuntu toolchain is an arm-linux-gnueabi toolchain, AFAICT.

I'm currently in the process of further improving and documenting the script I use for creating an arm-none-eabi toolchain, re-testing it with GCC 4.5.3, Newlib 1.19.0 and GDB 7.2, and will post it to Hackspire :)
EDIT: done. http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction#On_other_Linux_distributions
But I think we want to remove the note about the Ubuntu/Mint package - it's not the toolchain flavor we're looking for.
« Last Edit: May 14, 2011, 04:54:46 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #74 on: August 14, 2011, 12:02:41 pm »
I've added blah/ndless2/sdk/bin to my PATH variable (in Ubuntu) but when after typing in "make" in the hello sample folder, I get this error: "make: execvp: nspire-gcc: Permission denied." If I type in "sudo make", I get "make: nspire-gcc: Command not found." What's wrong?

Are you wondering who Sammy is? My avatar is Sammy.