TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139563 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57254 times)
  4. USB Device Library (47615 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42556 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26930 times)
  10. microSD click (26309 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: 218 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

One Shot click

5

One Shot click is a is a monostable multivibrator (also known as a “one-shot” pulse generator) with a programmable pulse width of 1μs to 33.6 seconds.

[Learn More]

Stepper 8 Click

0

Stepper 8 Click is a motor control add on board based on TC78H670FTG from Toshiba, a clock-in and serial controlled Bipolar Stepping Motor Driver which can drive a 128 micro-stepping motor with a power supply ranging from 2.5V to 16V for wide range of applications includes USB-powered, battery-powered, and standard 9-12V system devices. A perfect solution for driving stepper motors in security cameras, portable printers, handheld scanners, pico-projectors, smartphones and many more.

[Learn More]

ADC12 click

10

ADC 12 Click is a compact add-on board that contains a fully-featured, general-purpose analog-to-digital converter. This board features the ADS7828, a low-power 12-bit data acquisition device that features a serial I2C interface and an 8-channel multiplexer from Texas Instruments.

[Learn More]