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

Programming 3rd-Party nRF51822

Hello All Slight smile

Since 3 days now, I am trying to program my third party beacon board PTR9048 with the PCA10028. I'm pretty sure, that I connected it correctly, because I can program the SoftDevice on it, and can the it in nRFgo Studio as well. I tried flashing the Beacon_app_example with nRFgo Studio and in Linux via command line.. Flash executes without an error, so I guess it flashes somehow and somewhere. 

I assume, that the problem is either about memory organisation, because the nRF51822 got less RAM or it is about the pin-out of the CUSTOM-BOARD. I read something about this, but in one post there was said, that is not mandatory customizing this. And in additon I read something about crystal speed, but I do not know how to adjust this.

So concluded: Flashing Softdevice and Application works without error, I cannot see device in a Bluetooth Scan, so the example is not working.

Thanks for your help.

Parents
  • Im sorry, I really dont get the mistake fixed..

    I tried your code, it didnt compile, so I search for the definitions of the oscillators and used it like this:

    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, NULL);

    It compiles and I can flash, but it is the same as before, no errors but I cannot see the device in a bluetooth scan.

    I was using the Keil, so I will show you my settings, maybe you can see the mistake directly..

    Due to the cheap china hardware, I cannot find a good Documentation, but I guess the xtal on the board is 13,56MHz. With this setting it was not working either.

    This ist SDK10 now, with S130 v1.0.0

    Thank you for the previous help!

  • Where is the device stuck if you enter debug mode? It should be able to get past the SOFTDEVICE_HANDLER_INIT(..) with that input.

    Try running from a "clean slate", by issuing a "nrfjprog -e" from command line.

    After that, flash the softdevice ("nrfjprog --program <path/to/softdevice_s130...hex>"), then the application.

     

    Best regards,

    Håkon

Reply Children
Related