Seting up --> ARM LPC1768 Cortex M3 LCD Board from Steitec + J-Link EDU + SDK

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

  • Seting up --> ARM LPC1768 Cortex M3 LCD Board from Steitec + J-Link EDU + SDK

    hi,

    since a few days i try to set up a SDK to program a NXP1768 (ARM LPC1768 Cortex M3 LCD Board from Steitec )
    in combination with a J-Link EDU.
    The first test was with the open source option --> Yagrato + Eclipse
    I've done every step in the yagarto tutorial. I started a new project and imported the example LPC1768Test from the yagrato download section .


    The first thing i want do is use the debugging function in combination with the J-Link, i followed the tutorial to configure the debugger.
    At configuration point where you have to write down the Initialization Commands, I ve pasted the folowing two listings:

    ---------------------------------------
    1:
    # connect to the J-Link gdb server
    target remote localhost:2331

    # Set gdb server to little endian
    monitor endian little

    # Set JTAG speed to 1000 kHz
    monitor speed 1000

    # Reset the target
    monitor reset
    monitor sleep 100

    # Set JTAG speed in khz
    monitor speed auto

    # Vector table placed in RAM
    monitor writeu32 0xE000ED08 = 0x10000000

    2:

    monitor reg r13 = (0x10000000)
    monitor reg pc = (0x10000004)

    break ResetHandler
    break main
    continue
    ----------------------------------------

    After that i started the Segger GDB Server (I use Version 4.42a), an now all things are connected. The problem was,
    no target connected (red symbol), but i see the target voltage (3,27 V green symbol) an the Jlink was also connected (also green symbol).
    What is my mistake?
    Then i started debugging and the GDB Server connects to the target (all symbols are green), but i could not step into the code
    --> an error occures.
    "Execusion is suspended because of error" What is wrong?



    The next option I've chosen, was a trial version of IAR Embedded Workbench (btw: V 6.30.2) in combination with J-Link EDU.
    I started with a little test project for GPIO operation
    Take a look at the sourcecode...

    C Source Code

    1. #include "lpc17xx.h"
    2. #include "type.h"
    3. int main (void)
    4. {
    5. uint32_t i, j;
    6. SystemInit();
    7. //LED = P2[0..7]
    8. LPC_PINCON->PINSEL4 &= ~(0xFFFF); // Reset P2[0..7] = GPIO
    9. LPC_GPIO2->FIODIR |= 0xFF; // P2[0..7] = Outputs
    10. LPC_GPIO2->FIOCLR = 0xFF; // Turn-OFF all LED
    11. //Loop LED Test
    12. while(1)
    13. {
    14. for(i = 0; i < 8; i++)
    15. {
    16. LPC_GPIO2->FIOSET = 1 << i;
    17. for(j = 1000000; j > 0; j--);
    18. }
    19. LPC_GPIO2->FIOCLR = 0x000000FF;
    20. for(j = 1000000; j > 0; j--);
    21. }
    22. }
    Display All


    I got errors in the lines where the pins are reseted an set as output. "identifier LPC_OINCON is undefined",
    okay, those definition would probably be defined in th header-file!?
    Where do i get such headers, from NXP,or is it a part of the IAR workbench or the toolchain?
    And how could i add it to the project?

    Could i set the port directly, without any definition?
    Like you can do it with AVRs, like this
    PORT2 |= 0xFF; ???

    The last thing i did, was to install a trial version of Keil u Vision,
    i started a new project ...again and build it and all went well until i press the load button, then an error occures

    here is the log file:


    JLink info:
    -----------
    DLL: V4.08b, compiled Jun 30 2009 19:10:31

    Firmware: J-Link ARM V8 compiled Feb 8 2012 14:30:39

    Hardware: V8.00
    S/N : 268002467

    OEM : SEGGER-EDU

    Feature(s) : FlashBP, GDB
    ---

    * JLink
    Info: TotalIRLen = 4, IRPrint = 0x01
    *
    JLink Info: Found Cortex-M3 r2p0, Little endian.
    *
    JLink Info: TPIU fitted.
    *
    JLink Info: ETM fitted.
    *
    JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
    ***
    JLink Error: Unknown OEM - Please obtain an updated version of the JLinkARM.dll from segger.com


    so far thats it. I would be very happy if you could help me in this case(s).
    It would be very nice when you could help me fix one of these problems,
    so that i can start programming.

    with best thanks,
    sven