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

Unable to run "BLE Blinky" on an Fanstel BM832A but can run non-BLE examples

I'm sure the mistake is mine but I would appreciate some suggestions on where to look for my mistake.

I have a custom board with a Fanstel BM832A module.  I also have an NRF52 dev kit for comparison.

I can run basic non-bluetooth peripheral code on the board so I know I have good SWD programming.

I am starting from the example at nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_blinky\pca10040e\s112\armgcc.  I am using the same version of GCC as that version of the SDK's makefile specifies.

Building that example runs exactly as expected on the NRF52.  I can change the name of the device and interact with it over bluetooth.

However, I am so far unable to successfully modify the makefile to run on my "real" NRF52810.

Here's what I have tried without luck:

  1. Defined a custom board.  I could have button and LED pins wrong but I can't see anything on BLE so I don't think a mistake here would explain that.
  2. Removed "CFLAGS += -DDEVELOP_IN_NRF52832" (and the same ASMFLAGS)
  3. Removed "CFLAGS += -DNRF52_PAN_74" (and the same ASMFLAGS)
  4. Removed "CFLAGS += -DNRFX_COREDEP_DELAY_US_LOOP_CYCLES=3" (and the same ASMFLAGS)

execute make, make flash, make flash_softdevice and I see nothing on BLE.  

Any suggestions of what to try next?  

Thank you,

David

  • I attempted the steps outlined by HMolesworth without success.  Of course I am not confident that I am starting the clock correctly.

    I still would like an answer to this if possible but this task has become a much lower priority.  Nordic feel free to close this ticket unanswered if you need to and I will post a revised version when I get bandwidth again.

    That said, if anyone has a recipe for a simple BLE example running on the Fanstel BM832a, I would be most grateful.

    David

  • Hi David,

    I looks like you have already performed the necessary steps to convert the project to run on an actual 52810 target with the internal RC clock. Other things that might potentially cause issues is the pinout used by the example as it is configured to run on a Nordic dev kit by default.

    Attached below is a modified example I made that you can test if you have time. I disabled all GPIO configurations in this project, including configuration of the reset pin and UART pins.

    Pre-programmed hex file of application + Softdevice. Command if programming it with nrfjprog : nrfjprog --program nrf52810_xxaa_with_softdevice.hex --chiperase -r

    nrf52810_xxaa_with_softdevice.hex

    Makefile project. Extract and move to nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ before building.

    ble_app_blinky_fanstel.zip

    Best regards,

    Vidar

  • That worked.  Both the Hex file and building from source.  Thank you.  I will examine the source and makefile and find my mistake.

Related