Writing IFR not working FRDM-K32L3A6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Writing IFR not working FRDM-K32L3A6

416 Views
Samson88
Contributor II

Hello,

I'm using blhost to write IFR 0x80 to put device into unsecured state.  To do this I must set bits 1:0  in FSEC register to 10.  Since blhost requires 4 or 8 bytes, I am guessing the value I should write is: 0xFFFFFFFE   (0xE = 1110).   I also tried little endian 0xFEFFFFFF.  It did not work either.

When I read back 0x80 after writing, it looks like it worked.  When I reset the device (or cycle power), the state is SECURED.  But I expect it to be UNSECURED, since I wrote 10

What am I doing wrong? 

Thank you

blhost -p COM5 flash-program-once 0x80 4 FFFFFFFE
Ping responded in 1 attempt(s)
Inject command 'flash-program-once'
Successful generic response to command 'flash-program-once'
Response status = 0 (0x0) Success.

blhost -p COM5 flash-read-once 0x80 4
Ping responded in 1 attempt(s)
Inject command 'flash-read-once'
Response status = 0 (0x0) Success.
Response word 1 = 4 (0x4)
Response word 2 = -2 (0xfffffffe)

blhost -p COM5 reset
Ping responded in 1 attempt(s)
Inject command 'reset'
Successful generic response to command 'reset'
Response status = 0 (0x0) Success.

blhost -p COM5 get-property 17
Ping responded in 1 attempt(s)
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1 (0x1)
Security State = SECURE

 

Samson88_0-1698348022503.pngSamson88_2-1698348106311.png

 

0 Kudos
0 Replies