5 Replies Latest reply on May 19, 2019 9:16 PM by GyanC_36

    transparent uart using CYBLE-416045-02

    JaWa_4152831

      I using CYBLE-416045-02 a PSoC 63 device

      I am wanting an example project that will take uart and push the data to a ble central device (in this case a phone)

      and whatever the phone sends the the device with be displayed on the uart.

      is there a project where this is already accomplished?

      thanks

      https://www.cypress.com/file/428336/download

        • 1. Re: transparent uart using CYBLE-416045-02
          GyanC_36

          Hi Jace,

           

              Please find attached project and document - The peripheral project available in this bundle can be used for your application.

           

          -Gyan

          1 of 1 people found this helpful
          • 2. Re: transparent uart using CYBLE-416045-02
            JaWa_4152831

            I think that Uart to ble Peripheral might work...

             

            Main quetions

            Why is printf not working?

            Why is UART_Get not working?

             

            What I want to so send data from UART Rx to the ble central device in this

            case my phone with a notification and write data to the device from my

            phone with a Gatt write without response to the device and sent that to

            UART Tx.

             

            however I am unable to get it fully functioning. first of all printf is not

            working I am not sure why. also line 147... data=UART_Get();.... is not

            working either. I tested it with the debugger it always returns 0xFF

            despite putting input into tera term.

             

            I am not seeing this display that is shown in the  attached PDF

            ...

                                            • PSoC 6 MCU UART to BLE Peripheral *****************

            Role : Server (GATT OUT)

            **********************************************************************************

            ...

            so printf() and UART_Get() are not working but UART_Transmit() is woking.

             

            when I connect my phone to the project I can preform a write from the phone

            (central) to the CYBLE-416045-02 (peripheral) and I can see the characters

            in the terminal.

            However when I enable notifications and enter data into the terminal but

            nothing comes up on the phone

             

            attached is a copy the the project with the configurations that I have made.

             

            I noticed that when I first opened the project in the pins configureation

            of UART_to_BLE_Peripheral.cydwr that UART RX was not routed to any pins so

            I put it on p5.0

             

            I changed the device in device selector to CYBLE-416045-02

             

            Main quetions

            Why is printf not working?

            Why is UART_Get not working?

             

            using...

            OS: WIndows 10

            IDE: PSoC creator 4.2

            MCU: CYBLE-416045-02

            PDL: 3.0.4

            Terminal Program: Tera Term

            Termaial Baud: 115200

            using ftdi breakout board.rx to tx and tx to rx

             

            phone model Nexus 6p

            phone OS Andorid 8.0.1

             

             

            On Sun, May 5, 2019 at 10:05 PM GyanC_36 <community-manager@cypress.com>

            • 3. Re: transparent uart using CYBLE-416045-02
              JaWa_4152831

              Update I have printf working I can output to the my Terminal. I did this by changing lines 154 and 155 in stdio_user.h

              form

              #define IO_STDOUT_UART      SCB0

              #define IO_STDIN_UART       SCB0

              to

              #define IO_STDOUT_UART      SCB5

              #define IO_STDIN_UART       SCB5

               

              I saw that UART_Transmit()  (Cy_SCB_UART_Transmit() param 1 UART_HW)  worked and was using SCB5 so I switched the SCB that stdio was using to SCB5.

               

              However now UART_Get()((Cy_SCB_UART_Get())) is not working. It always returns 0xFF and UART_GetNumInRxFifo() always returns 0 when I enter keys on my keyboard while my terminal is active.

              UART_Get() was not working before changing the SCB from SCB0 to SCB5

               

              Using...

              Tera Term

              terminal baud 115200

              PSoC 63 UART baud 115200

               

              How Do I Get UART_Get() (IE Cy_SCB_UART_Get()) to work?

              • 4. Re: transparent uart using CYBLE-416045-02
                JaWa_4152831

                Is there an IAR version of this project?

                thanks

                • 5. Re: transparent uart using CYBLE-416045-02
                  GyanC_36

                  It can be easily ported to IAR platform. In PSoC  Creator -> Right Click on the project -> Export to IDE-> Select 'IAR'.

                   

                  -Gyan

                  1 of 1 people found this helpful