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

BLE _becam can not probably upload application.hex while softdevice is uploaded

Hi I know i have just asked this question 2 days ago. and it works 2 days ago.

Thanks to Terje Schjelderup, he solved my last similar question, and kindly reply my problem. and it was solve

BUT my because my boss borrow my working notebook computer (computer A) to the show for a whille,

so I have to install everything, in my personal notebook computer (computer B) download Keil. 5.. Master control pannel, nRFGo, Jlinker, nrfsdk, packages......

computer A is in win8 , Keil 5 version MDK522

computer B is in win10, Keil 5 version MDK-523

Evaluation board is NRF52 #PCA10400 SDK is nRF5_SDK_12.2.0_f012efa

softdevice hex file I use for upload, is under this directry

nRF5_SDK_12.2.0_f012efa\components\softdevice\s132\hex\s132_nrf52_3.0.0_softdevice.hex

application hex file I use, is under this directry after build ofcourse

...ble_peripheral\ble_app_beacon\pca10040\s132\arm5\_build\nrf52832_xxaa_s132.hex

basically after I installed everthing, it's not function right, in computerB

I mean, In computer B i am not able to use ble_app_becam example to work right i will describe. Computer A works fine, as Terje Schjelderup has helped me in previous quesiton.

AND THE FOLLOWING TRIES ARE ALL IN COMPUTER B.

Try0: blinks works ofcourse!!!!by keil, or by nrfgo, or drag in the hex file directly. all works!!

TRY1:
after press "ERASE ALL", While nrf52 board dont have "SoftDevice" and "Application". I mean when my nrf52 board is clean.

I CAN DOWNLAOD "APPLICATION.HEX" ALONE, either by "Keil download buttom(F8)"
or by nrfGo "Program Application" option.

IT CAN DOWNLOAD "BLE_APP_BECAM" APPLICATION HEX FILE FINE!! BUT AFTER APPLICATION HEX FILE IS DOWNLOADED INTO NRF52 BOARD. THEN SOFTDEVICE HEX FILE NOT ABLE TO UPLOAD.

TRY 2: I know the correct upload order should be 1st "erase all".

2nd "Program SoftDevice"

3rd 3_A:"Program Application" or 3_B "Keil download buttom (F8)"

But!!!! AFTER I DOWNLOAD THE SOFTDEVICE HEX FILE INTO NRF52 BOARD.... IF I TRY using only in nrfGO

3_A:"Program Application" to upload application hex file into nrf52 THEN nrfGO shows me this error message


Application C:/....ble_peripheral\ble_app_beacon\pca10040\s132\arm5\_build\nrf52832_xxaa_s132.hex
programming failed:
This hex file has data in SoftDevice region. Try programming using "SoftDevice", or erase all before programming.

and if I try using keil after Softdevice hex is downlaoded.

3_B "Keil download buttom (F8)" to upload application hex file into nrf52 THEN keil shows me this error message


Error: Flash Downlaod failed- "Cortex-M4"

it's wired, when using Keil to upload application, if SoftDevice hex is not uploaded. Keil can upload application without error message. But if SoftDevice is uploaded. Keil show this error message.

and basically i am stuck here....

Try 3: YES I know there is a very very very easy way to make ble_app_becam all works.... just use the "SD.hex and APP.hex Merge file"

....\nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ble_app_beacon\hex\ble_app_beacon_pca10040_s132.hex

and drag into nrf52 board, or upload as application hex file then it works fine!!

but this is way, i cant not learn or modify the code from examples. that's not my question.

basically that's all what i have done. but still struggle

i even try SD132 v 2.01, SD132 V3
and both are not working....

and please help!!!

IN SHORT face this problem how can i upload "softdevie hex" and upload "application hex" either by keil or by nrfGo and can make the ble_app_becom examples works!! thanks for kindly reply

God bless

  • It sounds like there are something wrong with the RAM and ROM settings in your project. Have you changed these? Could you try with another example from the SDK or extract a fresh copy of the zip file and try this?

  • Thanks Jørgen Holmefjord I think i figure out how to solve this question. My careless mistake.

    I use nrf SDK 12.2.zip downloaded from nordic website. But in Keil u5, I use package => example => ble_app_becam => copy examples to open....

    1st i didnt know that under Keil/ Arm/package forlder, there is already a SDK, which is differnt then SDK12.2 .

    2nd so sine the "keil => package => copied Ble_app_becom project" is differnt than i download directly from nordic website, so i mess them up.

    3rd so when i was trying to figure out what's wrong.

    I tried use "Keil =>package=> copy to open" and aslo

    I tired use "projecct =>open project => sdk12.2/...../ble_app_becom/.....

    so while I was doing these 2 things, the Keil keep asking me i need

    to download nordic DeviceFamilyPack "8.1.1" ...... and sometimes ask me to downlaod nordic DevicceFAmiPack "8.3.1" ....

    so in short

    I think my problem is that
    directly download from nordic offical site sdk nrfxxxxxx-sdk12.2.zip, the setting and SDvice file

    is different than Keil u5 package installer process.

    and i am too dumb to notice this differnt.... it's my careless newb fault...

    anyway

    Thanks Jørgen Holmefjord , Thanks Terje Schjelderup I wish i know how to pronounce your Norwegian name.

    And thanks Nordic Engineer Team, You guys are awsome!!

  • Thanks Jørgen Holmefjord I think i figure out how to solve this question. My careless mistake.

    I use nrf SDK 12.2.zip downloaded from nordic website. But in Keil u5, I use package => example => ble_app_becam => copy examples to open....

    1st i didnt know that under Keil/ Arm/package forlder, there is already a SDK, which is differnt then SDK12.2 .

    2nd so sine the "keil => package => copied Ble_app_becom project" is differnt than i download directly from nordic website, so i mess them up.

    3rd so when i was trying to figure out what's wrong.

    I tried use "Keil =>package=> copy to open" and aslo

    I tired use "projecct =>open project => sdk12.2/...../ble_app_becom/.....

    so while I was doing these 2 things, the Keil keep asking me i need

    to download nordic DeviceFamilyPack "8.1.1" ...... and sometimes ask me to downlaod nordic DevicceFAmiPack "8.3.1" ....

    so in short

    I think my problem is that
    directly download from nordic offical site sdk nrfxxxxxx-sdk12.2.zip, the setting and SDvice file

    is different than Keil u5 package installer process.

    and i am too dumb to notice this differnt.... it's my careless newb fault...

    anyway

    Thanks Jørgen Holmefjord , Thanks Terje Schjelderup I wish i know how to pronounce your Norwegian name.

    And thanks Nordic Engineer Team, You guys are awsome!!

  • You should open the examples directly from the SDK folders, as described in the getting started guide. CMSIS pack support was depreated some time ago, so the examples you find in the package manager is created for an old SDK and softdevice version.

Related