Experience with GDBServer and NOR Flash

  • Hello,

    I would like to add my experience with programming an external Spansion NOR Flash on NXP LPC2478.

    Be carefull during writting parameters to the GDB Server. I made a mistake the flash was 16MB and I set a lower address range -> 8MB
    (monitor flash CFI = 0x80000000-0x80FFFFFF). (Un)fortunately JLink software reads CFI info to perform write/erase timing and number of sectors etc. This led to a confusion of the JLink (GDBServer assumed 8MB, CFI 16MB) with a result: ERROR: Programming failed @ address 0x81000000 (item verification error).

    Based on this experience I assume you cannot virtualy divide the flash into two partitions, one for code 8MB, second for data.

    Best
    Martin

    [edit]
    corrected grammatical discrepancy

    Edited once, last by wella-tabor (February 16, 2013 at 4:19 PM).

  • Hi Martin,

    Quote

    (Un)fortunately JLink software reads CFI info to perform write/erase timing and number of sectors etc.


    J-Link MUST read the CFI information to get information about the sectorization.

    Quote

    I made a mistake the flash was 16MB and I set a lower address range -> 8MB


    Has been fixed in V4.62b
    http://www.segger.com/jlink-software.html


    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!