HI All,
I compile the DFU example from ST using Keil MDK and try to download it into Bank 1. I always get a error: Flash Download failed -- ARM966E-S(I am using STR912FAW44). The following is what I do:
I setup the uVISION IDE the same as the thread http://www.keil.com/support/docs/3347.htm
Setup FMI in str91x.s
FMI_SETUP EQU 1 FMI_CR_Val EQU 0x00000018 FMI_BBSR_Val EQU 0x00000000 FMI_BBADR_Val EQU 0x00000000 FMI_NBBSR_Val EQU 0x00000006 FMI_NBBADR_Val EQU 0x00400000 FLASH_CFG_Val EQU 0x00000000
Setup STR91xCFG.s
CFG EQU 1 CFG_W0 EQU 0x00000000 CFG_W1 EQU 0x00010000
What am I missing in my project setting?
Thanks
Lillian
Hi Stuart,
Thank you for your kind help. I try your file and still get the programming failed. I check the chip version in my MCBSTR9 board is G. Also, could you please do me a favour to take a look at my STR91x flash file and see why i get the warning message. I find it cannot attatch file here. Could you please sene me the email lillian201151@hotmail.com so I can send you my design file?
Thanks a lot
Hi,
I find the reason to fail program. Go to Options for Target -> Debug -> Ulink ARM Debugger Settings -> MAX JTAG Clock
Change MAX JTAG Clock from 1M to 500K.
Then flash program will be successful.
Best Regards,