[SOLVED]J-Link EDU / Flash download

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

  • [SOLVED]J-Link EDU / Flash download

    Hi all,

    I'm unable to write my the internal Flash of my LPC2378 controller. I tried that from JLink Commander with version 4.36g and version 4.34d (see code section below).
    It does not give me any error, but when I read back my controller memory it is still blank. However I'm able to flash my controller via serial cable (ISP) and a cheap Olimex JTAG.

    Do I need an additional license for flash download?


    SEGGER J-Link Commander V4.34d ('?' for help)
    Compiled Sep 13 2011 17:28:52
    DLL version V4.34d, compiled Sep 13 2011 17:28:37
    Firmware: J-Link ARM V8 compiled Sep 6 2011 16:33:14
    Hardware: V8.00
    S/N: 268001983
    OEM: SEGGER-EDU
    Feature(s): FlashBP, GDB
    VTarget = 3.300V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Found 1 JTAG device, Total IRLen = 4:
    #0 Id: 0x4F1F0F0F, IRLen: 04, IRPrint: 0x1, ARM7TDMI-S Core
    Found ARM with core Id 0x4F1F0F0F (ARM7)
    ETM V1.2: 1 pairs addr.comp, 0 data comp, 4 MM decs, 1 counters
    JTAG speed: 100 kHz
    J-Link>loadbin C:\Projekte\lpc2378\Debug\lpc2378.bin
    J-Link>loadbin C:\Projekte\lpc2378\Debug\lpc2378.bin 0
    Loading binary file... [C:\Projekte\lpc2378\Debug\lpc2378.bin]
    Writing bin data into target memory @ 0x00000000.
    J-Link>
  • Hi,

    Did you give the "search" functionality of the forum a chance?
    This is not the first time that this question is asked here. It is also explained in the user manual UM08001 of V4.36g how to use flash download via J-Link Commander:
    Command sequence:

    exec device = LPC2378
    h
    loadbin C:\..., 0


    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.
  • I should have been more specific on what I already tried.

    I already tried the procedure you described and which is stated in the manual. In my last setup I enabled the device select override, so it made it look like I forgot about that.

    To be specific, I tried it both with device select override and the method you described.

    I also tried via GDB without luck, and of course I double checked the jumper settings on my board too. It's a Olimex LPC-2378-STK.

    I discovered another strange thing recently, it seems that the reading from JMem and the FlashMagic Tool differ for a fresh erased device (see attached screenshot).

    Edit:
    Easy Explanation of the phenomena, just forgot to pull out the jumpers for the ISP programming. So I guess this was just the signal to stop working for today... :)
    Images
    • screen1.PNG

      93.55 kB, 1,050×335, viewed 827 times

    The post was edited 1 time, last by daFritz84 ().

  • so back again. For some reason after all the fuzz it works now.

    I did a clean reinstall of the J-Link software and after reflashing the latest device firmware it kust worked.


    But still some small problem, I want to integrate the J-Link with CodeSourcery IDE. But I'm unable to point their Segger interface implementation to set the right device.
    Any hints there?

    PS: Since my last issue seems not J-Link dependent I would appreciate if someone could mark this thread as solved.