Acknowledged
CIQQA-3073

NordicThingy52 sample app crashes on Mac

- SDK 8.1.0

- Apple M1 Max

- macOS 14.5

I don't know exactly where it crashes, except it's somewhere after the following line:

//! Register the bluetooth profile
public function registerProfiles() as Void {
    System.println("before"); // added for debugging
    BluetoothLowEnergy.registerProfile(_envProfileDef); // <========== this line does *not* crash
    System.println("after"); // added for debugging
}

Both "before" and "after" are printed to the console. So I don't think it's exactly the same as this previously reported bug: https://forums.garmin.com/developer/connect-iq/i/bug-reports/bluetoothlowenergy-registerprofile-crashes-simulator-with-segmentation-fault-on-mac-m1-max

I am guessing it does have something to do with BLE tho. The app does run for a few seconds before it crashes, so it might have something to do with gathering scan results.

  • The mac shouldn't crash without the Nordic HW, but needing specific HW with the sim isn't odd (the dongle is $15US).  You need a specific ANT stick for ANT too.

  • Heard from a friend the other day with a mac, who was trying to use the sim with some code I sent him.  The sim was crashing.

    He didn't have the Nordic HW for the sim.

    He ordered a nfr52840 dongle, and no more crashes once he set it up

  • Note: I don't have any of the following things: nRF52 dev kit, nRF52840 dongle, or ANT+ USB stick

  • jim_m_58 posted:

    To use BLE in the sim, you need the nRF52 DK or nRF52840 dongle and a specific hex file flashed to it.  As far as a mac, if you try to use BLE without the needed HW, it will crash,  Heard that from a friend the other day.  He got the dongle and no crash.

    If true, it raises the questions:

    - is it possible for the sim to display an error message in this case instead of crashing?

    - why can't the sim also use "standard" BLE functionality in Windows or Mac (as opposed to requiring specific hardware)? It seems that other hardware supports ANT as well as BLE, but perhaps devs would like to test BLE functionality without buying additional hardware?