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

Issue in configuration of Button in NRF51822 board

Hello All,

I am working on the NRF51822 custom board.

I am Using the SDK 12.3 with s130 (PCA10028)

1.) Is it right sdk for nrf51822..?

2.) Facing issue in configuration in button after changing pins configuration w.r.t schematic in pca10028.h file.

Attaching the pca10028.h and schematic.

Please check and give your inputs.

1.schematic

SCH-W912N - 副本.pdf

2. pca10028.h

pca10028.h




Thanks,

Rohit

  • Hi Rohit

    Did you follow our SEGGER Embedded Studios import guide? Please check it out and see if you missed any of the steps to import a Keil project to SES.

    Best regards,

    Simon

  • Hello Simonr,

    I have gone through that link given by you and as per that i have followed the procedure and the migrated the one of the project.

    But still i am facing issue as below

    I have wanted to ask about the flash_placement.xml .

    I have to locate this file in c drive in segger ide folder or we have locate that in project folder ?
    I am not getting the what is the issue.
    Please check the attached file and give you inputs.


    this is my .xml file..from the project folder

    <!DOCTYPE Linker_Placement_File>
    <Root name="Flash Section Placement">
    	<MemorySegment name="$(FLASH_NAME:FLASH)">
        		<ProgramSection alignment="0x100" load="Yes" name=".vectors" 
        		<ProgramSection alignment="4" load="Yes" name="fs_data" />
        		<ProgramSection alignment="4" los" name=".init" />
      start="$(FLASH_START:)" />
        <ProgramSection alignment="4" load="Yes" name=".init" />
        <ProgramSection alignment="4" load="Yes" name=".init_rodata" />
        <ProgramSection alignment="4" load="Yes" name=".text" />
        <ProgramSection alignment="4" load="Yes" name=".dtors" />
        <ProgramSection alignment="4" load="Yes" name=".ctors" />
        <ProgramSection alignment="4" load="Yes" name=".rodata" />
        <ProgramSection alignment="4" load="Yes" name=".ARM.exidx" address_symbol="__exidx_start" end_symbol="__exidx_end" />
        <ProgramSection alignment="4" load="Yes" runin=".fast_run" name=".fast" />
        <ProgramSection alignment="4" load="Yes" runin=".data_run" name=".data" />
        <ProgramSection alignment="4" load="Yes" runin=".tdata_run" name=".tdata" />
        <ProgramSection alignment="4" keep="Yes" load="Yes" runin=".fs_data_run" name=".fs_data" />
      </MemorySegment>
      <MemorySegment name="$(RAM_NAME:RAM);SRAM">
        <ProgramSection alignment="0x100" load="No" name=".vectors_ram" start="$(RAM_START:$(SRAM_START:))" />
        <ProgramSection alignment="4" load="No" name=".fast_run" />
        <ProgramSection alignment="4" load="No" name=".data_run" />
        <ProgramSection alignment="4" load="No" name=".tdata_run" />
        <ProgramSection alignment="4" load="No" keep="Yes" name=".fs_data_run" address_symbol="__start_fs_data" end_symbol="__stop_fs_data" />
        <ProgramSection alignment="4" load="No" name=".bss" />
        <ProgramSection alignment="4" load="No" name=".tbss" />
        <ProgramSection alignment="4" load="No" name=".non_init" />
        <ProgramSection alignment="4" size="__HEAPSIZE__" load="No" name=".heap" />
        <ProgramSection alignment="8" size="__STACKSIZE__" load="No" place_from_segment_end="Yes" name=".stack" />
        <ProgramSection alignment="8" size="__STACKSIZE_PROCESS__" load="No" name=".stack_process" />
      </MemorySegment>
      <MemorySegment name="$(FLASH2_NAME:FLASH2)">
        <ProgramSection alignment="4" load="Yes" name=".text2" />
        <ProgramSection alignment="4" load="Yes" name=".rodata2" />
        <ProgramSection alignment="4" load="Yes" runin=".data2_run" name=".data2" />
      </MemorySegment>
      <MemorySegment name="$(RAM2_NAME:RAM2)">
        <ProgramSection alignment="4" load="No" name=".data2_run" />
        <ProgramSection alignment="4" load="No" name=".bss2" />
      </MemorySegment>
    </Root>

    Waiting for your reply,

    Thanks,

    Rohit

  • Thie flash_placement.xml file should be located in the same folder as the .emproject file of your project, and it should be sufficient to keep flash_placement.xml in Section Placement File in options.

    Have you configured the Flash and RAM addresses correctly according to what SoftDevice version you're using? You can find a guide on how to do that here.

    Best regards,

    Simon

  • I have gone through this link and i have set accordingly.

    But still same issue is there

    Waiting for your reply.

    Regards,

    Rohit

  • Please see this link for a very detailed explanation on how to let SES make the .ld files you need. 

    Best regards,

    Simon

Related