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

Running BLE example using Segger Embedded Studio

@Michael Dietz

Hi Michael! I am not sure what happened to my last question regarding the BLE example using Segger Embedded Studio. It is no longer visible in the post comments.

I have now added the preprocessor definitions you mentioned. I am installing Keil on my Windows PC to check the definitions as well.

One other thing I noticed is that when I import the Blinky example into SES only one project is created in the Project Explorer, but when I import the ble_app_hrs_s132_pca10040 example two apparently identical folders are created...

Is that correct?

I have now tried to delete one of the folders and add/change everything as we have discussed and now I am able to compile and run the code.

When I open the nRF Toolbox App on the HRM screen the device is not visible though. I have downloaded and verified the s132 softdevice.

If I try to start a debug session I get a 'stopped by vector catch' error (0x7bc 4B01 ldr r3, 0x000007C4).

What can cause this issue?

Parents
  • Hi

    I've been working since yesterday with the nRF52 (PCA10040) on my Mac. I've followed this tutorial; devzone.nordicsemi.com/.../

    The blinky-program is working but when I tried the ble_peripheral/ble_app_beacon/pca10040/s132/arm5_no_packs project file. But i'm also getting the same error as the TS:

    Unknown function at 0x000009D4
    

    First i had flashed the softDevice (s132_nrf52_2.0.0-7.alpha_softdevice.hex) with

    jLinkExe -device nrf52
    

    I've changed the Memory Map Macro's:

    FLASH_START=0x1b000
    FLASH_SIZE=0x65000
    SRAM_START=0x20000000
    SRAM_SIZE=0x8000
    

    I've also tried this step:

    In "Linker Options" you will need to set the "Section Placement File" as $(StudioDir)/targets/Cortex_M/flash_placement.xml.

    But this causes an error;

    cyclic memory section dependency with section .fast_run
    

    I also tried using the emPackage but that doesn't really changed something...

    I hope somebody can help me with my problem. (And maybe it's not related to the TS post?)

  • Mats:

    Your SRAM_START should be 0x20001F00 and size should be 0x6500. But please see the blog post I updated it to use the softdevice. You will want to set the memroy map macros back to the full memory map size and start addresses and set aside room for softdevice in the flash placement file as i describe in the blog post. Do not use the nRF package for now.

Reply Children
No Data
Related