TOP Contributors

  1. MIKROE (2693 codes)
  2. Alcides Ramos (362 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137953 times)
  2. FAT32 Library (70759 times)
  3. Network Ethernet Library (56446 times)
  4. USB Device Library (46827 times)
  5. Network WiFi Library (42588 times)
  6. FT800 Library (41786 times)
  7. GSM click (29468 times)
  8. mikroSDK (27020 times)
  9. PID Library (26662 times)
  10. microSD click (25797 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Secure 7 click

Rating:

0

Author: MIKROE

Last Updated: 2022-04-15

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Encryption

Downloaded: 201 times

Not followed.

License: MIT license  

Secure 7 click carries the ATECC608A cryptographic coprocessor with secure hardware-based key storage, from Microchip. The ATECC608A includes an EEPROM array which can be used for storage of up to 16 keys, certificates, miscellaneous read/write, read-only or secret data, consumption logging, and security configurations.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Secure 7 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Secure 7 click" changes.

Do you want to report abuse regarding "Secure 7 click".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Secure 7 click

Secure 7 click

Native view of the Secure 7 click board.

View full image
Secure 7 click

Secure 7 click

Front and back view of the Secure 7 click board.

View full image

Library Description

The library covers all the necessary functions to control Secure 7 click board.

Key functions:

  • void secure7_send_bytes ( uint8_t count, uint8_t *p_buf ) - Send bytes function.
  • void secure7_send_wake_token() - Send wake token function.
  • uint8_t secure7_receive_bytes ( uint8_t count, uint8_t *p_buf ) - Receive bytes function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO and start to write log.
  • Application Initialization - Initialization driver enables - GPIO and configure swi for communication, also write log.
  • Application Task - (code snippet) This is an example which demonstrates the use of Secure 7 Click board. Data is read from the secure chip. If the read out is successful the data is then display on the serial port in the hex format.
void application_task ( )
{
    if ( atcab_read_serial_number( &buffer_out[ 0 ] ) == ATCA_SUCCESS )
    {
        mikrobus_logWrite( " Serial number : ", _LOG_LINE );
        secure7_output_hex( &buffer_out[ 0 ], 9 );
    }
    else
    {
        mikrobus_logWrite( " Reading serial number failed...", _LOG_LINE );
    }
    
    mikrobus_logWrite( "----------------------------------------", _LOG_LINE );
    Delay_ms ( 1000 );

    if ( atcab_info( &buffer_out[ 0 ] )  == ATCA_SUCCESS )
    {
        mikrobus_logWrite( " Device revision information : ", _LOG_LINE );
        secure7_output_hex( &buffer_out[ 0 ], 4 );
    }
    else
    {
        mikrobus_logWrite( " Reading device revision information failed...", _LOG_LINE );
    }
    
    mikrobus_logWrite( "----------------------------------------", _LOG_LINE );
    Delay_ms ( 1000 );
    
    if ( atcab_read_config_zone( ATECC608A, &buffer_out[ 0 ] ) == ATCA_SUCCESS )
     {
        mikrobus_logWrite( " First 32 bytes of device configuration :",_LOG_LINE );
        secure7_output_hex( &buffer_out[ 0 ], 32 );
     }
     else
     {
        mikrobus_logWrite( " Reading config zone failed...",_LOG_LINE );
     }
    
    mikrobus_logWrite( "----------------------------------------", _LOG_LINE );
    Delay_ms( 10000 );
}


Additional Functions :

  • secure7_set_output - SWI directions set implementation - output.
  • secure7_set_input - SWI directions set implementation - input.
  • secure7_output_hex - Display output data in hex format.

Other mikroE Libraries used in the example:

  • GPIO
  • UART
  • Conversions

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

RS232 Isolator click

0

RS232 Isolator click is a fully isolated dual transceiver click, used to provide secure and easy UART to RS232 conversion, with the galvanic isolation.

[Learn More]

ISO ADC 3 click

5

ISO ADC 3 Click is a compact add-on board that contains a single-channel precision isolation amplifier.

[Learn More]

Buck 16 click

0

Buck 16 Click is a compact add-on board that contains a DC-DC power converter that steps down the voltage from its input to its output. This board features the TPS62912, a high-efficiency, low noise, and low ripple current-mode synchronous buck converter from Texas Instruments.

[Learn More]