CY8CKIT-042: UART problem

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

cross mob
RAP_2366941
Level 1
Level 1

Dear All,

   

I am trying to develop MODBUS SLAVE on CY8CKIT-042 board. I have written simple program initially to transmit whatever received. Code works when I type on Hyper terminal nicely. But when I send MODBUS frame through Modbus testing software (I tried two diff. s/w), software gets hang.

   

When I shorts two pins (RX- P0_4, Tx- P0_5) on PSoC 5LP I/O Header (J8) , board transmits whatever I types on Hyperterinal. But Modbus testing softwares gets hang.. Testing software works fine on PC UART ports.

   

What could be the problem ?

   

Thanx in advance

   

Ravi

0 Likes
3 Replies
EmHo_296241
Level 5
Level 5
10 solutions authored 50 replies posted 25 replies posted

Hi Ravi,

Please attach your project so that we can have a look into it.

0 Likes
lock attach
Attachments are accessible only for community members.
RAP_2366941
Level 1
Level 1

Dear Embedd Holmes, Thanx for reply.

   

I have connected PC USB port to USB Connector (J10) onj board. And trying to do serial communication through this KitProg USB-UART port.

   

Plz find the attached project which works well. Program reply the same char for every received character.

   

However when I send stream of bytes through MODBUS testing software like Modscan32, ModbusTester, etc., these testing  software gets hang. Same testing softwares work fine when connected on other COM port on PC.

   

One thing I observed recently is if I short P12_7 & P12_6(bypassing pSoc4) , same problem persist.

   

That means, there may be some pbm from PSoC 5LP Programmer & Debugger.

0 Likes

Dear Embedd Holmes,,

   

My guess was correct, problem is in PSoC 5LP circuit.

   

I took out Tx(P0_5) & Rx(P0_4) from pSoC4 CPU and connected externally to MAX232 IC and connected to Computer.

   

My program is now working as expected.

0 Likes