Thanks for the reply Darrel.
I can see how assigning a serial number on the PC side could overcome this problem but you have to admit its a bit of a bodge and if you end up having to keep a lookup table of handle to serial number then a software crash would lose that information and you would have un-plug and then reattach your devices to re-assign serial numbers - very clunky! For a one off application this might be OK however this device is likely to be used in many different pieces of software in the future and minimising the PC side coding is very desirable.
When you say overwriting the flash and re-enumerating is not worth it which part is not worth it? if its the re-enumerating can I not just write over the flash before calling USBINIT? Or is writing to the flash the hard part?
Thanks
Andy




Bookmarks