This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uart issue esp32 and nRF52832

Hi... i am using nRF52832 ,15.2 version sdk . I want to send the data from esp32 to nRF52832 through Rx ,Tx . I have done connections rx,tx,gnd . I can able to transmit the data but i can't able to receive the data why ? i have used ble_app_uart examples , i didn't change anything , just inlcuded one data to print .

Parents
  • Could you show us how do you print data ? 

    Did you tried to put some breakpoints ? 

    On which uart are you connecting esp32 did you checked pins ? 

  • no ... esp32 is sending the data via using Serial.print() .. i am not receiving it , but i can transmit data  to the esp32 using printf

  • I don`t have the code, but I think the problem is that serial.print() is connected to UART1 while printf is using UART0 which is used for console ouput and your esp32 si also connected to UART0 try switching esp32 to pins related to UART1.

  • i tried , It is not working i changed the esp32 to uart1..this is my code..it is fresh code, ble_uart example code , i didn't change anything 

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /**
    * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
    *
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without modification,
    * are permitted provided that the following conditions are met:
    *
    * 1. Redistributions of source code must retain the above copyright notice, this
    * list of conditions and the following disclaimer.
    *
    * 2. Redistributions in binary form, except as embedded into a Nordic
    * Semiconductor ASA integrated circuit in a product or a software update for
    * such product, must reproduce the above copyright notice, this list of
    * conditions and the following disclaimer in the documentation and/or other
    * materials provided with the distribution.
    *
    * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
    * contributors may be used to endorse or promote products derived from this
    * software without specific prior written permission.
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Reply
  • i tried , It is not working i changed the esp32 to uart1..this is my code..it is fresh code, ble_uart example code , i didn't change anything 

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /**
    * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
    *
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without modification,
    * are permitted provided that the following conditions are met:
    *
    * 1. Redistributions of source code must retain the above copyright notice, this
    * list of conditions and the following disclaimer.
    *
    * 2. Redistributions in binary form, except as embedded into a Nordic
    * Semiconductor ASA integrated circuit in a product or a software update for
    * such product, must reproduce the above copyright notice, this list of
    * conditions and the following disclaimer in the documentation and/or other
    * materials provided with the distribution.
    *
    * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
    * contributors may be used to endorse or promote products derived from this
    * software without specific prior written permission.
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Children