Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ExtendeD

Pages: 1 ... 52 53 [54] 55
796
Calculator C / Re: Post your Nspire routines here!
« on: September 06, 2010, 04:48:26 pm »
I haven't a clue what syscalls.c is. It came with Ndless.

syscalls.c contains OS stubs requires by "newlib" (the implementation of stdlib integrated with YAGARTO).
The stdlib is not really required in our case, because most of the functions can be found in the TI-Nspire OS, you just need to define them in Ndless headers.
And it appears that newlib is built without -fpic in YAGARTO (pc-relative instructions), so the stdlib functions may crash.
The stdlib should only be enabled if the program uses floating-point arithmetic, similarly to the Ndless's particles demo.

Most programs should be built with the -nostdlib option for nspire-ld.

There has to be some way to have it not include the unused functions.  I am almost sure TIGCC/GCC4TI dose it.

Headers do not influence program size, the libraries does. The .a file should contain separate .o files (as it does). The granularity for inclusion is a .o file. So your problem is quite strange.

Could you try to build with the flag -nostdlib for nspire-ld? Could you check that the .tns doesn't contain series of zeros?
Could you try to run a "arm-none-eabi-objdump.exe -D <your_program.elf>" which disassemble the program, and see which symbols appear?

797
Also, I believe this is a trick that will allow you to send files to OS 2.0 (it takes a little bit of time though)
Nice idea, thanks apcalc.

798
Chip's Challenge for Ti-Nspire / Re: Chips Challenge for TI-Nspire
« on: September 03, 2010, 10:18:31 am »
The scope is not clearly defined yet, but probably not 2.0.

799
Chip's Challenge for Ti-Nspire / Re: Chips Challenge for TI-Nspire
« on: September 03, 2010, 07:01:30 am »
(2) We do not have full support for static variables.

This has been implemented in the current development branch of Ndless and will be shipped with the next release.

800
Calculator C / Re: Nspire keypress errors...
« on: September 02, 2010, 03:30:52 am »
The behavior probably depends on the version of GCC.

801
Calculator C / Re: Nspire keypress errors...
« on: September 01, 2010, 04:33:05 am »
apcalc, I'm not sure if this is related to your issue, but could you try to add the "volatile" keyword to the definition of isKeyPressed in common.h ?

Code: [Select]
#define isKeyPressed(key)       (!((*(volatile short*)(KEY_MAP + (key).row)) & (key).col))
The behavior may be  undefined with some versions of GCC without it.

Also, thanks _player1537 for compiling this for me :)

802
TI-Nspire / Ncubate - nspire_emu enhanced
« on: August 31, 2010, 06:34:45 am »
Ncubate is a custom version of Goplat's nspire_emu (released with his permission) enhanced with features I personally needed for my own use and I'd like to share.
This version mainly adds calculator state save and reload, useful debugger commands and support for the GDB debugger.

-> Ncubate v032b

Help for the GDB support is available on Hackspire.

Ncubate adds the following features to nspire_emu v032:

GUI:
- NEW: 'File -> Save State' let you save the whole emulator state to a file
  named <flash_image>.sav. The file is loaded on startup if it exists. You can
  request a state reload with 'File -> Reload State'
  Caution, newer versions of Ncubate may fail to read .sav files produced by
  previous versions. Delete these files when upgrading.
- NEW: 'File -> Save Flash As...' suggests the current flash image name
- NEW: several keyboard shortcuts added

Debugger:
- NEW: Supports the GNU Debugger GDB. You can debug at source-level programs
  built with Ndless. More information available at http://hackspire.unsads.com
- NEW: The register PC can be changed with the command 'rs
- NEW: Command 'j' to jump to the next instruction. This is useful for example
  to jump over an halt() call in an Ndless program.
- NEW: Command 'ww' to write a word to an address
- NEW: Command 'ss' to search a string in memory
- NEW: "+x" is the default flag for the breakpoint command 'k'
- NEW: Command 'wf' to load a file to memory
- NEW: Command-line option /R=cmdfile can be used to automatically run debugger
  commands on startup. Use a single line for each command. At the end of the file,
  the debugger switches to the standard input. You can use 'c' as the last
  command to continue the emulation.
- CHG: The breakpoint command 'k' takes as parameter a virtual address instead
  of a physical address
- CHG: Debugger command 'w' renamed to 'wm'
- CHG: The command 'wm' takes as parameter a virtual address instead of a
  physical address
- CHG: Read/write breakpoint logs display a virtual address instead of a
  physical address
- FIX: Command 'd' doesn't crash if the parameter is missing
- FIX: Broken 'w' command

CPU/Ports:
- ADD: (internal) ARM loader for arbitrary ARM snippet execution by the emulator
- FIX: no more 'bad read word' on auto power down, but still hangs

Flash:
- FIX: Flash image closed when synced to disk, for external edition

Build:
- NEW: Makefile.config for custom compilation flags
- NEW: make clean
- FIX: compilation warnings

803
Chip's Challenge for Ti-Nspire / Re: Chips Challenge for TI-Nspire
« on: August 30, 2010, 08:51:42 am »

I wonder if eventually ExtendeD or someone else will write a text routine for Ndless. Text seems like an essential programming command to me x.x.
Yes, I'm planning to either find more OS syscalls related to text display and widgets, or integrate custom functions in Ndless as libraries.
But this is a low-priority task, any contribution is welcome. With nspire_emu and a good disassembler, this should not be too difficult to some of you.

804
Calculator C / Re: Nspire time
« on: August 29, 2010, 12:13:52 pm »

805
Calculator C / Re: Post your Nspire routines here!
« on: August 26, 2010, 03:46:24 pm »
Nice :) So this is the event loop? There may be other interesting events to listen to, aren't there?

806
General Calculator Help / Re: Weird Nspire Problems
« on: August 15, 2010, 05:07:36 pm »
I've had this issue for several months since I opened the board, until the point I couldn't switch it on at all :(
I've magically solved it with a piece of paper folded and inserted under the board.

807
Calculator C / Re: Post your Nspire routines here!
« on: August 06, 2010, 12:41:50 pm »
bwang, what about creating a static library for your useful functions?

808
Thanks apcalc. Everything is correct except the link to Ndless :)

809
News / Re: Ndless v1.1 released
« on: July 31, 2010, 06:13:42 pm »
Sorry, we won't discuss of any exploit publicly for good reasons.

810
News / Re: Ndless v1.1 released
« on: July 31, 2010, 05:55:36 pm »
fb39ca4: anyway I hope Nleash won't be required for Ndless in the near future.
bwang: yes, the program format hasn't change.

Pages: 1 ... 52 53 [54] 55