Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
Failures writing to Intel 28F004 flash through MCF5206 with Cyclone Max
Joe T. Mar 11, 2015 at 03:02 PM (15:02 hours)
Staff: Takao Y.

  • I am trying to write an s19 file that I copied from a good board to one with a blank flash.  I have enabled writing to the boot block and that is not a problem.  Whatever area I write to works for 108 (x0-x6B)bytes and then writes all 80 after that for 20 (x14) bytes until it realizes that verification is failing.  Then it stops.  It happens in all areas of memory and areas that had failures will pass if I do it again and those areas are in the first 108 bytes.  

    I am using the Intel_28F004B5-B_1x8x512k.CFP algorithm. On connection, I have the BDM speed set to the lowest frequency, MCU internal set to auto-detect, and both the delay after reset (1000 ms) and the use PST signals options are checked. Any thoughts? Thank you.




    Comments

  • Greetings,

    Sounds like you are using the wrong algorithm. It is good that you tested out the BDM speed first and that you tried the reset delay as well because this issue does happen if you have communication problems.

    The default algorithms we provide like the Intel_28F004B5-B_1x8x512k.CFP has default settings like it is using Chip select 0 and no special addressing or data configurations to the external chip. You may have a special setup where you are using other chip selects, have a signal mux, or a IO that needs to be set to allow communication to the external flash, or maybe you have a watchdog that keeps resetting your chip.

    Do you have a schematic of your board? If so, take a look to see what signals are necessary to read and write to your external flash.


    Takao Yamada

  • Also, another thing to notice is that the 5206 needs a synchronous debug communication. Make sure your cyclone max is using the synchronous cable or adapter:
    http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320043


    Takao Yamada

  • Greetings,

    Any update on this?


    Takao Yamada

  • Thank you for your responses Yamada-san. I was using the synchronous cable, since we have programmed Intel flash memory through another Coldfire processor before.  My coworker is using the customized CFP file that we use for that job as a sample.  He thinks since we are using the CF family, that the CFP files you provide for Intel need some modifications and that was the reason for the custom file provided by our board supplier.  (I thought because the Cyclone Max detects the uP type automatically, that it would make adjustments for that micro with that type of flash.)  He is hoping to know today if this file works.

    Can you tell me what changes exist between the standard CFP file for Intel_28F400B5-B_1x16x256k and the custom one shown below? Thank you.

    ;device Intel, 28F400B5-B, 1x16x256k, desc=5206
    ;begin_cs device=$00000000, length=$00080000, ram=$80000000
    ;end_cs
    NO_TIMING_TEST
    ;Blocks 1-16k, 2-8k, 1-96k, 3-128k
    USER=BE Block Erase 1Block > /00000000/0000000E/
    ;
    S31580000000800001A4800001C40000002000000000E0
    S315800000100008000000000000800000CA0000000008
    S315800000200000000080000080000000008000011AAF
    S31580000030800000B4800000B6800000B80000000098
    S3158000004000000000000000008000007A0000000030
    S3158000005000004000000060000000800000020000F8
    S315800000600004000000060000227C8000004C207105
    S315800000700C00D1FC000000004E7561EC6000006A47
    S315800000802C3C000000072006538061DC30BC002039
    S3158000009030BC00D030BC0070281002840000008084
    S315800000A00C840000008066EC20BCFFFFFFFF5386B7
    S315800000B066D44AC84AC84AC82A7C000000003ABCAE
    S315800000C000FF2C7C800001644AC8223CFFFFFFFFB2
    S315800000D032180C81FFFFFFFF6606558066F24AC81C
    S315800000E0203CFFFFFFFF4AC830BC00206000000CA8
    S315800000F0207C0000000030BC003030BC00D030BC1A
    S31580000100007038100284000000800C84000000809B
    S3158000011066EC428030BC00FF4AC8287C800001C45F
    S3158000012048D7180836BC0040369C36BC0070381359
    S3158000013002840000008067F25583548B66E64CD7B4
    S31580000140180836BC00FF42804281301C321BB280C8
    S315800001506608558366F442804AC8203CFFFFFFFF4D
    S307800001604AC805
    S804000000FB
    Tè

  • Greetings,

    You can always get the latest CFP files from our website here:
    http://www.pemicro.com/support/flash_list_menu.cfm

    Just from a quick glance, they look similar but a few differences in the srecord portion of the algorithm. I want you to download the latest algorithms from the link I just gave you and try the one that is available. As long as you have the default CS0 selected and no custom connections between the chip and the external flash, then there should be no problems.


    Takao Yamada

  • Greetings,

    Any update on this?


    Takao Yamada

    • Yamada-san,
      The current one is the same as I was using. We still have no solution, but are able to program the chip off the board. I would rather be able to use the Cyclone tool, since it is non-invasive and I have two Cyclones. I am on another repair now and hope to get back to this unit in the next few weeks. Thanks for the advice.
      Joe

  • Greetings,

    Were you able to take a look at this again?


    Takao Yamada

    • I have not been able to work on this.  It probably will not come up again until someone has a problem soldering the new chip in place and wants to try to reprogram the device in circuit.

Add comment


   Want to comment? Please login or create a new PEMicro account.







© 2017 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement