[ANSWERED / SOLVED]GDB Init Question

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ANSWERED / SOLVED]GDB Init Question

    I'm using the J-Link USB tool with an LPC2129. I'm usng the sample generic LPC2xxx_FLASH_JLink.gdb file to initialize the GDB Server (below).

    I changed the device to LPC2129.

    I'm not sure what the following line is doing. Should I change this to match the memory in the LPC2129?

    # Map at the first 64 bytes the internal flash
    monitor long 0xE01FC040 = 0x00000001


    Brainfuck Source Code

    1. #File : LPC2xxx_FLASH_JLink.gdb
    2. #Purpose: GDB command file for NXP LPC2xxx series +
    3. # J-Link (J-Link GDB Server)
    4. # FLASH is mapped at 0x00000000
    5. #-------- END-OF-HEADER -----------------------------------------------
    6. #
    7. # Connect to the J-Link gdb server
    8. target remote localhost:2331
    9. # Select flash device
    10. monitor flash device = LPC2129
    11. # Enable FlashDL and FlashBPs
    12. monitor flash download = 1
    13. monitor flash breakpoints = 1
    14. # Set gdb server to little endian
    15. monitor endian little
    16. # Set speed to JTAG speed adaptive
    17. monitor speed adaptive
    18. # Reset the target
    19. monitor reset 0
    20. # Map at the first 64 bytes the internal flash
    21. monitor long 0xE01FC040 = 0x00000001
    22. break main
    23. load
    24. continue
    Display All
  • Hello freddie,

    for clarification what this line does:
    >>MEMORY MAPPING CONTROL
    >>>>The Memory Mapping Control alters the mapping of the interrupt vectors that appear beginning at address 0x00000000. This
    >>allows code running in different memory spaces to have control of the interrupts.
    >>Memory Mapping Control Register (MEMMAP - 0xE01FC040)

    The memmap register is described in LPC2119/2129/2194/2292/2294 USER MANUAL
    in chapter "System control block -> Memory mapping control"

    Short: For your case this works.


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.