Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
Can’t flash data to external device (read works)
. Feb 13, 2018 at 06:22 AM (06:22 hours)
Staff: Takao Y.

  • We have a custom circuit MC68332 with Atmel 29C040A flash (2x8x512k). We use the Prog32z Programmer (V6.74) with Atmel_29C040A_2x8x512k to communicate with the controller. Reading of the memory works fine, but we cannot flash new data. After the write request, the program (Prog32z) stays at the command “Executing command (ESC to Abort)” and doesn’t finish.

    Hardware configuration of the write enables of the flash is on NOT CS3 and NOT CS4. We think that your standard algorithm works differently.

    The configuration of our old BDM programmer is a LPT-port programmer. The init of the processor looks like:

    WRITE_WORD=7F00/00FFFA04/ ;Double clock speed 16MHz w 32KHz Xtal
    WRITE_BYTE=00/00FFFA21/ ;Turn off watchdog timer
    WRITE_WORD=0007/fffffa48/ ;CSBARBT CSBOOT = 1MB
    WRITE_WORD=6870/fffffa4a/ ;CSORBT read only 1 wait
    WRITE_WORD=0007/ffFFFA58/ ;CSBAR3 CS3 lower F-EPROM 1MB
    WRITE_WORD=3070/ffFFFA5A/ ;CSOR3 set CS3, lower Byte write only 1 wait
    WRITE_WORD=0007/ffFFFA5C/ ;CSBAR4 CS4 upper F-EPROM 1MB
    WRITE_WORD=5070/ffFFFA5E/ ;CSOR4 set CS4 upper Byte write only 1 wait

    Is the only solution for this problem a custom algorithm?


  • Greetings,

    Custom board typically means custom algorithms. You can modify the algorithm yourself use to whichever chip select (CS) you are using. You already saw the header in the algorithm where you need to modify. The first number is the word data you are writing. The second number is the register address to modify.

    Or you can send a custom algorithm request and one of our engineers can try helping you but may take longer than you expect as we work on first-come-first-serve basis. Making the changes yourself and experimenting will probably be faster.

    Takao Yamada

    • Thanks for the fast answer. We will try to experimenting with your algorithms file (32P). Is for the algorithms file a documentation or tool available?

  • Greetings,

    You will only be modifying the header where you have already detailed. And just modify the Address and values that already exists in the "WRITE_WORD" entries to fit your needs. This should be enough to make things work and no tool or documentation from P&E is required. Just the chip's reference manual.

    If you have other custom things like hardware watchdog modification, then you may need to expand on what is already there.

    Takao Yamada

Add comment

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

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