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

PCA10000 and SDK 11

I'm trying to build the blinky example in SDK 11 and load it onto a PCA10000. I'm using the make file in PCA10031/blank/armgcc and am building this under linux. If I use blinky_blank_pca10031.hex which is in the hex directory, then I can load and run this using JLinkExe. Can anybody help explain what I am doing wrong. Thanks

Parents
  • All SDK examples from SDK 7.x.x and later are by default configured for the xxAC variant which has 32K of RAM instead of 16K. So since you are working on a 16K RAM variant you need to adjust the linker settings accordingly if you haven't done so already?

    E.g., correct settings for the \nRF5_SDK_11.0.0\examples\peripheral\blinky\pca10028\blank\armgcc example:

    /* Linker script to configure memory regions. */
    
    SEARCH_DIR(.)GROUP(-lgcc -lc -lnosys)
    
    MEMORY{
    
    FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x40000
    
    RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000  //changed from 0x8000
    
    }
    
    SECTIONS{
    
    .fs_data : { PROVIDE(__start_fs_data = .);
    
    KEEP(*(.fs_data)) PROVIDE(__stop_fs_data = .);
    
    } > RAM} INSERT AFTER .data;
    
    INCLUDE "nrf5x_common.ld"
    
Reply
  • All SDK examples from SDK 7.x.x and later are by default configured for the xxAC variant which has 32K of RAM instead of 16K. So since you are working on a 16K RAM variant you need to adjust the linker settings accordingly if you haven't done so already?

    E.g., correct settings for the \nRF5_SDK_11.0.0\examples\peripheral\blinky\pca10028\blank\armgcc example:

    /* Linker script to configure memory regions. */
    
    SEARCH_DIR(.)GROUP(-lgcc -lc -lnosys)
    
    MEMORY{
    
    FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x40000
    
    RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000  //changed from 0x8000
    
    }
    
    SECTIONS{
    
    .fs_data : { PROVIDE(__start_fs_data = .);
    
    KEEP(*(.fs_data)) PROVIDE(__stop_fs_data = .);
    
    } > RAM} INSERT AFTER .data;
    
    INCLUDE "nrf5x_common.ld"
    
Children
No Data
Related