Bootloader on RS485 with PSoC5LP

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

cross mob
Anonymous
Not applicable

Hi,

   

I'm developing a project on a PSoC5LP and I have to use a RS485, in the past I developed the same project with RS232 and the bootloader is very good and fast, but now, when I try to use RS485 (with TX_enable pin) I have a lot of problems, I always have this error message: "CYRET_ERR_DATA : The data is not of the proper form". Is there something that I have to add if I use RS485 instead of RS232?

   

Thank you for the time you'll decide to give me.

   

bye

0 Likes
2 Replies
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Please look into this project and see it may help you .

0 Likes
Anonymous
Not applicable

Hi ANKS,

   

thank you very much for your reply, I really appreciated.

   

I saw your project, actually I don't see many difference with my approach to the problem. Anyway, in my project I use a PSoC5LP (CY8C5868AXI-LP032), an UART [v2.50] and a Bootloader [v1.50].

   

As I wrote in the first post, I usually use bootloader with UART for a RS232 communication and I never had problems.

   

This time, the UART is setted for a RS485 communication at 19200 bps, with 2 wire, no flow control, and a tx enable pin.

   

With this settings, often there was CYRET_ERR_DATA error, something wrong was happening, sometimes it program for the first 3-4 rows, sometimes it give me error when programming is just started.

   

Now, the project works, but I have not written a post because I'm not sure about the solution: I simply changed the baud rate, from 19200 to 38400, this kind of solution have no sense.

   

Maybe, for the bootloader, the RS485 is less stable than the RS232? Maybe the TX enabled pin give some problems at certains baud rates?

   

If someone have a similar problem we could talk about it.

   

Best regards

0 Likes