EmbeddedRelated.com
Forums

SAM-BA Delphi Example?

Started by bconyne December 20, 2007
Does anyone know of a Borland Delphi example for writing to flash
using the SAM-BA dll? I'm guessing not but figured it was worth a try
to ask.

Since (for some reason) Atmel decided to make AT91Boot_DLL.dll into a
COM component, it's not very straightforward to port it to another
environment (yes, I realize it can be done but I'm not a COM superstar
- especially in Delphi).

I have to use Delphi for a work project, so I can't take advantage of
the included Visual Studio examples (other than as a general model for
how to communicate with the dll).

Any suggestions would be much appreciated.

Thanks,
--Bob
bconyne wrote:
> Does anyone know of a Borland Delphi example for writing to flash
> using the SAM-BA dll? I'm guessing not but figured it was worth a try
> to ask.
>
> Since (for some reason) Atmel decided to make AT91Boot_DLL.dll into a
> COM component, it's not very straightforward to port it to another
> environment (yes, I realize it can be done but I'm not a COM superstar
> - especially in Delphi).
>
> I have to use Delphi for a work project, so I can't take advantage of
> the included Visual Studio examples (other than as a general model for
> how to communicate with the dll).
>
> Any suggestions would be much appreciated.
>

I made a simple programmer in Python some time ago. Since I was not
familiar with COM in Python, I rather used Tcl. There were ready to use
and very simple Tcl scripts, so I used them instead of messing with COM.
Then I called Tcl interpreter from my Python application.

Caglar