Add an external library : libmodbus.c

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I am new to Psoc creator and I would like to know if it is possible to add a C library as libmodbus. I already try to create a project and add manually libmodbus  but there is too much dependencies...

The goal is to create a modbus TCP/IP slave.

Thks for your reply

0 Likes
1 Solution
0 Likes
5 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

This Component Author guide available at the below Link provides info regarding creating Library project for PSoC :

http://www.cypress.com/documentation/component-datasheets/psoc-creator-component-author-guide

This forum thread may be useful in your application:

http://origin-www.cypress.com/forum/psoc-4-ble/modbus-slave-using-cy8c4247lqi-bl483

0 Likes
Anonymous
Not applicable

Hi,

Thanks for your reply! I already had a look to this project but like it is modbus RTU using UART it is quite different.
I understand how he does to communicate through UART but don't know how to use tcp/ip with psoc!

I have a RJ45 connected to an SPI connected to my ARM cortex m3. I though I could use the same ideas from the project and write the data to the SPI Tx but doesn't working.
Any ideas? I have been blocked for a few day and no more on my side ...

0 Likes

I am sorry to inform but TCP/IP cannot work with PSoC as it doesn't has support for it.

You can check our WiFi supporting range of products  whose details may be available at this link:

http://www.cypress.com/products/wireless-connectivity

Anonymous
Not applicable

Ok thanks! I know why I can't success

I would like to use ethernet because of environment issue concerning wifi.
Is it possible to use socket with psoc?

0 Likes

Cypress's  PSoC4 doesn't supports Ethernet or TCP/IP, you can refer to these links which can be useful:

https://www.waveshare.com/uart-to-eth.htm

http://origin-www.cypress.com/forum/psoc-4-architecture/psoc-4-ethernet

Another Ethernet Component

0 Likes