cancel
Showing results for 
Search instead for 
Did you mean: 

ST10 Flasher error: Only BSL can be ON

adam239955_stm1_st
Associate II
Posted on October 15, 2006 at 08:59

ST10 Flasher error: Only BSL can be ON

2 REPLIES 2
adam239955_stm1_st
Associate II
Posted on April 05, 2006 at 06:22

Hi,

I'm currently working on a BSL for an ST10 processor. The basic idea is that normally we would flick a switch on the board to enable BSL mode, download the image using the ST10 Flasher tool, and then flick the switch back and reset and run the new image in flash. But for our new product we will have no access to the board so I need to do everything that the switch would do in software.

In principle the idea is easy - I set the necessary values for BSL (STKUN, etc) and then receive the first null character on serial and reply with a D5 to let the flasher know what I am. I then receive the next 32 bytes which I load into RAM at FA40 and then jump to that location and let everything carry on as before. This works but I'm getting an error during the chat between the flasher and the processor:

InitMonitor Failed.

Monitor: LoadMonitor: Bad startup mode. Only BSL can be ON.

I've sniffed the serial line for a normal BSL startup, and then compared it to my own BSL startup and I can see where the difference is and I've attached a list of the communications for perusal.

Can you please tell me what is being asked of me with that FE CA, and why I return 02 00 00 00 02 00 5A where the on-board BSL returns 42 00 10 00 52 00 5A? I'm sure I've just not set some values correctly.

Thanks

[ This message was edited by: adamroper on 05-04-2006 09:53 ]

________________

Attachments :

Flasher_Comms.doc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0MO&d=%2Fa%2F0X0000000bXx%2FgmAWFYuHZciXdUL9hA34f8tOVSi207UeaMhwHFyPsoY&asPdf=false
lspr35
Associate II
Posted on October 15, 2006 at 08:59

Did Yo find a solution for Your problem? I have the same problem. I am using the new ST10F271. Obviously it is not possible to program the internal flash if the Controller is not in BSL-mode; although I could not find a clear comment on this in the manual!

Does anybody know how to program the internal flash if the micro is not in BSL mode?