[ABANDONED] LPC4330 and S25FL064L

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

  • [ABANDONED] LPC4330 and S25FL064L

    Hi,

    I am working on a project with external flash on the LCP4330. the flash chip I use is the S25FL064L. I have a J-Link EDU with hardware version V10.10 and software version V6.16b.

    I used a development board with the S25FL032P which was no problem but now I use the S25FL064L and I get the error:


    "ERROR: Error while determining flash info (Bank @ 0x14000000)"

    Maybe it is the same problem as in this topic.

    I open added the GDB server output and the result of a erase in J-link Commander. (sorry but the c code tag is not working)



    SEGGER J-Link GDB Server V6.16b GUI Version

    JLinkARM.dll V6.16b (DLL compiled Jun 9 2017 18:03:30)

    -----GDB Server start settings-----
    GDBInit file: none
    GDB Server Listening port: 2331
    SWO raw output listening port: 2332
    Terminal I/O port: 2333
    Accept remote connection: localhost only
    Generate logfile: off
    Verify download: on
    Init regs on start: on
    Silent mode: off
    Single run mode: off
    Target connection timeout: 5000 ms
    ------J-Link related settings------
    J-Link Host interface: USB
    J-Link script: none
    J-Link settings file: none
    ------Target related settings------
    Target device: LPC4330_M4
    Target interface: JTAG
    Target interface speed: 1000kHz
    Target endian: little

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link V10 compiled Nov 28 2017 11:45:53
    Hardware: V10.10
    S/N: 260107709
    OEM: SEGGER-EDU
    Feature(s): FlashBP, GDB
    Checking target voltage...
    Target voltage: 3.35 V
    Listening on TCP/IP port 2331
    Connecting to target...
    J-Link found 2 JTAG devices, Total IRLen = 8
    JTAG ID: 0x4BA00477 (Cortex-M4)
    Connected to target
    Waiting for GDB connection...Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0x10087FF0)
    Read 2 bytes @ address 0x00000000 (Data = 0x7FF0)
    Downloading 8180 bytes @ address 0x14000000 - Verified OK
    Downloading 68 bytes @ address 0x14001FF4 - Verified OK
    ERROR: Error while determining flash info (Bank @ 0x14000000)
    Writing register (PC = 0x140006F0)
    Read 4 bytes @ address 0x140006F0 (Data = 0xB084B580)



    J-link Commander
    --------------------------------

    Device "LPC4330_M4" selected.

    Connecting to target via JTAG
    TotalIRLen = 8, IRPrint = 0x0011
    JTAG chain detection found 2 devices:
    #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
    #1 Id: 0x0BA01477, IRLen: 04, CoreSight JTAG-DP
    Scanning APs, stopping at first AHB-AP found.
    AP[0] IDR: 0x24770011 (AHB-AP)
    AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
    CPUID reg.: 0x410FC241. Implementer code: 0x41 (ARM)
    Found Cortex-M4 r0p1, Little endian.
    FPUnit: 6 code (BP) slots and 2 literal slots
    CoreSight components:
    ROMTbl[0] @ E00FF000
    ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS
    ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
    ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
    ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
    ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
    ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
    Cortex-M4 identified.
    J-Link>erase
    Erasing device (LPC4330_M4)...
    J-Link: Flash download: Only internal flash banks will be erased.
    To enable erasing of other flash banks like QSPI or CFI, it needs to be enabled via "exec EnableEraseAllFlashBanks"
    Erasing done.
    J-Link>exec EnableEraseAllFlashBanks
    J-Link>erase
    Erasing device (LPC4330_M4)...

    ****** Error: Error while determining flash info (Bank @ 0x14000000)
    ERROR: Erase returned with error code -1.

    Thanks,

    Koen Van der Aa

    The post was edited 3 times, last by r0368892 ().

  • Hi Koen,

    Thank you for your inquiry.
    Such an issue is not known to us.
    I just checked with a LPC4330-Xplorer which uses a S25FL032P and it worked as you described.

    Could you provide us with a J-Link logfile when the erase fails?
    How is described here: wiki.segger.com/Enable_J-Link_log_file

    What OS are you running on?
    If on Windows could you also try it with our J-Flash software and see if reading and writing is working to make sure only erase is affected?
    For this simply start J-Flash, Create new project, select device LPC4330_M4 and the correct target interface, then press ok.
    Now you should have a J-Flash project open.
    First try a read back.
    Target->Manual Programming->Read back->Entire Chip
    Now generate test data: Target->Test->Generate Test Data
    To program it press F5 after creating the test data.
    If this worked try an erase by pressing F4.

    How does the device behave with each task?
    You can run the same tests under linux with the J-Link commander using commands savebin, loadbin and erase respectively.

    Best regards,
    Nino
    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.