Hi All,
I want to use LPC804 in my project as a secondary controller which can be controlled using I2C master. I am going through LPC804 I2C Secondary Bootloader and found that LPC54102(image attached below) can be used as an I2C bridge between PC and LPC804.
As per my understanding, I can extend lpcusbsio source code attached in the below thread with source code I2C bridge firmware of LPC54102.
https://community.nxp.com/t5/LPCware-Archive-Content/LPC-USB-Serial-I-O-Library/ta-p/1129296
Can anyone please direct me to the source code of USB-to-I2C tools for LPC54102?
Solved! Go to Solution.
Hi
In AN11610, The windows PC application talks to the SBL through the USB to I2C/SPI Bridge (implemented with LPC43xx) via NXP’s USBSerialIO library. There is no LPCXpresso54102 USB to I2C code.
This situation is similar as AN12373 (Sorry I didn't notice you mention it in your original question)
Here we use on board LPC4322 firmware as USB-to-I2C bridge. The LPCUSBSIO is already burned into LPC4322, we just use it as bridge. that's to say, here below, we don't burn anything to on board LPC54102, just use the existing firmware ( as red arrow shows) as bridge. That's why you don't see any source code in our AN package.
LPCUSBSIO Works with MCU-Link Pro and on-board versions of MCU-Link and LPC-Link2
LPCUSBSIO is available as library format. I am afraid the source code is not open.
Jun Zhang
Hi
All the available information about this LIBUSBSIO package is in this link. Please check.
Have a nice day,
Jun Zhang
Hi @ZhangJennie
Thank you for the quick reply.
If I understood correctly I also need to change the LPC54102 source(Which has I2C bridge functionality) for the development of my custom commands.
Dont I need to change the source code for LPC54102?
yes, you need to adjust your own LPC54102 code.
Can you please point me to the source of the LPC54102 firmware which has support of the bridge functionality?
Please check AN11610 which includes the usage of USB to I2C/SPI Bridge with source codes.
https://www.nxp.com/docs/en/application-note/AN11610.zip
Hope this will help you,
Jun Zhang
I have gone through the attached .zip file.
As per my understanding AN11610 is has an example of LPC54102 with SBL. I couldn't find a reference for LPC54102 as a bridge device. Can you please point out which example/binaries are you referring to?
Thank you for your support.
Hi
In AN11610, The windows PC application talks to the SBL through the USB to I2C/SPI Bridge (implemented with LPC43xx) via NXP’s USBSerialIO library. There is no LPCXpresso54102 USB to I2C code.
This situation is similar as AN12373 (Sorry I didn't notice you mention it in your original question)
Here we use on board LPC4322 firmware as USB-to-I2C bridge. The LPCUSBSIO is already burned into LPC4322, we just use it as bridge. that's to say, here below, we don't burn anything to on board LPC54102, just use the existing firmware ( as red arrow shows) as bridge. That's why you don't see any source code in our AN package.
LPCUSBSIO Works with MCU-Link Pro and on-board versions of MCU-Link and LPC-Link2
LPCUSBSIO is available as library format. I am afraid the source code is not open.
Jun Zhang
Thank you for the detailed description. I developed a similar theory just today.
welcome!