Programming the Spansion (S29AL016J) NOR flash using J-Flash

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

  • Programming the Spansion (S29AL016J) NOR flash using J-Flash

    Hi,



    I am using the J-Flash to program the external NOR flash which is the Spansion chip S29AL016J. The micro used is LPC2478.

    When I try to connect to the external flash which is connected to CS1, I get the following error.



    Connecting ...
    - Connecting via USB to J-Link device 0
    - J-Link firmware: V1.20 (J-Trace ARM Rev.1 compiled Sep 5 2007 06:57:41)
    - Using adaptive clocking instead of fixed JTAG speed
    - Initializing CPU core (Init sequence) ...
    - Executing Reset (9, 0 ms)
    - Executing Write 32bit (0xFFE08000, 0x00000001)
    - Executing Write 32bit (0xE01FC080, 0x00000000)
    - Executing Write 32bit (0xE01FC08C, 0x000000AA)
    - Executing Write 32bit (0xE01FC08C, 0x00000055)
    - Executing Write 32bit (0xE01FC1A0, 0x00000020)
    - Executing Write 32bit (0xE01FC10C, 0x00000001)
    - Executing Write 32bit (0xE01FC084, 0x0000000B)
    - Executing Write 32bit (0xE01FC08C, 0x000000AA)
    - Executing Write 32bit (0xE01FC08C, 0x00000055)
    - Executing Write 32bit (0xE01FC080, 0x00000001)
    - Executing Write 32bit (0xE01FC08C, 0x000000AA)
    - Executing Write 32bit (0xE01FC08C, 0x00000055)
    - Executing Delay (100 ms)
    - Executing Write 32bit (0xE01FC104, 0x00000004)
    - Executing Write 32bit (0xE01FC108, 0x00000005)
    - Executing Write 32bit (0xE01FC1A8, 0xAAAAAAAA)
    - Executing Write 32bit (0xE01FC1AC, 0xAAAAAAAA)
    - Executing Write 32bit (0xE01FC080, 0x00000003)
    - Executing Write 32bit (0xE01FC08C, 0x000000AA)
    - Executing Write 32bit (0xE01FC08C, 0x00000055)
    - Executing Write 32bit (0xFFE08000, 0x00000001)
    - Executing Write 32bit (0xE01FC0C4, 0x00000800)
    - Executing Write 32bit (0xE002C018, 0x55555555)
    - Executing Write 32bit (0xE002C020, 0x55555554)
    - Executing Write 32bit (0xE002C024, 0x40050155)
    - Executing Write 32bit (0xFFE08204, 0x00000002)
    - Executing Write 32bit (0xFFE08208, 0x00000002)
    - Executing Write 32bit (0xFFE0820C, 0x0000001F)
    - Executing Write 32bit (0xFFE08210, 0x0000001F)
    - Executing Write 32bit (0xFFE08214, 0x0000001F)
    - Executing Write 32bit (0xFFE08218, 0x0000000F)
    - Executing Write 32bit (0xFFE08200, 0x00000081)
    - Initialized successfully
    - Using adaptive clocking instead of fixed JTAG speed
    - J-Link found 1 JTAG device. Core ID: 0x4F1F0F0F (ARM7)
    - Reading CFI info ...
    - Could not find CFI compliant flash device
    - Detecting flash memory ...
    - ERROR: Could not find any flash devices
    - ERROR: Failed to connect




    Can you please help me to flash the Spansion chip.
  • Hi,

    did you use the LPC2478_1x16_CFI.jflash sample project for reference in order to create your one?
    If not, please check the settings in the sample project with the settings in your project.
    The sample project is pre-configured to connect to external CFI-compliant NOR flash connected to CS0, so it will require small modification.


    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.
  • Programming the Spansion (S29AL016J) NOR flash using J-Flash

    Hi Alex,

    I tried using the sample project LPC2478_1x16_CFI.jflash to flash the Spansion chip but still it says "it could not find any flash devices".

    Is there any other settings related to PLL which needs to be added to the CPU settings of LPC2478_1x16_CFI.jflash?

    I could see from the J-flash ARM documentation that the flash device S29AL016J has not been listed as supported chip.

    Can you please confirm if its possible to use J-flash for programming this NOR chip? Also from the datasheet of this NOR flash chip the device ID query seems to be different say it reads writes to address 0x555 instead of 0x5555. I have attached the command definition table for this chip for your reference.

    Thanks for your help in advance.Spansion_chip_command_definition_table.pdf