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 using ULink

Is it possible to use the ULink to both program the XC16X Flash AND a flash chip attached to the XC16X. I get the impression it might be from the Option/debug setup but find the ULink rather under documented...

Alternatively is there a comprehensive ULink manual that I haven't found yet??

Sorry for asking dumb questions but the 166 and Keil's tools for it are new to me.

Regards, Bruce

  • Hello Bruce,
    yes, it is possible: first of all you must be sure your external flash is correctly addressed by the JTAG emulator.
    This is done by selecting the JTAG driver into the debug window options (From main menu: Project, Options for Target, Debug, Use OCDS driver) and correctly setting the Reset Configuration (Settings, Reset Configuration) in order to enable the chip select to which your external device is connected.
    Then you must adapt one of the external Flash drivers found into the \Keil\C166\Flash folder in order to suit the needs of your external flash device.
    Last step is selecting the new driver into the Utilities menu' (From main menu: Project, Options for Target, Utilities, Configure Flash Menu' Command)
    You must add your new driver for the memory window into which your external flash is mapped.
    Maybe it is not well documented, but it works, I have already used it and it is OK, just try a couple of times and you will find the way...
    I hope this will help you,
    Ciao
    Bruno

  • Many thanks Bruno. I will give it a try. I do wish that Keil would work on it's sparse documentation tho...

    Regards

    Bruce