Sunday, February 18th 2018, 5:42am UTC+1

You are not logged in.

  • Login
  • Register

dahli.llama

Beginner

Date of registration: Dec 4th 2007

Posts: 2

1

Tuesday, December 4th 2007, 9:34pm

Programming External Flash with J-Link Flash ARM (AT29LV040A and LPC2294)

Hello,

I have a project that is using a LPC2294 microcontroller as well as four AT29LV040A external memory chips. I have been using Rowley CrossStudio with a J-Link adapter to program the chips, but I'd like to use the J-Link ARm Flash programmer in the future. I've been trying to get this to work, but I haven't had much luck.

I set the project to the LPC2294_PhyCORE project that uses external flash, and then changed the external flash to the AT29LV040A chips. When I try to connect, though, I get the following error:

Source code

1
2
3
4
5
6
7
8
9
10
 - Connecting via USB to J-Link device 0 
- J-Link firmware: V1.20 (J-Link ARM V6 compiled Aug 28 2007 19:22:02) 
- 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 1 JTAG device. Core ID: 0x4F1F0F0F (ARM7) 
- ERROR: Identify: Unsupported flash type / bus width (140800). Please contact info@segger.com 
- ERROR: Unable to identify Flash 
- ERROR: Failed to connect


One thing I noticed is that the Project settings for the AT29LV040A list the size at 512KB and the sectors as 512, but in the datasheet for the device, it is listed as being a 4MB chip with 2048 sectors of 256 bytes.

Can anyone offer any suggestions?

Also, somewhat unrelated, but is it possible to use the J-Link ARM Flash program to load both internal and external flash with the same project?

Thanks,

Andy

SEGGER - Souhail

Super Moderator

Date of registration: Nov 15th 2007

Posts: 19

2

Wednesday, December 5th 2007, 11:40am

Hello Andy,

Do you have connected your four NOR flashes parallelly (1 CS, each flash occupies 8bits of the 32 data bus) or serially (only 8bit data bus is used, 1st chip is addressed through 0x000000-0x07FFFF, 2nd chip 0x080000-0x0FFFFF, etc., or different CS).

Indeed you're right, the flash AT29LV040A is wrongly listed. We will change this in the next release.
Regarding the "unsupported flash type / bus width" error message, we get in touch with you via PM/Email.

Regards,

Souhail

zhongyb

Beginner

Date of registration: Dec 6th 2007

Posts: 18

3

Friday, December 7th 2007, 5:22am

please have a try

:)

dahli.llama

Beginner

Date of registration: Dec 4th 2007

Posts: 2

4

Friday, December 7th 2007, 2:47pm

The chips are connected in parallel.

I have sent a request in to support@segger.com, so hopefully they will be able to provide some resolution.

Thank you for the help so far.