Home arrow Support arrow Forums

Luminary Micro Forums

djbrano

Senior Boarder
Click here to see the profile of this user

2007/04/02 03:39

Sample source code

Hi... I would like to ask you one thing. Can you tell me what is the best way for a programming (erasing, reading) of your family of circuits in the DELPHI environment? I saw some source codes, but they were written just for C programming language. Can you explain me what I have to use for a DELPHI when I want to start programming (erasing, reading) your Luminary Micros circuits? I will be very happy when you send me a sample source code for DELPHI environment when it will be possible.

Thank you for your fast reply.

Best regards

login or register to reply

englere

Gold Boarder
Click here to see the profile of this user

2007/04/04 15:57

Re:Sample source code

I answered in another group here (OpenOCD). But you need to realize that all of the on-cip code needs to be programmed in C or Assembler, at least for right now. Arm assembler programming is not for the faint of heart, so C is normally the only practical choice.

But programming in Thumb-2 assembler is much better than the original Arm/Thumb assembler, so that's going to be viable for some users.

I write PC-side open source programs in my free time and I'm looking at supporting more language options down the road, but my time is small. Java will be my first language, and maybe later Basic or C#. Java support is over half done, but it takes a lot of time to test on the device and I never have any time lately.

Although I love Pascal, it's probably not popular enough to warrant a port (unless you guys can convince me otherwise). My VM work on embedded devices is modelled after the p-machine in UCSD Pascal, and updated by the JVM object orientation. So Pascal played a key historical role in most of the work I am doing now. And I still fire up Delphi several times a week.

For anyone interested in writing programs for the device written in Java, check out NanoVM. This is a cool open source nano-sized JVM. It runs programs compiled with a real Java compiler, and they run on-chip. NanoVM itself is written in C for the AVR, but it's being ported to other architectures by volunteers.

Eric

login or register to reply