Failed to Lock ATSHA204 configuration Zone. Help needed.

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My ATSHA204 is refuse to lock with 0x04 0x0F 0x23 0x42 error. Which means, the device state need to change or change of command bit.

 

I'd treid with letting the device Idle and awake to push LOCK config, - same.

 

Command I'm pushing is

    lock_cmd [0] = 0x03;                                /// command
    lock_cmd [1] = 0x07;                                /// length
    lock_cmd [2] = 0x17;                                /// command lock
    lock_cmd [3] = 0x00;                                /// zone -- configuration zone
    lock_cmd [4] = (uint8_t) (conf_crc & 0x00FF);    // 88 bytes conf CRC
    lock_cmd [5] = (uint8_t) (conf_crc >> 8);          // 88 bytes conf CRC
    
    uint16_t lock_crc_calc;
    
    lock_crc_calc = crc16_calc (5, &lock_cmd[1]);

    lock_cmd [6] = (uint8_t) (lock_crc_calc & 0x00FF);
    lock_cmd [7] = (uint8_t) (lock_crc_calc >> 8);    

But failed as before. As it return 0x0F - seems to me command is correct. But what else state need to change ?

 

Any help is highly appreciated.

Kisu Na!!!

Last Edited: Wed. Jun 29, 2016 - 04:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello abab380,

Have you tried to use the library and documentation from the link below?

http://www.atmel.com/tools/Crypt...
http://www.atmel.com/images/Atme...

 

Please let me know if you still have further questions.

 

Kind regards,

Edy Gunawan

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

thanks, but I've found the way to do it? Reading a word with each transaction and sum up whole zone.

 

But I'm in trouble with CheckMac command and DeriveKey command.

 

Does anybody have practical example for these two command operation and output ?

 

Thanks.

Kisu Na!!!

Last Edited: Mon. Jul 25, 2016 - 01:26 PM