Write memory error

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

  • Write memory error

    Hi,

    We have some problems in our production when downloading software via J-link to a LPC2290 with ST M29W160EB flash. It is only in the production we have the problem, when downloading from a laptop via a segger J-link it never generates erros - in the production the error rate is from 1%-50%.

    Production setup: "IAR J-Link of ARM" from IAR Systems with J-Flash license from SEGGER.

    Log file (one of many) 10002275600063_08032011_161048.txt

    Dll used for bootloader download LPC2290_Boot.txt
    Dll used for application download LPC2290_App.txt

    The dll's are used together with several other products (same processor and flash), but it is only this product that generates the error.
    Any idea what could cause this error?
  • Hi,

    If I understand you correctly, you have other products which use the
    same configuration (LPC2290 + ST M29W160EB NOR flash) and do not show any problems, so it does not seem to be a generic problem with the CPU + flash combination.

    It seems that the first action after performing the reset fails (Setup for CS0).
    Are there any differences regarding reset, for this product in contrast to the other products you have?


    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.
  • Hi,

    if only this product is having problems and all other ones which use the same CPU & flash do never show any problems there have to be a difference.
    One question: Does the error only occur on devices which have been programmed before so there is already an application running on it?
    If it only occurs on devices which are already programmed, there might be some interference between what is done by the application and J-Link.


    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.
  • Hi Alex,

    The error occur on both programed and empty flashes - it's totally random when it occurs.
    I'll get our HW designers to take another look at the layout, to see if something is different in our new product.

    BR
    Rasmus
  • Hi Alex,

    Could the binary file cause the problem?
    We have done some more testing:
    Same hardware programed 50 times with 3 different bootloaders/applications.
    Boot/App (made for this product) : Fails 15% OK 85%
    Boot/App (made for product 2): Fails 0% OK 100%
    Boot/App (made for product 3): Fails 15% OK 85% - has never failed on the original hardware, only on this new one

    We have used same compiler/setup for all binary files.

    BR
    Rasmus
  • I've attached the newest log file. Any idea of what can cause this error?

    Error read flash id.
    Read - 0xF018E59F
    Expected - 0x202249

    It always is the same error we get when a pcb fails the download process. The same pcb can be test OK and next time we tri to download it fails (same pcb test 50 times, fails 10 times)

    We still use the same download files as listed earlier in this thread.

    BR
    Rasmus
    Files
  • Hi Rasmus,

    Maybe there is a problem with the initialization of the external memory interface, for example some timings may be too tight,
    so that it works most of the time but sometimes there are data inconsistencies (the flash does not get our commands correctly)?
    Moreover, are there maybe any nWP pins floating on the flash side?
    In the past we had a couple of customers which did not have pull-ups on the nWP pin of the flash memory which caused some inconsistencies during programming (sometimes the write protection suddenly got activated etc.)


    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.