Author Topic: Ncubate v.0.32b is out  (Read 17796 times)

0 Members and 1 Guest are viewing this topic.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Ncubate v.0.32b is out
« on: November 06, 2010, 12:29:43 pm »
Ncubate v032b is out!

The major feature added in this version is the compatibility with the GNU GDB debugger which allows source-level debugging for C programs. I have been working on this feature for the last 10 months, I am pleased to share it, and hope it will help new TI-Nspire projects to roll out.

Tutorials are available on Hackspire and YouTube.



Thanks to apcalc for BlockDude featured in the tutorial.
(sorry for the poor quality, it seems to have been damaged by the YouTube conversion)

This version also includes an ARM loader which can be used by the emulator to run arbitrary ARM instructions. Currently only the GDB support depends on it to speak with the Ndless program loader. I would like to make use of it to add file tranfers to OS 2.1 and also file exports. Unfortunately the file-related syscalls seem to fail for an unknown reason when injecting a call... Any help on this is welcome.

Here is the full changelog of v032b including the minor changes:

* v032b - 2010/11/06
 - ADD: GDB support
 - ADD: Command-line option /R
 - CHG: Read/write breakpoint logs display a virtual address instead of a
   physical address
 - FIX: 'j' (over a non-branch instruction) and 'rs pc' debugger commands
   incorrectly skipped the target instruction
 - FIX: flash file creation (/N) may sometimes fail
 - FIX: no more 'bad read word' on auto power down, but still hangs
 - FIX: ineffective command line option /D when saved state was reloaded on startup
Ndless.me with the finest TI-Nspire programs

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Ncubate v.0.32b is out
« Reply #1 on: November 07, 2010, 03:07:19 am »
Great! I saw the upload. I will probably give this a try if I ever get into Nspire dev too. :D

EDIT: I moved this to news.
« Last Edit: November 07, 2010, 01:15:40 pm by DJ Omnimaga »

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #2 on: November 07, 2010, 04:10:37 pm »
OMG GDB support!!
Greatest thing ever!!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #3 on: November 08, 2010, 09:32:24 am »
Nice emulator, looks hard to use, but that's because you are C Coding.

Can we use ncubate like wabbitemu and code in ti basic nspire too?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #4 on: November 08, 2010, 02:16:43 pm »
You can code in TI-Nspire basic within the emulator, but currently you will unfortunately not be able to export to the computer the programs written this way.
Ndless.me with the finest TI-Nspire programs

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Ncubate v.0.32b is out
« Reply #5 on: November 08, 2010, 02:23:49 pm »
Exporting programs might eventually be useful for those with no link cable, although not a lot of people program in TI-Nspire BASIC. However, Wabbitemu has this for the 83+. Is this planned for Ncubate in the future?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #6 on: November 08, 2010, 03:39:17 pm »
Yes I would like to integrate it if I find the time to.

But I would need (or need help) to understand what's wrong with the armloader added in the last release when calling file relating syscalls. Any call fails when the loader run it by interrupting the OS. The same calls work when loaded by the Ndless program loader. Some conditions seems to be required to be able to call these syscalls.

The broken code is available in this release but unused if anyone wants to have a look.
Ndless.me with the finest TI-Nspire programs

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #7 on: November 08, 2010, 04:27:55 pm »
This is awesome ExtendeD!

Source code level debugging is awesome!  8)
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Ncubate v.0.32b is out
« Reply #8 on: November 09, 2010, 12:41:04 am »
Yes I would like to integrate it if I find the time to.

But I would need (or need help) to understand what's wrong with the armloader added in the last release when calling file relating syscalls. Any call fails when the loader run it by interrupting the OS. The same calls work when loaded by the Ndless program loader. Some conditions seems to be required to be able to call these syscalls.

The broken code is available in this release but unused if anyone wants to have a look.
Ah ok, hopefully you or other people can figure out soon. :)

Offline kyllopardiun

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 178
  • Rating: +14/-4
  • Kyllopardiun over 2000 results in google.
    • View Profile
    • Kyllo's blog (a blog about poetry, videos and computing)
Re: Ncubate v.0.32b is out
« Reply #9 on: December 05, 2010, 11:36:42 am »
How/ what should I do to be able to compile it,
I am saying this because: when trying to compile with mingw/eclipse/cygwin I always get some errors
//I didn't edit the program [yet]


Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #10 on: December 05, 2010, 12:01:06 pm »
Do you have YAGARTO installed on your computer/added to your path?  That is where "arm-none-eabi-gcc" is located.

Offline kyllopardiun

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 178
  • Rating: +14/-4
  • Kyllopardiun over 2000 results in google.
    • View Profile
    • Kyllo's blog (a blog about poetry, videos and computing)
Re: Ncubate v.0.32b is out
« Reply #11 on: December 05, 2010, 04:04:10 pm »
Do you have YAGARTO installed on your computer/added to your path?  That is where "arm-none-eabi-gcc" is located.
Thanks, now I can compile with the mingw, but I still not able to do it with the cygwin perhaps, I have to change something in the make file for do it...



But, it's not really a problem as I can compile it now (=
thanks Apcalc!

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #12 on: December 05, 2010, 05:09:56 pm »
Just edit Makefile.config and remove -mno-cygwin.
Ndless.me with the finest TI-Nspire programs

Offline kyllopardiun

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 178
  • Rating: +14/-4
  • Kyllopardiun over 2000 results in google.
    • View Profile
    • Kyllo's blog (a blog about poetry, videos and computing)
Re: Ncubate v.0.32b is out
« Reply #13 on: December 05, 2010, 06:36:10 pm »
Maybe cygwin is too advanced for me...
I've tried removing it all -mno-cygwin and just the cygwin, in both cases I got:



But, I don't think you shoud care about it, as it's easy to compile with mingw...


Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ncubate v.0.32b is out
« Reply #14 on: December 06, 2010, 02:14:41 pm »
I'm not sure if it's related, but don't forget to make clean before switching from Cygwin to mingw.
Ndless.me with the finest TI-Nspire programs