Design Note: blhost to program KL03

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Design Note: blhost to program KL03

1,697件の閲覧回数
LaMoris
NXP Employee
NXP Employee

Hi,

Here is a notice when using blhost to program KL03.

Issue Background:

To program KL03 by blhost.exe, user will get the flash is in security state as below message:

Input 1: blhost.exe --p com47,38400 -- get-property 17

Respond Message:

ping responded in attempt(s)

Inject command 'get-property'

Response status=0 <0x0>Success

Response word1=1 <0x1>

Flash Security State = SECURE

Input 2: blhost.exe --p com47,38400 -- flash-erase-all

Respond Message:

Ping tesponded in 1 attempt(s)

Inject command 'flash-erase-all'

Response status=10001 <0x2711>Command disallowed when security is enabled

The symptom is similar to programming fail by BDM in some cases. The solution is down BDM speed.

So set the baud rate speed down to 9600 with each command and the problem is gone.

B.R.

Moris Hsu

ラベル(2)
タグ(2)
0 件の賞賛
返信
3 返答(返信)

1,277件の閲覧回数
publius
Contributor II

Hi Moris,

My KL03 went secure on 2 occasions now after failing to program it using blhost.

After the first time I found your post and changed the baudrate to 9600.

The problem did still occur on 9600 only it went good more times before failing.

Any idea what might cause this problem?

Is there a way to recover the device after it is secure?

Thanks

PS: I’m getting tired of desoldering the processor.

0 件の賞賛
返信

1,277件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Are you sure that the flash security is not being set by the program that you are loading? Check the Flash configuration settings in the project - in case they are random (not controlled by the code) there is alway a risk of securing the device each time it is programed).

In case this is an unreliability in the KBOOT loader you can also take a look at the uTasker version at µTasker FRDM-KL03Z support which supports - this however won't help if you use the ROMed one.

Regards

Mark

Kinetis: µTasker Kinetis support

KL03: µTasker FRDM-KL03Z support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 件の賞賛
返信

1,277件の閲覧回数
PabloBaena
Contributor III

Hi,

We are having similar difficulties here in this thread: KL03 blhost secure  regarding secure flash on new units. Any help would be very appreciated.

Regards,

Pablo

0 件の賞賛
返信