Home arrow Support arrow Forums

Luminary Micro Forums

djbrano

Senior Boarder
Click here to see the profile of this user

2007/04/02 03:09

Flash programming

Thank you for your fast reply. I would like to ask you one more question. Can you tell me what is the best way for programming of your family of circuits for DELPHI environment? What is the easiest way for me when I want to program a proper source code for DELPHI environment for a programming (erasing) of your circuits... thank you again for your fast reply

Post edited by: djbrano, at: 2007/04/02 03:21

login or register to reply

LMI Eric

Moderator
Click here to see the profile of this user

2007/04/02 23:48

Re:Flash programming

I'm not aware of any DELPHI support for our devices. I think there were a couple people discussing DELPHI a few months back, so I think your best chance is to post in the forum and see if any of them can help you out. Honestly, I don't think there is going to be much support for DELPHI, so you may want to consider switching over to C.

login or register to reply

englere

Gold Boarder
Click here to see the profile of this user

2007/04/04 15:27

Re:Flash programming

Delphi can easily call C-compiled DLLs, and it can call COM objects, or connect to TCP sockets.

I'd recommend using the open source Indy TCP component in Delphi (assuming a Win32 Delphi and not .NET) to connect to the socket used by the open source OpenOCD program. OpenOCD runs in the background waiting for a socket connection. Once you connect to it you can give it commands, such as those to erase flash or to program the flash.

You could also try shelling out to gdb, but I don't recommend doing that. I've wasted hours going down that road before. OpenTCP is much lighter and easier to work with. And it can easily be called from any language.

There's a good forum for OpenOCD at SparkFun.com.

Eric E

login or register to reply