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
Lillian,
I made the changes and just tried compiling this here using MDK 4.14. I didn't get any warnings see below.
Build target 'STR91xFxx4 Bank1 ICP' compiling FlashDev.c... linking... Program Size: Code=0 RO-data=4256 RW-data=4 ZI-data=0 User command #1: cmd.exe /C copy STR91xFxx4B1.axf ..\STR91xFxx4B1_.FLX 1 file(s) copied. "STR91xFxx4B1.axf" - 0 Error(s), 0 Warning(s).
I have uploaded the file for you at
www.filedropper.com/str91xfxx4b1
So you can try this one if you want
Regards,
Stuart.
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,