This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help running BLE APP ATT MTU THROUGHPUT example

Hi,

I am trying to replicate the "Throughput and long range demo" from devzone.nordicsemi.com/.../

I have two nRF52840 boards. I am using IAR studio. I can compile, build and run the blinky demo without any problems. However whenever I try to do anything with Bluetooth I am running into a brick wall.

First question. How do the Softdevices work. Are they something that is flashed onto the device or is it a library that is linked against during build. I have SDK 13 and I also have downloaded s140 5.0.0.3-alpha.

If I have the blinky program running and then download and run a build of a Bluetooth program then the LEDs keeping running, almost as if the board didn't get reprogrammed, but IAR says there is a debug sessions running.

Is that normal? Any clues about what I could be doing wrong?

Also, is there a way to get logging information from NRF_LOG_INFO without wiring up a serial cable? Over USB? Is that what the nRF USB port is for?

Thanks. Gary.

  • As a follow up, the heart rate demo from here www.nordicsemi.com/.../Getting-started-with-the-nRF52840-Preview-Development-Kit works perfectly with the nRF Toolbox on Android. But that is using the .hex file directly... I just tried building from source but it exceeds the 32K limit of my version of IAR... I will try to build using GCC now.

  • Follow-up (2). None of the BLE programs that I build either with IAR or with GCC work. I can build the blinky program with GCC OK and it runs. But no luck with the BLE ones.

    Also when trying to use "make flash" to download the .hex file to the board I get:

    Flashing: _build/nrf52840_xxaa.hex nrfjprog --program _build/nrf52840_xxaa.hex -f nrf52 --sectorerase ERROR: The --family option given with the command (or the default from nrfjprog.ini) ERROR: does not match the device connected.

  • Update (3) So I can now get the ble_app_hrs demo to work when building from source using S140 v5.0.0.2.alpha. However it won't build with .3.alpha, there are compile errors.

    As for the throughput tests, I still can't get those to work with .2.alpha or .3.alpha. I can get it to build under both (there are two versions of the source code, one for each version of S140) but it doesn't do anything once flash over to the board.

Related