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

Putting working program from nRF51DK onto a nRF51822 on custom board

I've developed a PCB containing the nRF51822. I am trying to uploaded the example program "ble_app_uart_s110_pca10028" to it, but the chip is not broadcasting (so I assume the program isn't uploaded correctly). I have uploaded the same program to the nRF51DK (Developer Kit) and it works fine on the nRF51DK.

I'm trying to program the 51822 using the nRFDK debugging pins.

Unfortunately, the nRF51422 on the Development Kit and the nRF51822 on the custom PCB aren't pin compatible.

I've tried going into the pca10028 header file and changing the pins around. I changed all the active pins being used by the board accordingly. The only pins I need are the RX and TX pins I've set up as Pins 47 and 48.

I've tried following the instructions here : devzone.nordicsemi.com/.../

and here : devzone.nordicsemi.com/.../

Thanks, I really appreciate any help. I've been stuck on this for close to a month.

Here is the schematic: image description

Parents
  • Hi Hung,

    Unfortunately, changing the Softdevice init did not help. Do I need to select the correct Options for Target in Keil uVision?

    Right now these are my settings: Device: nRF51433_xxAC (however I tried changing this to nRF51822_xxAA but it did not help).

    Target: Xtal (MHz) -- "12.0" Operating system -- "None" ARM Compiler -- "Use default compiler version" Read/Only Memory Areas -- IROM1 (box is checked) Start-- "0x0" Size -- "0x40000" Startup (circle is checked)
    Read/Write Memory Areas -- IRAM1 (box is checked) Start -- "0x20000000" Size -- "0x8000"

    C/C++: Define: BLE_STACK_SUPPORT_REQD BOARD_PCA10028 S110 NRF51 SOFTDEVICE_PRESENT SWI_DISABLE0 One ELF Section per Function (box is checked)

    Asm: Define: BLE_STACK_SUPPORT_REQD BOARD_PCA10028 S110 NRF51 SOFTDEVICE_PRESENT SWI_DISABLE0

    Also, I cannot attach a photo on this thread, so I am not sure how to share my board schematic.

Reply
  • Hi Hung,

    Unfortunately, changing the Softdevice init did not help. Do I need to select the correct Options for Target in Keil uVision?

    Right now these are my settings: Device: nRF51433_xxAC (however I tried changing this to nRF51822_xxAA but it did not help).

    Target: Xtal (MHz) -- "12.0" Operating system -- "None" ARM Compiler -- "Use default compiler version" Read/Only Memory Areas -- IROM1 (box is checked) Start-- "0x0" Size -- "0x40000" Startup (circle is checked)
    Read/Write Memory Areas -- IRAM1 (box is checked) Start -- "0x20000000" Size -- "0x8000"

    C/C++: Define: BLE_STACK_SUPPORT_REQD BOARD_PCA10028 S110 NRF51 SOFTDEVICE_PRESENT SWI_DISABLE0 One ELF Section per Function (box is checked)

    Asm: Define: BLE_STACK_SUPPORT_REQD BOARD_PCA10028 S110 NRF51 SOFTDEVICE_PRESENT SWI_DISABLE0

    Also, I cannot attach a photo on this thread, so I am not sure how to share my board schematic.

Children
No Data
Related