MC56F8013??

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

MC56F8013??

1,115 Views
Gowtham2602
Contributor I

Can i read program from secured MC56F8013?? 

0 Kudos
Reply
4 Replies

736 Views
Kuraga
Contributor I

Hello mr. XiangJun Rong, @xiangjun_rong

I decided to write here since I am trying to unlock and mass erase mc56f8013.

I use the algorithm specified in the datasheet, and implemented in Mr. PGO's TCL script, 8014.tcl.

mass erase PGO TCL 8014 
I write my own modified software to work with these controllers as hobby.

It works for me with other controllers (8025, 8035), but for some reason it doesn’t work with 8013.

The questions are:

1. Is a locked controller always unlocked with the correct sequence? Is there an option that it is closed from mass erase?
2. In which eOnce mode should we follow the sequence? Execution or debug mode?

3. is correct sequence in PGO tcl & me used?

let flash_erase_cmd : Vec<u8> = vec![0x08]; // 0x8 = Lock Out Recovery (Flash_Erase)

let clk_div = self.calculate_flash_divider(4000)?; // 29
let b3 : u8 = ((clk_div >> & 0xff) as u8;
let b4 : u8 = (clk_div & 0xff) as u8;
let clk_div_vec : Vec<u8> = vec![b4, b3];
dbg!(&clk_div_vec);

println!("jtag_reset");
prog.jtag_reset()?;
println!("jtag_select_shift JTAG_SHIFT_IR");
prog.jtag_select_shift(jtag_shift::JTAG_SHIFT_IR)?;

println!("jtag_write flash_erase_cmd");
prog.jtag_write(jtag_shift::JTAG_EXIT_SHIFT_DR, 0x8, flash_erase_cmd)?;
println!("jtag_write clk_div_vec");
jtag_write(jtag_shift::JTAG_EXIT_IDLE, 0x16, clk_div_vec)?;

thread::sleep(time::Duration::from_millis(2000));
println!("jtag_reset");
prog.jtag_reset()?;

0 Kudos
Reply

1,095 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For MC56F801x family, The security feature is to protect application code in flash from reading, if your chip is configured to be in security mode, the JTAG is blocked, you can not read flash data/code.

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply

1,102 Views
Gowtham2602
Contributor I

Is any possible to read program from that device? 

0 Kudos
Reply

1,107 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,Ganesh,

Pls refer to section 6.4 Memory Map in the MC56F8000RM.pdf, especially Table 6-1. Flash Memory Configuration Field.
you can write Flash Memory Configuration Field to set up the Flash security mode, when the SECL_VALUE is equal to 0xE70A, the flash will be in security state, the JTAG port will be blocked. You can not read anything from JTAG port.
But you can execute the mass-erase instruction in security mode via JTAG port, which will erase all flash data, you can reprogram your own application code via JTAG port.

 

xiangjun_rong_0-1673488451068.png

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply