Device reset happening and i can't able to upload the code

Hello,

In my project i am using  nrf52840 with my custom board and to upload the code through NRF_CONNECT application with soft device its uploading properly but with  segger emmbedded its giving some error like this .please have look and let me know what is the problem.

after this i have add DEBUG in preprocessor definition and i got this

thank you.

Parents
  • Hi

    Okay, perhaps there's a conflict between the BLE UART and the MAX232 UART instances in your application? I assume the BLE UART is communicating with a COM port on the computer? If you need more UARTs you might want to move to an nRF device with multiple UART instances. Perhaps you don't need to use UART for logging, so disable UART logging so you only use the MAX232 for UART. 

    If you need both UART instances on an nRF52810 you need to enable just one at a time, and disable the MAX232 UART when using the other. 

    Best regards,

    Simon

Reply
  • Hi

    Okay, perhaps there's a conflict between the BLE UART and the MAX232 UART instances in your application? I assume the BLE UART is communicating with a COM port on the computer? If you need more UARTs you might want to move to an nRF device with multiple UART instances. Perhaps you don't need to use UART for logging, so disable UART logging so you only use the MAX232 for UART. 

    If you need both UART instances on an nRF52810 you need to enable just one at a time, and disable the MAX232 UART when using the other. 

    Best regards,

    Simon

Children
  • Hello Simnor,

    thanks for your reply,

    i am using nrf52840 so it has 2 UART'S right. here i just want to send the command data to MCU and i want receive the sensor data from the MAX232 over HW_UART so in uart_event_handler() however it going to send the received data i mean sensor data to BLE over Virtual UART right. so  can i  manage with single UART .??

    thank you.

  • Hi

    Right, I saw the tag that said 52810 (I removed it now). Well, since you're only going to use one at a time I imagine you could manage with the one UART, but you will have to disable one and enable the other every time you switch, which might cost you some time. I would recommend using both instances though if you can spare them as it's easier. Have you tried letting the two UARTs use different instances (UARTE0 and UARTE1)? 

    Best regards,

    Simon

  • Hello,

    thanks for the reply Simonr,

    I would recommend using both instances though if you can spare them as it's easier. Have you tried letting the two UARTs use different instances (UARTE0 and UARTE1)? 

    Yes, even i am also thinking the same  but i don't know how to use the  2x UART like different instances in the app_ble_uart example can you please help me to implement this. i think by default HW_UART is used in uart_init() and how to create one more uart instance please let me know.

    thank you.

Related