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

Correct settings for nRF51822 CEAAE0 (0x0079) with dfu example in SDK v11

What's the correct settings for nRF51822 CEAAE0 (0x0079) with dfu example in SDK v11 ? I believe the chip I am using is a 16KB ram 256KB rom version, but not sure 51422 or 51822 as the manufacture did a LGA soc which integrated crystals and other dc-dc circuts inside.

I am using the example in nRF5_SDK_11.0.0_89a8197\examples\dfu\bootloader\pca10028\dual_bank_serial_s130

My environment is set to use uvision5. I tried to modify the settings as below:

  1. Device tab, the device chosen nRF51822_xxAA
  2. Target tab, Xtal 16.0MHz [yes] IROM1 0x3C000 0x3C00 (yes) [yes] IRAM1 0x20002C00 0x1380 [no] [yes] IRAM2 0x20003F80 0x80 [yes]

I am sure the dfu bootloader is working on nRF51-DK

Parents
  • Yes, the nRF51822 CEAAE0 has 256kB Flash and 16 kB RAM, so the only change you should have to do is to modify the RAM1 and RAM 2 size in the bootloader example, i.e.

    IROM1 0x3C000 0x3C00 
    IRAM1 0x20002C00 0x1380
    IRAM2 0x20003F80 0x80 
    

    Which nRF51822 module are you using? Do you know if it has an external 32kHz crystal in addition to the 16MHz crystal? If it does not then you have to modify the NRF_CLOCK_LFCLKSRC in ble_stack_init() so that it uses the internal LF RC clock instead, i.e.

    #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            \
                                 .rc_ctiv       = 16,                                \
                                 .rc_temp_ctiv  = 2,                                \
                                 .xtal_accuracy = 0}
    

    Best regards

    Bjørn

  • If this configuration works, then it means that you must have a 32kB RAM variant of the Insight. However, you should be able to run the bootloader with the 16kB RAM configuration on a 32kB RAM, but not vice versa of course :)

Reply Children
No Data
Related