CryptoAuthLib (TNG Lora) Support for SAMR34

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

I am a very new beginner to work with ATECC608A (TNG Lora), I have downloaded the CryptoAuthLib i found that HAL layer support was found only for SAMD21 but not for SAMR34. Can you please help me out with this issue.

Thanks,

Jaivvignesh | Associate Firmware Developer

Last Edited: Thu. Dec 19, 2019 - 02:00 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The HAL code for the SAMD21 is a good example on how to implement your own. The instructions are outlined in the Microchips Application Note "Driver Support for Atmel CryptoAuthentication Devices". I recently added support for the SAML22. Since the HAL library uses ASF, the code was almost identical. As for the SAMR34, I am not sure how close it is related to the SAMD21, but most of the SAM family of microcontrollers have a similar architecture and implement the same Serial Communication Interfaces (SERCOM). You have to read the datasheet depending on your implementation (i2c or single wire (SWI)), but its fairly straight forward. Here is my SAML22 implantation. Here is another example for the ATMEGA. Its SWI, and of course the implementation is very different than a SAM 32 bit microcontroller, but should give you some solid examples to implement your own.

 

 

Attachment(s): 

"When all else fails, read the directions"