Hi all,
I've downloaded with ULINK2 a "blinky" modified project (only replace the direct register access by ST library functions for Timer3 and Vic configuration). Program does not work anymore (STR9 seems to be freezed in undefined state) and when I try to erase or program, I have the "Cannot load flash programming algorithm" error. I've tried all frequencies, I've tried the "reset method" (power on the board with STR9 in reset and then try an erase), the RAM parameters are OK (0x4000000 and 0x800), The algorithm are the default blinky project one and was working before that freeze, etc.. Is there any other meaning to erase the chip and continue my work on this board ??
Thank for advance, Steph.
maybe this helps?
http://www.keil.com/support/docs/3215.htm
Hi,
thanks for your post, but it doesn't help : this is what I called the "reset method". The STR9 is totally freezed, and I always have the same message. I'm afraid I'll have to replace the chip :s
Regards
which algorithms do you use? ICP or normal? Did you change the CSX bit so that Flash Bank1 is the BootBank?
See also http://www.keil.com/support/docs/3286.htm
Best Regards, Martin
I had this problem when I first started out. Had a couple of boards that I couldn't reprogram via Ulink2, some were fixed by the reset method mentioned above, but one would not even be fixed by this.
I bought the ST programmer so that I could program the CAP bits. Rlink I think its called. Anyway this was able to stop and erase the chip I had that Ulink2 couldnt. I believe we got it from RS components. Its only cheap 55 pounds in RS here. So maybe worth a shot rather than replacing the chip!
Most of my problems I had were when I was fiddling with the clock setting etc. Its just got so many settings...
Stuart.
Hi Stuart,
thanks for the post, I'll purchase it and try soon... Will tell if it works for other user !
My first problems came from clock settings also, but the last code I flashed was using IRQ (Timer and UART). First time the debugger was unable to start the code (jumping in different memory aeras) and after that, 'could not load flash algorithm'.
Hope it will work with Rlink...
regards
Bad news... I bought Rlink and installed JtagProgrammer from ST : Rlink and target connection test are both passed, Erase and programming are successful, but the Blinky program example does not start. Even with a full erase successful with Rlink/JtagProgram, I have the same error message when I come back on Ulink/Keil ("ULINK - ARM error : STR91xFxx4.FLX = can't load flash programming algorithm" ; Cannot Enter Debug Mode). When I start a debug session, I have many "JTAG Communication failure message with error 122 : memory read failed 0x00000060 And the code goes anywhere...
I'm afraid that my chip is out of order.
I'll try some more stuff, but I think I will replace the chip !!
Regards,
Re,
Good news.. I installed the Rlink GNU environnement for ARM (provided with the Rlink cable). I performed a full chip erase and then programmed the ADC example. Then I came back to Keil/Ulink...... and Blinky works again !!