MicrochipTech/cryptoauthlib

ATECC608A Sleep and reset the registers

gskrish7 opened this issue · 1 comments

I am working on embedded Linux, - I am trying implement my own to sleep function., The datasheet suggests sending 0x01 to sleep the device and this will clear the registers in chip. I tried to do that, but still the chip is not going to sleep state and still taking commands without need to send wakeup signal.

As i wokrk with ioctl I configure ioctl as below

  1. ioctl( fd, I2C_SLAVE, 0x36 );
  2. send( fd, sleepseq /{0x01}/, 1 );

I observed even after implementing sleep as mentioned above, the ATECC608a is accepting commands without need to send wake-up signal again. The only after introducing the sleep of 2 sec, the device goes into sleep and we wakeup and run command.

Basically, the requirement is to reset registers and state of chip before executing next command.

I faced this issue also on stm32 where we developed using baremetal. There we use superloop and I m unable to port as the the sleep is used in few places. where the superloop should only skip execution until timeout instead of actual sleep. othersie, othertasks will be disturbed

Product support requests must be summited through the mySupport portal where Microchip's global team of FAEs can work on your use case and questions.

For details on the mySupport Portal or how to use it please see the instructions for using the mySupport portal