This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Programming external flash via uVision

Hi,

We have a project that uses an XC161CJ with both on-chip and external flash. We have now reached the stage where we need to program the external flash (AM29F400BB)and it would be very useful to be able to do this from within the uVision environment.

Has anyone used the flash programming facilities in V4.24 of C166? It appears that this release has facilities to specify the flash programming algorithm (see \Keil\C166\Flash). Can this be used for external flash?

Thanks.

Parents
  • I have used it for internal FLASH but not external. The following text is taken from the help file. I cannot testify whether or not is works but it claims to have the capability you require.

    "Flash Programming Algorithms
    The µVision2 environment allows you to define additional Flash programming algorithms. For example an algorithm for an off-chip Flash ROM that is connected via the BUS of the XC16x device."

    It also includes step by steps instructions. Basically how it works is you copy a uv2 project to a new directory and modify it for the device you are targeting. For example you have to define device parameters and code the erase and programming functions. Then you build the project and add it to the uVisions menu.

    Looks pretty straight forward but again I haven't actually tried it.

    Hope this helps,
    Walt

Reply
  • I have used it for internal FLASH but not external. The following text is taken from the help file. I cannot testify whether or not is works but it claims to have the capability you require.

    "Flash Programming Algorithms
    The µVision2 environment allows you to define additional Flash programming algorithms. For example an algorithm for an off-chip Flash ROM that is connected via the BUS of the XC16x device."

    It also includes step by steps instructions. Basically how it works is you copy a uv2 project to a new directory and modify it for the device you are targeting. For example you have to define device parameters and code the erase and programming functions. Then you build the project and add it to the uVisions menu.

    Looks pretty straight forward but again I haven't actually tried it.

    Hope this helps,
    Walt

Children
  • Walt,

    Thanks for the response. I found the same section in the help file. uVision seems to pick up the flx file from the keil\c166\flash directory. However the description of the programming algorithm in the add list is always "XC16x on-chip Flash" irrespective of what text you enter for the DevName in the FlashDevice structure in the FlashDev.c file (I am assuming that this is where it should be picking up the name of the programming algorithm).
    Regards,
    Richard