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
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