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
|