2 Replies Latest reply on Jul 6, 2016 3:37 AM by contacto_1672616

    Not receive data from the UART, Pioneer Kit with Cyble-022001-EVAL

    contacto_1672616

      Not receive data from the UART, Pioneer Kit with Cyble-022001-EVAL

      I'm starting tests with Cyble Pioneer Kit-022001-EVAL.
      I'm just testing the programming environment and I have not started testing the BLE.
      I initially practiced with the activation of LEDs and buttons, this part I managed to make it work even with PWM.
      Now I'm using the UART, I have connected to pins:
      UART Rx Pin: P1.4
      UART Tx Pin: P1.5
      Sending data to the USB UART working properly and I get display on a terminal.

      But the reception data does not work me, I followed the reception to the pin P1.4 and the data arrives ok to Cyble-022001-EVAL card, but I can not read it in the program.

      I guess it's an initialization problem but I can not see it, my UART has the name of UART1 and I think I have everything correctly initialized:

      dat_Rx unit32; // Is the variable that I use to store the data received

      UART1_Uartinit ();
      UART1_Start ();
      UART1_Enable ();

         


      dat_Rx = UART1_UartGetChar();; // I used this sentence but not receive data

       dat_Rx = UART1_SpiUartReadRxData(); // I have also proven this nor receive data

      Somebody could tell me where is the problem?