Flash Magic Forum

In-System Programming Support => General => Topic started by: steven_vh on November 02, 2006, 03:27:19 AM

Title: Multiple threads using DLL
Post by: steven_vh on November 02, 2006, 03:27:19 AM
Hi,
I want to write an app to gang-program 24 LPC2000s simultaneously by having 24 threads access as many virtual com ports (on USB com port expander). Does the FM DLL support this multi-thread access?
regards
Steven
Title: Re: Multiple threads using DLL
Post by: Andy Ayre on November 02, 2006, 06:25:31 AM
The DLL supports multiple threads but currently you can only call one function in the DLL at a time. This means you will have to wait for the current programming call to finish before starting the next.

Possible solutions:

1. Use CreateProcess() to start multiple programming processes, each one using a copy of the DLL. The process could be a very simple controller. Pass it the com port number and the hex file as arguments and it handles the programming autonomously and returns the result code.

2. We can write you a quote for customizing the DLL to your needs. If you are interested please contact me by email. My email address is at the bottom of this post.

Title: Re: Multiple threads using DLL
Post by: friedmal on April 02, 2012, 02:11:54 AM
Hi Andy,
just to make sure since this is a very old thread.
I want to do the same, is this limitation still relevant?
that is can i need to create different processes in order to simultaneously program multiple devices?
Title: Re: Multiple threads using DLL
Post by: Andy Ayre on April 03, 2012, 12:11:14 AM
Yes.