Where can I find source code of USB-to-I2C bridge for LPCXpresso54102?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where can I find source code of USB-to-I2C bridge for LPCXpresso54102?

Jump to solution
2,012 Views
jayesh_joshi
Contributor IV

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. 

jayeshj_0-1638168474844.png

 

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?

 

Labels (2)
Tags (2)
0 Kudos
1 Solution
1,942 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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)

ZhangJennie_0-1638351710504.png

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.

ZhangJennie_2-1638351938858.png

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

 

 

 

 

 

 

 

View solution in original post

0 Kudos
9 Replies
2,004 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

All the available information about this LIBUSBSIO package is in this link. Please check.

https://www.nxp.com/design/software/development-software/library-for-windows-macos-and-ubuntu-linux:...

 

Have a nice day,

Jun Zhang

0 Kudos
2,001 Views
jayesh_joshi
Contributor IV

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?

0 Kudos
1,983 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

yes, you need to adjust your own LPC54102 code.

0 Kudos
1,978 Views
jayesh_joshi
Contributor IV

@ZhangJennie 

 

Can you please point me to the source of the LPC54102 firmware which has support of the bridge functionality?

0 Kudos
1,960 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,953 Views
jayesh_joshi
Contributor IV

@ZhangJennie 

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?

jayeshj_0-1638266146091.png

 

Thank you for your support.

 

0 Kudos
1,943 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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)

ZhangJennie_0-1638351710504.png

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.

ZhangJennie_2-1638351938858.png

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

 

 

 

 

 

 

 

0 Kudos
1,940 Views
jayesh_joshi
Contributor IV

@ZhangJennie 

Thank you for the detailed description. I developed a similar theory just today.  

0 Kudos
1,935 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

welcome!

0 Kudos