I'm trying to make a code for PID switching.
It means that device's PID is changed if specific condition is true.
But I'm not sure whether it's possible or not.
If it's possible, is there any good solution for this?
If you know it, please let me know.
Are you using FX2LP to implement this?
PID is used during enumeration of a device. It is fixed for a given device. May I know the reason to change PID during runtime?
Yes, I'm using FX2LP now.
And the reason why I wanna change it is to separate 2 products.
One product is normal version and the other one is upgraded version that is added additional function.
Upgraded version uses different PID now.
So I was wondering if PID can be changed in the firmware so that only one firmware is used, not make a another firmware.
By any chance do you have ideas for this?
I am a bit unclear about your requirement. As per my understanding, you want a single firmware to support 2 PIDs and different functionalities based on the selected PID value.
My question is how are you planning to determine which PID to be used by the device? Are you planning to use any external signaling to do so?