2 Replies Latest reply on Jun 30, 2017 1:59 AM by user_108325373

    Bootloader on RS485 with PSoC5LP

    user_108325373

      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

        • 1. Re: Bootloader on RS485 with PSoC5LP
          anks

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

          • 2. Re: Bootloader on RS485 with PSoC5LP
            user_108325373

            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