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

unable to recognise LinkerScript symbols in the existing example code.

how to add the linkerSript memory restrictions to our existing code:-

MEMORY { FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x6000 }

and different other symbols present in nrf51_common.ld

Parents
  • Hi,

    Please find some common iRAM and iROM settings at the bottom of this blogpost.

    Best regards,

    Øyvind

  • SEGGER J-Link GDB Server V6.00f Command Line Version

    JLinkARM.dll V6.00f (DLL compiled Aug 11 2016 18:36:04)

    -----GDB Server start settings----- GDBInit file: none GDB Server Listening port: 2331 SWO raw output listening port: 2332 Terminal I/O port: 2333 Accept remote connection: localhost only Generate logfile: off Verify download: on Init regs on start: on Silent mode: off Single run mode: on Target connection timeout: 0 ms ------J-Link related settings------ J-Link Host interface: USB J-Link script: none J-Link settings file: none ------Target related settings------ Target device: nRF51422_xxAC Target interface: SWD Target interface speed: 1000kHz Target endian: little

    Connecting to J-Link... J-Link is connected. Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 5 2016 08:42:09 Hardware: V1.00 S/N: 681739782 Checking target voltage... Target voltage: 3.30 V Listening on TCP/IP port 2331 Connecting to target...Connected to target Waiting for GDB connection...Connected to 127.0.0.1 Reading all registers Read 4 bytes @ address 0x00000000 (Data = 0x000007C0) Read 2 bytes @ address 0x00000000 (Data = 0x07C0) Target interface speed set to 1000 kHz Resetting target Halting target CPU... ...Target halted (PC = 0x000006D0) R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF R12= FFFFFFFF, R13= 000007C0, MSP= 000007C0, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 000006D0 XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000 CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00 Reading all registers Read 4 bytes @ address 0x000006D0 (Data = 0x4C174916) Read 2 bytes @ address 0x000006D0 (Data = 0x4916) Select auto target interface speed (1000 kHz) Flash breakpoints enabled Semi-hosting enabled (Handle on BKPT) Semihosting I/O set to TELNET Client Read 4 bytes @ address 0x000006D0 (Data = 0x4C174916) Read 2 bytes @ address 0x000006D0 (Data = 0x4916) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x00000000) Read 2 bytes @ address 0xFFFFFFFF (Data = 0x0000) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x00000000) Read 2 bytes @ address 0xFFFFFFFF (Data = 0x0000) Resetting target Halting target CPU... ...Target halted (PC = 0x000006D0) Downloading 124 bytes @ address 0x00018000 - Verified OK Downloading 12 bytes @ address 0x0001807C - Verified OK Comparing flash [....................] Done. Erasing flash [....................] Done. Programming flash [....................] Done. Verifying flash [....................] Done. Writing register (PC = 0x00800100) Read 4 bytes @ address 0x00018000 (Data = 0x4C06B510) R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF R12= FFFFFFFF, R13= 000007C0, MSP= 000007C0, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 00018000 XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000 CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00 Reading all registers Read 4 bytes @ address 0x00018000 (Data = 0x4C06B510) Starting target CPU... ...Target halted (DBGRQ, PC = 0xFFFFFFFE) Reading all registers Read 4 bytes @ address 0xFFFFFFFE (Data = 0x049083B0) Read 2 bytes @ address 0xFFFFFFFE (Data = 0x0000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B8 (Data = 0x00000C00) Read 4 bytes @ address 0x00000C00 (Data = 0xFFFFFFFF) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0xE7F8461C (Data = 0x00000000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 2 bytes @ address 0xE7F8461C (Data = 0x0000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0xE7F8461C (Data = 0x00000000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 2 bytes @ address 0xE7F8461C (Data = 0x0000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) can u help me frome this

Reply
  • SEGGER J-Link GDB Server V6.00f Command Line Version

    JLinkARM.dll V6.00f (DLL compiled Aug 11 2016 18:36:04)

    -----GDB Server start settings----- GDBInit file: none GDB Server Listening port: 2331 SWO raw output listening port: 2332 Terminal I/O port: 2333 Accept remote connection: localhost only Generate logfile: off Verify download: on Init regs on start: on Silent mode: off Single run mode: on Target connection timeout: 0 ms ------J-Link related settings------ J-Link Host interface: USB J-Link script: none J-Link settings file: none ------Target related settings------ Target device: nRF51422_xxAC Target interface: SWD Target interface speed: 1000kHz Target endian: little

    Connecting to J-Link... J-Link is connected. Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 5 2016 08:42:09 Hardware: V1.00 S/N: 681739782 Checking target voltage... Target voltage: 3.30 V Listening on TCP/IP port 2331 Connecting to target...Connected to target Waiting for GDB connection...Connected to 127.0.0.1 Reading all registers Read 4 bytes @ address 0x00000000 (Data = 0x000007C0) Read 2 bytes @ address 0x00000000 (Data = 0x07C0) Target interface speed set to 1000 kHz Resetting target Halting target CPU... ...Target halted (PC = 0x000006D0) R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF R12= FFFFFFFF, R13= 000007C0, MSP= 000007C0, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 000006D0 XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000 CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00 Reading all registers Read 4 bytes @ address 0x000006D0 (Data = 0x4C174916) Read 2 bytes @ address 0x000006D0 (Data = 0x4916) Select auto target interface speed (1000 kHz) Flash breakpoints enabled Semi-hosting enabled (Handle on BKPT) Semihosting I/O set to TELNET Client Read 4 bytes @ address 0x000006D0 (Data = 0x4C174916) Read 2 bytes @ address 0x000006D0 (Data = 0x4916) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x00000000) Read 2 bytes @ address 0xFFFFFFFF (Data = 0x0000) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x00000000) Read 2 bytes @ address 0xFFFFFFFF (Data = 0x0000) Resetting target Halting target CPU... ...Target halted (PC = 0x000006D0) Downloading 124 bytes @ address 0x00018000 - Verified OK Downloading 12 bytes @ address 0x0001807C - Verified OK Comparing flash [....................] Done. Erasing flash [....................] Done. Programming flash [....................] Done. Verifying flash [....................] Done. Writing register (PC = 0x00800100) Read 4 bytes @ address 0x00018000 (Data = 0x4C06B510) R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF R12= FFFFFFFF, R13= 000007C0, MSP= 000007C0, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 00018000 XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000 CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00 Reading all registers Read 4 bytes @ address 0x00018000 (Data = 0x4C06B510) Starting target CPU... ...Target halted (DBGRQ, PC = 0xFFFFFFFE) Reading all registers Read 4 bytes @ address 0xFFFFFFFE (Data = 0x049083B0) Read 2 bytes @ address 0xFFFFFFFE (Data = 0x0000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B8 (Data = 0x00000C00) Read 4 bytes @ address 0x00000C00 (Data = 0xFFFFFFFF) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0xE7F8461C (Data = 0x00000000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 2 bytes @ address 0xE7F8461C (Data = 0x0000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0xE7F8461C (Data = 0x00000000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 2 bytes @ address 0xE7F8461C (Data = 0x0000) Read 4 bytes @ address 0x000007BC (Data = 0x00001000) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) Read 4 bytes @ address 0x000007B4 (Data = 0xE7F8461D) can u help me frome this

Children
No Data
Related