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

ble RAYTAC module unable to broadcasting

image description(/attachment/0d25096700c25ba2997c4e5d2bf6fc04)(/attachment/f1e5e26eab581ef6f9faf8ff042f083f)(/attachment/3b9572cb2963b658426ea8d53a490b7e)nrfgo_studio_screenshot.PNG(/attachment/6477c26e4f1d390dd59b24a7f73d1609)(/attachment/d4666a763cd86670f6dae420f14c10ee)nrf_screenshot.PNGHello all,

I am working on Raytac MDBT40 module and programming it with external J-link segger . when i program it with normal blinky code(blank) its working fine i can see LED toggle. but when program it with the BLE examples

(E:\Nordic\NRF51_SDK_JLINK\nRF5_SDK_12.3.0_d7731ad(1)\nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_uart\pca10028\s130\arm5_no_packs) 

nothing is broadcasting in my smartphone , i am using "nRF5_SDK_12.3.0_d7731" i tried programming softdevice

(E:\Nordic\Nrf51DK\nRF5_SDK_12.3.0_d7731ad(\nRF5_SDK_12.3.0_d7731ad\components\softdevice\s130\hex)

also but nothing is advertising. btwn i have connected external 32,768kHz . i gone through other related posts and tried the things but nothing working,

Any suggestions

  • Could you please describe step-by-step how you have connected everything, and what you do when programming the softdevice and application code?

  • hello sir,

    nrf51DK my setup is like

    VnRF: connected to VDD on target board that is self-powered with ~3V

    VDD: shorted with VTG

    VTG: shorted with VDD

    SWDIO: to SWDIO on target chip

    SWDCLK: to SWDCLK on target chip

    SWO: not used

    RESET: not used

    GND DETECT: GND on target board | GND on nRF51-DK .

    I can see target custom board in nrfg0 studio i.e nrf51822_QFAA

    . Programming steps are as below,

    1. Erased the board completely via nrfgo studio and programmed softdevice via nrfgo studio its programmed successfully. my softdevice path(E:\Nordic\Nrf51DK\nRF5_SDK_12.3.0_d7731ad(\nRF5_SDK_12.3.0_d7731ad\components\softdevice\s130\hex).

    2. then i tried programming application program via keil IDE but it gave me error like Flash download failed - "Cortex-M0" . may be because of existence softdevice.

    3. then i erased board via nrfgo studio and programmed the application(BLE_UART) i.e ".hex" file via nrfgo studio only its programmed successfully . now i opened the nRF_UART app in smart phone nothing is advertising. (but it will advertise when i repeat the same steps with nRF51DK)

    4. the again i erased my custom boardl and tried programming the application program i.e BLE_UART via KEIL now its programmed successfully but still nothing is advertising in my Application.

    So i purchased one new J-link EDU segger started programming the custom with above steps but result is same nothing advertising.

    I am trying it from last one but no positive results please help.

  • You say you program the application hex via nRFgo studio, after you have erased it. Is this with or without the Softdevice programmed? Without the Softdevice it will not advertise as it does not have the BLE stack.

    I would like you to try to merge the hex files. Copy both the Softdevice hex file, and the application hex file you want to program into the same folder, then using command console merge the hex files using mergehex.

    So if the Softdevice hex is called "Softdevice.hex", and the application code is called "app.hex", write

    mergehex –m Softdevice.hex app.hex –o output.hex
    

    Then try and flash the output.hex hexfile to your board.

    Best regards

    Jørn Frøysa

  • hello sir ,

    hello sir,

    thanks for your information, sir below is the path of my softdevice which i am flashing into my nrf51822 custom board is dat the coorrect softdevice? please advise i think iam using soft device of nrf51422 correct?

    nRF5_SDK_12.3.0_d7731ad\nRF5_SDK_12.3.0_d7731ad\components\softdevice\s130\hex

    if its wrong can you please send me coorrect link of nrf51822 softdevice?

    also please advise how to program both Softdevice hex file, and the application hex files using nrfgo sudio? as i am not aware of command console.

  • and also now when i short the vtg and vdd while programming nrfgo studio is not working it hangs . but if remove the short and connect it works fine but it shows nrf51422 as target not the nrf51822(custom board)

Related