1 of 1 people found this helpful
- You have mentioned that you define endpoint 2 as BULK IN. So, you can only perform read transactions using this endpoint. TO perform write transactions, you need to define an OUT endpoint.
- Also, note that TD_POLL() function is called repeatedly. So, any code within this function block gets executed repeatedly. In case you have code statements pertaining to endpoint 6 and endpoint 2 in TD_POLL() block, both gets executed for every iteration of the loop.
- Consider using endpoint 0 and vendor commands for I2C EEPROM read/write.