| Details | Message |
|---|
Read-Only Author Stéphane Fouques Posted 25-Nov-2009 14:05 GMT Toolset ARM |  MCBSTR9 : Cannot load flash programming algorithm Stéphane Fouques 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. |
|
Read-Only Author Tamir Michael Posted 25-Nov-2009 14:33 GMT Toolset ARM |  RE: MCBSTR9 : Cannot load flash programming algorithm Tamir Michael maybe this helps? http://www.keil.com/support/docs/3215.htm |
|
Read-Only Author Stéphane fouques Posted 25-Nov-2009 19:56 GMT Toolset ARM |  RE: MCBSTR9 : Cannot load flash programming algorithm Stéphane fouques 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 |
|
Read-Only Author Martin Günther Posted 30-Nov-2009 15:30 GMT Toolset ARM |  RE: MCBSTR9 : Cannot load flash programming algorithm Martin Günther Hi, 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 |
|
Read-Only Author Stuart Wright Posted 3-Dec-2009 19:32 GMT Toolset ARM |  RE: MCBSTR9 : Cannot load flash programming algorithm Stuart Wright 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. |
|
Read-Only Author Stéphane Fouques Posted 4-Dec-2009 13:16 GMT Toolset ARM |  RE: MCBSTR9 : Cannot load flash programming algorithm Stéphane Fouques 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 |
|
Read-Only Author Stéphane Fouques Posted 8-Dec-2009 15:58 GMT Toolset ARM |  RE: MCBSTR9 : Cannot load flash programming algorithm Stéphane Fouques Hi, 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, |
|
Read-Only Author Stéphane Fouques Posted 8-Dec-2009 16:26 GMT Toolset ARM |  RE: MCBSTR9 : Cannot load flash programming algorithm Stéphane Fouques 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 !! Regards, |
|