j-flash arm v4.22a can identify flash id

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

  • j-flash arm v4.22a can identify flash id

    hi.

    I am currently working with a custom board built around the Am1808 microcontroller.

    external nor flash :am29lv160db.

    when I am using J-Flash ARM to detect the nor flash, but without success: at connection it says :

    [Connecting ...
    - Connecting via USB to J-Link device 0
    - J-Link firmware: V1.20 (J-Link ARM V8 compiled Dec 1 2015 11:42:48)
    - Using adaptive clocking instead of fixed JTAG speed
    - Initializing CPU core (Init sequence) ...
    - Initialized successfully
    - Using adaptive clocking instead of fixed JTAG speed
    - J-Link found 3 JTAG devices. Core ID: 0x07926001 (ARM9)
    - ERROR: Flash Id error. Expected 0x12249, found: 0xFFFFFFFF
    - ERROR: Failed to connect.

    ]

    I didnot know how to solve the problem.I can make sure that the hardware is no porblem,because I can write or read the nor flash by application code.

    my init sequence is belowing which is tanslate from my application code.

    [

    SetJTAGSpeed(0);
    Reset(0, 20); // Reset and halt target
    Write32(0x01C10A0C, 0x00000000); // configure the next state for psc0 of EMIFA
    Write32(0x01C10A0C, 0x00000003);
    Write32(0x01C10120, 0x00000001); // kick off the transition.
    Delay(200);
    Write32(0x01C14134, 0x11000000); // PINMUX_EMIFA_NOR_REG_0
    Write32(0x01C14138, 0x01000001); // PINMUX_EMIFA_NOR_REG_1
    Write32(0x01C1413C, 0x10110001); // PINMUX_EMIFA_NOR_REG_2
    Write32(0x01C14140, 0x11111111); // PINMUX_EMIFA_NOR_REG_3
    Write32(0x01C14140, 0x11111111); // PINMUX_EMIFA_NOR_REG_4
    Write32(0x01C14144, 0x11111111); // PINMUX_EMIFA_NOR_REG_5
    W rite32(0x01C14148, 0x11111111); // PINMUX_EMIFA_NOR_REG_6
    Write32(0x01C1414C, 0x11111111); // PINMUX_EMIFA_NOR_REG_7
    WriteVerify32(0x68000010, 0x3FFFFFFD); // cs2
    SetJTAGSpeed(0);

    ]

    Can you give me some help?

    Bestregards.

    qqtolm
  • Hi qqtolm,

    did you try to perform the init sequence manually from J-Link commander
    (using the w4 command) and then check if you can access the NOR flash correctly?

    If the init sequence is taken from your application and it works there, it should also work in J-Flash.
    Did you check that the Flash base address which is configured in J-Flash is also the correct one?


    Best regards
    Alex
    Images
    • FlashBaseAddr.gif

      12.61 kB, 476×500, viewed 1,386 times
    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.