MCU was reset from time to time

HI,

I have a product which scan for RFID card through NFC and Mobile Device through BLE after nRF52840 MCU was wakeup.

If I scan NFC and BLE scanning separately, everything was OK.

But, If I start BLE scanning first, do connect-discovery-exchange data in the event handle, then in a loop, I scan NFC for RFID card and check BLE state, nRF52840 will be reset from time to time.

May I scan NFC and BLE at same time, if yes, how to do it ?

Thanks,

Mark,

Parents
  • Hi Mark,

    Could you provide more informaiton about your program?

    Like which SDK are you using, nRF5 SDK or NCS? which specific version?

    It would be great if you can share a minimal sample that can reproduce this issue.

    Best regards,

    Charlie

  • HI, Charlie:

      I use ncs v2.3.0

     I used below loop to scan MobileID with BLE and RFID card with NFC:

    scanStart();
    while(1) {
    if(gBleState == Ble_Nothing) {
    gBleSequence = 1;
    bMobileIDReady = false;
    scanStart();
    }

    if((scanCard() > 0) || (bMobileIDReady == true)) {
    if(gBleState == Ble_Scanning) {
    scanStop();
    } else if((gBleState == Ble_Connected) || (gBleState == Ble_Discoveried)) {
    disconnect_from_mobile();
    }

    Delay_ms(100);
    ConfirmationBeep();

    if(gBleState == Ble_Completed) gBleState = Ble_Nothing;
    }

    During scan MobileID with BLE, I used as Central from the sample central_uart.

    Mark,

Reply
  • HI, Charlie:

      I use ncs v2.3.0

     I used below loop to scan MobileID with BLE and RFID card with NFC:

    scanStart();
    while(1) {
    if(gBleState == Ble_Nothing) {
    gBleSequence = 1;
    bMobileIDReady = false;
    scanStart();
    }

    if((scanCard() > 0) || (bMobileIDReady == true)) {
    if(gBleState == Ble_Scanning) {
    scanStop();
    } else if((gBleState == Ble_Connected) || (gBleState == Ble_Discoveried)) {
    disconnect_from_mobile();
    }

    Delay_ms(100);
    ConfirmationBeep();

    if(gBleState == Ble_Completed) gBleState = Ble_Nothing;
    }

    During scan MobileID with BLE, I used as Central from the sample central_uart.

    Mark,

Children
No Data
Related