forked from wolfSSL/wolfssl
Reworking directories and simplify README
This commit is contained in:
1
IDE/IAR-EWARM/embOS/.gitignore
vendored
Normal file
1
IDE/IAR-EWARM/embOS/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.bat
|
@@ -1,18 +1,23 @@
|
|||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
wolfSSL + embOS + IAR Workbench
|
wolfSSL + embOS + IAR Workbench
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
For building the existing examples on a SAMV71_Explained_Ultra with Cortex M7
|
For building the existing examples on a SAMV71_Explained_Ultra with Cortex M7
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
see README_SAMV71
|
|
||||||
|
See SAMV71_XULT\<example>\README_<example>
|
||||||
|
|
||||||
|
I.E. SAMV71_XULT\embOS_wolfcrypt_lib_SAMV71_XULT\README_wolfcrypt_lib
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
For building wolfssl on a new CPU that is supported by embOS in IAR Workbench
|
For building wolfssl on a new CPU that is supported by embOS in IAR Workbench
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
see README_custom_port
|
|
||||||
|
|
||||||
|
See custom_port\README_custom_port
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------#
|
||||||
|
#-----------------------------------------------------------------------------#
|
||||||
|
|
||||||
Thank you for choosing wolfSSL if you ever have any questions please contact us!
|
Thank you for choosing wolfSSL if you ever have any questions please contact us!
|
||||||
|
|
||||||
|
9
IDE/IAR-EWARM/embOS/SAMV71_XULT/README_SAMV71
Normal file
9
IDE/IAR-EWARM/embOS/SAMV71_XULT/README_SAMV71
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Each example project here has it's own README please follow them in detail.
|
||||||
|
|
||||||
|
Thank you for using this guide and we hope this is helpful to you. If you have
|
||||||
|
any suggestions / feedback for us please contact us:
|
||||||
|
support@wolfssl.com
|
||||||
|
info@wolfssl.com
|
||||||
|
|
||||||
|
Copyright © 2016 wolfSSL Inc. All rights reserved.
|
||||||
|
|
@@ -1,31 +1,29 @@
|
|||||||
#include "RTOS.h"
|
#include "RTOS.h"
|
||||||
#include "BSP.h"
|
#include "BSP.h"
|
||||||
|
#include <stdio.h>
|
||||||
#include <wolfcrypt/benchmark/benchmark.h>
|
#include <wolfcrypt/benchmark/benchmark.h>
|
||||||
|
|
||||||
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size */
|
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */
|
||||||
static OS_TASK WLFTASK; /* Task-control-blocks */
|
static OS_TASK WLFTASK; /* Task */
|
||||||
|
|
||||||
static void wolfTask(void) {
|
static void wolfTask(void) {
|
||||||
|
printf("Begin Benchmark Tests\n");
|
||||||
benchmark_test(NULL);
|
benchmark_test(NULL);
|
||||||
|
printf("Benchmark Tests Complete\n");
|
||||||
while (1) {
|
while (1) {
|
||||||
BSP_ToggleLED(1);
|
BSP_ToggleLED(1);
|
||||||
OS_Delay(200);
|
OS_Delay(200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
|
||||||
*
|
|
||||||
* main()
|
|
||||||
*/
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
OS_IncDI(); /* Initially disable interrupts */
|
OS_IncDI(); /* Disable interrupts */
|
||||||
OS_InitKern(); /* Initialize OS */
|
OS_InitKern(); /* Initialize OS */
|
||||||
OS_InitHW(); /* Initialize Hardware for OS */
|
OS_InitHW(); /* Initialize Hardware */
|
||||||
BSP_Init(); /* Initialize LED ports */
|
BSP_Init(); /* Initialize LED ports */
|
||||||
/* You need to create at least one task before calling OS_Start() */
|
/* You need to create at least one task before calling OS_Start() */
|
||||||
OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK);
|
OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK);
|
||||||
OS_Start(); /* Start multitasking */
|
OS_Start(); /* Start the OS */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****** End Of File *************************************************/
|
|
||||||
|
@@ -3,6 +3,7 @@ Steps taken to evaluate wolfSSL with the following:
|
|||||||
Required Software for this guide:
|
Required Software for this guide:
|
||||||
IAR Embedded Workbench IDE - ARM v7.60.1 (or similar version)
|
IAR Embedded Workbench IDE - ARM v7.60.1 (or similar version)
|
||||||
embOS v4.16 (for Cortex-M and IAR compiler)
|
embOS v4.16 (for Cortex-M and IAR compiler)
|
||||||
|
wolfssl (latest version)
|
||||||
|
|
||||||
Required items (Hardware) for this guide:
|
Required items (Hardware) for this guide:
|
||||||
Atmel SAM V71 Xplained Ultra (Or equivelent Cortex-M Evaluation Board)
|
Atmel SAM V71 Xplained Ultra (Or equivelent Cortex-M Evaluation Board)
|
||||||
@@ -18,57 +19,23 @@ Micro usb cable
|
|||||||
For this guide "**SAMV71_DIR" will signify the directory:
|
For this guide "**SAMV71_DIR" will signify the directory:
|
||||||
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\
|
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------#
|
|
||||||
# Create wolfcrypt_lib.a
|
|
||||||
#----------------------------------------------------------------------------#
|
|
||||||
|
|
||||||
1. Open IAR Workbench -> Project -> Add Existing Project
|
|
||||||
a. Browse to **SAMV71_DIR\embOS_wolfcrypt_lib
|
|
||||||
c. Choose wolfcrypt_lib.ewp and click "Open"
|
|
||||||
|
|
||||||
2. Go to Project -> Rebuild All
|
|
||||||
|
|
||||||
3. Verify the library built, you should no have:
|
|
||||||
**SAMV71_DIR\embOS_wolfcrypt_lib\Debug\Bin\wolfcrypt_lib.a
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
# Setup file system to evaluate wolfssl in embOS project:
|
# Setup file system to evaluate wolfssl in embOS project:
|
||||||
|
# (If you have not already done so)
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
1. On your PC create the empty directory C:\embos-trial\
|
1. In wolfssl you will notice the directory:
|
||||||
|
wolfssl\IDE\IAR-EWARM\embOS\extract_trial_here
|
||||||
|
|
||||||
2. go to embOS website and download a trial for your platform
|
2. go to embOS website and download a trial for your platform
|
||||||
https://www.segger.com/downloads/embos ->
|
https://www.segger.com/downloads/embos ->
|
||||||
embOS trial for Cortex-M and IAR compiler
|
embOS trial for Cortex-M and IAR compiler
|
||||||
|
|
||||||
3. Extract (unzip) the download to C:\embos-trial
|
3. Extract (unzip) the download to
|
||||||
|
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\extract_trial_here\
|
||||||
(Note: you do not need to do anything further in this directory, the
|
(Note: you do not need to do anything further in this directory, the
|
||||||
wolfSSL evaluation projects will simply link against it)
|
wolfSSL evaluation projects will simply link against it)
|
||||||
|
|
||||||
#----------------------------------------------------------------------------#
|
|
||||||
# Evaluate wolfcrypt_tests in embOS project:
|
|
||||||
#----------------------------------------------------------------------------#
|
|
||||||
|
|
||||||
1. In IAR Workbench go to Project -> Add Existing Project
|
|
||||||
a. Browse to **SAMV71_DIR\embOS_wolfcrypt_test_SAMV71_XULT\
|
|
||||||
b. Choose wolfcrypt_test.ewp and click "Open"
|
|
||||||
|
|
||||||
2. Go to Project -> Rebuild All
|
|
||||||
|
|
||||||
3. Connect your SAMV71 Xplained Ultra to your PC with micro USB in the "Debug"
|
|
||||||
port for power and the J-Link hooked up to SWD pins and your PC
|
|
||||||
|
|
||||||
4. Go to Project -> Download and Debug
|
|
||||||
|
|
||||||
5. Once the "Debug" environment has loaded go to: View -> Terminal I/O
|
|
||||||
(This is where the printf's will be directed to)
|
|
||||||
|
|
||||||
6. Hit "Go" (Debug option with 3 left arrows "→→→")
|
|
||||||
|
|
||||||
7. You should observe the tests run and pass.
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
# Evaluate wolfcrypt_benchmarks in embOS project:
|
# Evaluate wolfcrypt_benchmarks in embOS project:
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
@@ -87,13 +54,12 @@ C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\
|
|||||||
5. Once the "Debug" environment has loaded go to: View -> Terminal I/O
|
5. Once the "Debug" environment has loaded go to: View -> Terminal I/O
|
||||||
(This is where the printf's will be directed to)
|
(This is where the printf's will be directed to)
|
||||||
|
|
||||||
6. Hit "Go" (Debug option with 3 left arrows "→→→")
|
6. Hit "Go" (Debug option with 3 right arrows "→→→")
|
||||||
|
|
||||||
7. You should observe the benchmark times for the configured algorithms.
|
7. You should observe the benchmark times for the configured algorithms.
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
|
||||||
Thank you for using this guide and we hope this was helpful to you. If you have
|
Thank you for using this guide and we hope this was helpful to you. If you have
|
||||||
any suggestions / feedback for us please contact us:
|
any suggestions / feedback for us please contact us:
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
"-p"
|
"-p"
|
||||||
|
|
||||||
"C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd"
|
"C:\Users\boz_windows\Desktop\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_benchmark_SAMV71_XULT\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd"
|
||||||
|
|
||||||
"--semihosting"
|
"--semihosting"
|
||||||
|
|
||||||
|
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armjlink2.dll"
|
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armjlink2.dll"
|
||||||
|
|
||||||
"C:\Users\boz_windows\Desktop\embos-wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_benchmark_SAMV71_XULT\Debug\Exe\wolfcrypt_benchmark.out"
|
"C:\Users\boz_windows\Desktop\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_benchmark_SAMV71_XULT\Debug\Exe\wolfcrypt_benchmark.out"
|
||||||
|
|
||||||
--plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
|
--plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
|
||||||
|
|
||||||
--macro "C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac"
|
--macro "C:\Users\boz_windows\Desktop\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_benchmark_SAMV71_XULT\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -9,7 +9,7 @@ TriggerName=main
|
|||||||
LimitSize=0
|
LimitSize=0
|
||||||
ByteLimit=50
|
ByteLimit=50
|
||||||
[DebugChecksum]
|
[DebugChecksum]
|
||||||
Checksum=822032712
|
Checksum=-866273587
|
||||||
[CodeCoverage]
|
[CodeCoverage]
|
||||||
Enabled=_ 0
|
Enabled=_ 0
|
||||||
[Exceptions]
|
[Exceptions]
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -37,7 +37,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>MacFile</name>
|
<name>MacFile</name>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>MemOverride</name>
|
<name>MemOverride</name>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>MemFile</name>
|
<name>MemFile</name>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>RunToEnable</name>
|
<name>RunToEnable</name>
|
||||||
|
@@ -312,9 +312,9 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>CCIncludePath2</name>
|
<name>CCIncludePath2</name>
|
||||||
<state>C:\embos-trial\Start\Inc</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\Inc</state>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup</state>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport</state>
|
||||||
<state>$PROJ_DIR$\..\..\..\..\..\</state>
|
<state>$PROJ_DIR$\..\..\..\..\..\</state>
|
||||||
<state>$PROJ_DIR$\..\embOS_SAMV71_XULT_user_settings</state>
|
<state>$PROJ_DIR$\..\embOS_SAMV71_XULT_user_settings</state>
|
||||||
</option>
|
</option>
|
||||||
@@ -780,7 +780,7 @@
|
|||||||
<option>
|
<option>
|
||||||
<name>IlinkAdditionalLibs</name>
|
<name>IlinkAdditionalLibs</name>
|
||||||
<state>$PROJ_DIR$\..\embOS_wolfcrypt_lib_SAMV71_XULT\Debug\Bin\wolfcrypt_lib.a</state>
|
<state>$PROJ_DIR$\..\embOS_wolfcrypt_lib_SAMV71_XULT\Debug\Bin\wolfcrypt_lib.a</state>
|
||||||
<state>C:\embos-trial\Start\Lib\os7m_tlv_dp.a</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\Lib\os7m_tlv_dp.a</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>IlinkOverrideProgramEntryLabel</name>
|
<name>IlinkOverrideProgramEntryLabel</name>
|
||||||
@@ -1942,52 +1942,52 @@
|
|||||||
<group>
|
<group>
|
||||||
<name>Device_Support</name>
|
<name>Device_Support</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<name>Setup</name>
|
<name>Setup</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -2329,52 +2329,52 @@
|
|||||||
<group>
|
<group>
|
||||||
<name>Device_Support</name>
|
<name>Device_Support</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<name>Setup</name>
|
<name>Setup</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -0,0 +1,44 @@
|
|||||||
|
Steps taken to evaluate wolfSSL with the following:
|
||||||
|
|
||||||
|
Required Software for this guide:
|
||||||
|
IAR Embedded Workbench IDE - ARM v7.60.1 (or similar version)
|
||||||
|
embOS v4.16 (for Cortex-M and IAR compiler)
|
||||||
|
wolfssl (latest version)
|
||||||
|
|
||||||
|
Required items (Hardware) for this guide:
|
||||||
|
Atmel SAM V71 Xplained Ultra (Or equivelent Cortex-M Evaluation Board)
|
||||||
|
Note: Must have J-Trace adapter (SWD or SWD + ETM)
|
||||||
|
j-Trace for ARM Cortex-M Processors
|
||||||
|
Note: You can see here: https://www.segger.com/j-trace-for-cortex-m.html
|
||||||
|
Note: You can also purchase other models, we used one from IAR v3.2
|
||||||
|
20 pin target ribbon cable
|
||||||
|
USB Cable with j-Trace adapter end
|
||||||
|
Micro usb cable
|
||||||
|
|
||||||
|
#--!! NOTE !!--#
|
||||||
|
For this guide "**SAMV71_DIR" will signify the directory:
|
||||||
|
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
# Create wolfcrypt_lib.a
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
1. Open IAR Workbench -> Project -> Add Existing Project
|
||||||
|
a. Browse to **SAMV71_DIR\embOS_wolfcrypt_lib
|
||||||
|
c. Choose wolfcrypt_lib.ewp and click "Open"
|
||||||
|
|
||||||
|
2. Go to Project -> Rebuild All
|
||||||
|
|
||||||
|
3. Verify the library built, you should now have:
|
||||||
|
**SAMV71_DIR\embOS_wolfcrypt_lib\Debug\Bin\wolfcrypt_lib.a
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
Thank you for using this guide and we hope this was helpful to you. If you have
|
||||||
|
any suggestions / feedback for us please contact us:
|
||||||
|
support@wolfssl.com
|
||||||
|
info@wolfssl.com
|
||||||
|
|
||||||
|
Copyright © 2016 wolfSSL Inc. All rights reserved.
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armsim2.dll"
|
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armsim2.dll"
|
||||||
|
|
||||||
"C:\Users\boz_windows\Desktop\embos-wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_lib_SAMV71_XULT\Debug\Bin\wolfcrypt_lib.a"
|
"C:\Users\boz_windows\Desktop\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_lib_SAMV71_XULT\Debug\Bin\wolfcrypt_lib.a"
|
||||||
|
|
||||||
--plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
|
--plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,31 +1,29 @@
|
|||||||
#include "RTOS.h"
|
#include "RTOS.h"
|
||||||
#include "BSP.h"
|
#include "BSP.h"
|
||||||
|
#include <stdio.h>
|
||||||
#include <wolfcrypt/test/test.h>
|
#include <wolfcrypt/test/test.h>
|
||||||
|
|
||||||
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size */
|
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */
|
||||||
static OS_TASK WLFTASK; /* Task-control-blocks */
|
static OS_TASK WLFTASK; /* Task */
|
||||||
|
|
||||||
static void wolfTask(void) {
|
static void wolfTask(void) {
|
||||||
|
printf("Begin wolfcrypt tests\n");
|
||||||
wolfcrypt_test(NULL);
|
wolfcrypt_test(NULL);
|
||||||
|
printf("wolfcrypt tests complete.\n");
|
||||||
while (1) {
|
while (1) {
|
||||||
BSP_ToggleLED(1);
|
BSP_ToggleLED(1);
|
||||||
OS_Delay(200);
|
OS_Delay(200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
|
||||||
*
|
|
||||||
* main()
|
|
||||||
*/
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
OS_IncDI(); /* Initially disable interrupts */
|
OS_IncDI(); /* Disable interrupts */
|
||||||
OS_InitKern(); /* Initialize OS */
|
OS_InitKern(); /* Initialize OS */
|
||||||
OS_InitHW(); /* Initialize Hardware for OS */
|
OS_InitHW(); /* Initialize Hardware for OS */
|
||||||
BSP_Init(); /* Initialize LED ports */
|
BSP_Init(); /* Initialize LED ports */
|
||||||
/* You need to create at least one task before calling OS_Start() */
|
/* You need to create at least one task before calling OS_Start() */
|
||||||
OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK);
|
OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK);
|
||||||
OS_Start(); /* Start multitasking */
|
OS_Start(); /* Start the OS */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****** End Of File *************************************************/
|
|
@@ -0,0 +1,69 @@
|
|||||||
|
Steps taken to evaluate wolfSSL with the following:
|
||||||
|
|
||||||
|
Required Software for this guide:
|
||||||
|
IAR Embedded Workbench IDE - ARM v7.60.1 (or similar version)
|
||||||
|
embOS v4.16 (for Cortex-M and IAR compiler)
|
||||||
|
wolfssl (latest version)
|
||||||
|
|
||||||
|
Required items (Hardware) for this guide:
|
||||||
|
Atmel SAM V71 Xplained Ultra (Or equivelent Cortex-M Evaluation Board)
|
||||||
|
Note: Must have J-Trace adapter (SWD or SWD + ETM)
|
||||||
|
j-Trace for ARM Cortex-M Processors
|
||||||
|
Note: You can see here: https://www.segger.com/j-trace-for-cortex-m.html
|
||||||
|
Note: You can also purchase other models, we used one from IAR v3.2
|
||||||
|
20 pin target ribbon cable
|
||||||
|
USB Cable with j-Trace adapter end
|
||||||
|
Micro usb cable
|
||||||
|
|
||||||
|
#--!! NOTE !!--#
|
||||||
|
For this guide "**SAMV71_DIR" will signify the directory:
|
||||||
|
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
# Setup file system to evaluate wolfssl in embOS project:
|
||||||
|
# (If you have not already done so)
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
1. In wolfssl you will notice the directory:
|
||||||
|
wolfssl\IDE\IAR-EWARM\embOS\extract_trial_here
|
||||||
|
|
||||||
|
2. go to embOS website and download a trial for your platform
|
||||||
|
https://www.segger.com/downloads/embos ->
|
||||||
|
embOS trial for Cortex-M and IAR compiler
|
||||||
|
|
||||||
|
3. Extract (unzip) the download to
|
||||||
|
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\extract_trial_here\
|
||||||
|
(Note: you do not need to do anything further in this directory, the
|
||||||
|
wolfSSL evaluation projects will simply link against it)
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
# Evaluate wolfcrypt_tests in embOS project:
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
1. In IAR Workbench go to Project -> Add Existing Project
|
||||||
|
a. Browse to **SAMV71_DIR\embOS_wolfcrypt_test_SAMV71_XULT\
|
||||||
|
b. Choose wolfcrypt_test.ewp and click "Open"
|
||||||
|
|
||||||
|
2. Go to Project -> Rebuild All
|
||||||
|
|
||||||
|
3. Connect your SAMV71 Xplained Ultra to your PC with micro USB in the "Debug"
|
||||||
|
port for power and the J-Link hooked up to SWD pins and your PC
|
||||||
|
|
||||||
|
4. Go to Project -> Download and Debug
|
||||||
|
|
||||||
|
5. Once the "Debug" environment has loaded go to: View -> Terminal I/O
|
||||||
|
(This is where the printf's will be directed to)
|
||||||
|
|
||||||
|
6. Hit "Go" (Debug option with 3 right arrows "→→→")
|
||||||
|
|
||||||
|
7. You should observe the tests run and pass.
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
Thank you for using this guide and we hope this was helpful to you. If you have
|
||||||
|
any suggestions / feedback for us please contact us:
|
||||||
|
support@wolfssl.com
|
||||||
|
info@wolfssl.com
|
||||||
|
|
||||||
|
Copyright © 2016 wolfSSL Inc. All rights reserved.
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
"-p"
|
"-p"
|
||||||
|
|
||||||
"C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd"
|
"C:\Users\boz_windows\Desktop\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_test_SAMV71_XULT\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd"
|
||||||
|
|
||||||
"--semihosting"
|
"--semihosting"
|
||||||
|
|
||||||
|
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armjlink2.dll"
|
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armjlink2.dll"
|
||||||
|
|
||||||
"C:\Users\boz_windows\Desktop\embos-wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_test_SAMV71_XULT\Debug\Exe\wolfcrypt_test.out"
|
"C:\Users\boz_windows\Desktop\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_test_SAMV71_XULT\Debug\Exe\wolfcrypt_test.out"
|
||||||
|
|
||||||
--plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
|
--plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\arm\bin\armbat.dll"
|
||||||
|
|
||||||
--macro "C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac"
|
--macro "C:\Users\boz_windows\Desktop\wolfssl\IDE\IAR-EWARM\embOS\SAMV71_XULT\embOS_wolfcrypt_test_SAMV71_XULT\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -9,7 +9,7 @@ TriggerName=main
|
|||||||
LimitSize=0
|
LimitSize=0
|
||||||
ByteLimit=50
|
ByteLimit=50
|
||||||
[DebugChecksum]
|
[DebugChecksum]
|
||||||
Checksum=99633143
|
Checksum=1313908777
|
||||||
[CodeCoverage]
|
[CodeCoverage]
|
||||||
Enabled=_ 0
|
Enabled=_ 0
|
||||||
[Exceptions]
|
[Exceptions]
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -37,7 +37,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>MacFile</name>
|
<name>MacFile</name>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\samv7-ek-flash.mac</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>MemOverride</name>
|
<name>MemOverride</name>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>MemFile</name>
|
<name>MemFile</name>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\ATSAMV71Q21.svd</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>RunToEnable</name>
|
<name>RunToEnable</name>
|
||||||
|
@@ -312,9 +312,9 @@
|
|||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>CCIncludePath2</name>
|
<name>CCIncludePath2</name>
|
||||||
<state>C:\embos-trial\Start\Inc</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\Inc</state>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport</state>
|
||||||
<state>C:\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup</state>
|
||||||
<state>$PROJ_DIR$\..\..\..\..\..\</state>
|
<state>$PROJ_DIR$\..\..\..\..\..\</state>
|
||||||
<state>$PROJ_DIR$\..\embOS_SAMV71_XULT_user_settings</state>
|
<state>$PROJ_DIR$\..\embOS_SAMV71_XULT_user_settings</state>
|
||||||
</option>
|
</option>
|
||||||
@@ -780,7 +780,7 @@
|
|||||||
<option>
|
<option>
|
||||||
<name>IlinkAdditionalLibs</name>
|
<name>IlinkAdditionalLibs</name>
|
||||||
<state>$PROJ_DIR$\..\embOS_wolfcrypt_lib_SAMV71_XULT\Debug\Bin\wolfcrypt_lib.a</state>
|
<state>$PROJ_DIR$\..\embOS_wolfcrypt_lib_SAMV71_XULT\Debug\Bin\wolfcrypt_lib.a</state>
|
||||||
<state>C:\embos-trial\Start\Lib\os7m_tlv_dp.a</state>
|
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\Lib\os7m_tlv_dp.a</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
<name>IlinkOverrideProgramEntryLabel</name>
|
<name>IlinkOverrideProgramEntryLabel</name>
|
||||||
@@ -1936,52 +1936,52 @@
|
|||||||
<group>
|
<group>
|
||||||
<name>Device_Support</name>
|
<name>Device_Support</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<name>Setup</name>
|
<name>Setup</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
|
@@ -2323,52 +2323,52 @@
|
|||||||
<group>
|
<group>
|
||||||
<name>Device_Support</name>
|
<name>Device_Support</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\startup_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport\system_sam.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<name>Setup</name>
|
<name>Setup</name>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\BSP.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\HardFaultHandler.S</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\JLINKMEM_Process.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\OS_Error.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\RTOSInit_SAMV71_CMSIS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_HardFaultHandler.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_RTT_printf.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_Config_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\SEGGER_SYSVIEW_embOS.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\..\..\..\..\..\..\embos-trial\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
<name>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup\xmtx2.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
|
@@ -11,17 +11,9 @@ wolfssl (latest version)
|
|||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
1. Browse to wolfssl/IDE/IAR-EWARM/embOS/
|
1. Browse to wolfssl/IDE/IAR-EWARM/embOS/
|
||||||
a. create a new directory called <Your CPU or Company or something unique>
|
a. copy/paste the directory custom_port and re-name it to the CPU
|
||||||
(For this guide we'll call that directory "CUSTOM_DIR" and we will use
|
you intend to target. For now we will just use the term CUSTOM_DIR
|
||||||
the term "CUSTOM_DIR" in other directories to signify if a directory
|
to signify a copy of the custom_port directory
|
||||||
should be placed inside the new CUSTOM_DIR)
|
|
||||||
|
|
||||||
2. create new directory in CUSTOM_DIR "wolfcrypt_lib_CUSTOM_DIR"
|
|
||||||
3. create new directory in CUSTOM_DIR "wolfcrypt_tests_CUSTOM_DIR"
|
|
||||||
4. create new directory in CUSTOM_DIR "CUSTOM_DIR_user_settings"
|
|
||||||
5. Copy C:<path to>\wolfssl\IDE\IAR-EWARM/embOS\SAMV71_XULT\
|
|
||||||
embOS_SAMV71_XULT_user_settings\user_settings.h
|
|
||||||
paste that into the new CUSTOM_DIR\CUSTOM_DIR_user_settings\
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
# SECTION 2:
|
# SECTION 2:
|
||||||
@@ -29,7 +21,7 @@ wolfssl (latest version)
|
|||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
1. Open IAR Workbench -> Project -> Create New Project -> Empty Project
|
1. Open IAR Workbench -> Project -> Create New Project -> Empty Project
|
||||||
c. Browse to CUSTOM_DIR/wolfcrypt_lib_CUSTOM_DIR/ (from section 1)
|
c. Browse to CUSTOM_DIR/wolfcrypt_lib_custom_port/ (from section 1)
|
||||||
d. Called it "wolfcrypt_lib" and hit "Save"
|
d. Called it "wolfcrypt_lib" and hit "Save"
|
||||||
|
|
||||||
2. Go to Project -> Add Group...
|
2. Go to Project -> Add Group...
|
||||||
@@ -59,17 +51,17 @@ wolfssl (latest version)
|
|||||||
Project -> Properties C/C++ Compiler -> Preprocessor (Tab)
|
Project -> Properties C/C++ Compiler -> Preprocessor (Tab)
|
||||||
a. In the field "Defined symbols:" add WOLFSSL_USER_SETTINGS
|
a. In the field "Defined symbols:" add WOLFSSL_USER_SETTINGS
|
||||||
b. In the field "Additional include directories:"
|
b. In the field "Additional include directories:"
|
||||||
Click the box with "..."
|
put in this line: $PROJ_DIR$\..\..\..\..\..\
|
||||||
Click <Click to add>
|
and this line: $PROJ_DIR$\..\custom_port_user_settings
|
||||||
Browse to "wolfssl" directory on your PC and click "Select" then "Ok"
|
#---------------------------------------------
|
||||||
You should now see "C:\<path to>\wolfssl" in that field
|
#(Or alternately you can use the browse option to navigate to
|
||||||
Click <Click to add> again
|
#C:\<path-to>\wolfssl and
|
||||||
Browse to "wolfssl\IDE\IAR-EWARM\CUSTOM_DIR\CUSTOM_DIR_user_settings\"
|
#C:\<path-to>\wolfssl\IDE\IAR-EWARM\CUSTOM_DIR\
|
||||||
Hit "Ok", verify the path is correct and hit "Ok" again.
|
# custom_port_user_settings\)
|
||||||
|
#(If you ever need to change or customize your build settings this
|
||||||
(Remember we copy and pasted this over in section 1. If you ever need to
|
#is the file that should be modified:
|
||||||
change or customize your build settings this is the file that should be
|
#CUSTOM_DIR\custom_port_user_settings\user_settings.h)
|
||||||
modified: CUSTOM_DIR\CUSTOM_DIR_user_settings\user_settings.h)
|
#---------------------------------------------
|
||||||
|
|
||||||
7. In Project -> Options -> General Options -> Output (Tab)
|
7. In Project -> Options -> General Options -> Output (Tab)
|
||||||
Check the option for "Library" instead of "Executable"
|
Check the option for "Library" instead of "Executable"
|
||||||
@@ -78,69 +70,77 @@ wolfssl (latest version)
|
|||||||
8. Go to Project -> Rebuild all (The library should build)
|
8. Go to Project -> Rebuild all (The library should build)
|
||||||
|
|
||||||
9. Confirm the library is now located here:
|
9. Confirm the library is now located here:
|
||||||
C:\<path to>\wolfssl\IDE\IAR-EWARM\wolfcrypt_build_lib\Debug\Exe\
|
C:\<path to>\wolfssl\IDE\IAR-EWARM\CUSTOM_DIR\wolfcrypt_lib_custom_port\
|
||||||
wolfcrypt_lib.a
|
Debug\Exe\wolfcrypt_lib.a
|
||||||
|
|
||||||
We are now set to link to this library in the evaluation project
|
We are now set to link to this library in the evaluation project
|
||||||
|
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
# Evaluate in embOS project:
|
# SECTION 3:
|
||||||
|
# Evaluate wolfcrypt tests in embOS project:
|
||||||
#----------------------------------------------------------------------------#
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
|
||||||
1. go to embOS website and download a trial for your platform
|
1. go to embOS website and download a trial for your platform
|
||||||
https://www.segger.com/downloads/embos ->
|
https://www.segger.com/downloads/embos ->
|
||||||
embOS trial for Cortex-M and IAR compiler
|
embOS trial for Cortex-M and IAR compiler
|
||||||
|
|
||||||
2. After download and unzipping open IAR Workbench
|
2. After downloading, extract the zip to:
|
||||||
a. choose Project -> Add Existing Project
|
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\extract_trial_here\
|
||||||
b. Navigate to the downloaded trial then:
|
|
||||||
Start\BoardSupport\<VENDOR>\<CPU>\Start_<CPU>.ewp
|
|
||||||
(For example) Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Start_SAMv71.ewp
|
|
||||||
|
|
||||||
3. Go to Project -> Options -> C/C++ Compiler -> Preprocessor (Tab)
|
3. Open IAR Workbench -> Project -> Create New Project -> Empty Project
|
||||||
a. Add this to the "Defined symbols: (one per line)" Box:
|
c. Browse to CUSTOM_DIR\wolfcrypt_test_custom_port\ (from section 1)
|
||||||
|
d. Called it "wolfcrypt_test" and hit "Save"
|
||||||
|
|
||||||
|
4. Go to Project -> Options -> C/C++ Compiler -> Preprocessor (Tab)
|
||||||
|
a. Add these to the field "Defined symbols:"
|
||||||
|
DEBUG=1
|
||||||
|
__CPU-YOU-ARE-TARGETING__ (For example: __SAMV71Q21__)
|
||||||
WOLFSSL_USER_SETTINGS
|
WOLFSSL_USER_SETTINGS
|
||||||
b. Now in the above box "Additional include directories:"
|
|
||||||
Click on the box with "..."
|
|
||||||
Click <Click to add>
|
|
||||||
Browse to "wolfssl" directory on your computer and click "Select"
|
|
||||||
c. This project will use the same user_settings.h as in the above project
|
|
||||||
where we built the library so both have the exact same settings
|
|
||||||
|
|
||||||
4. Go to Project -> Options -> Linker -> Library (Tab)
|
b. Now in the field "Additional include directories:"
|
||||||
Next to the field "Additonal libraries: (one per line)"
|
$PROJ_DIR$\..\..\..\..\..\
|
||||||
Click the box with "..."
|
$PROJ_DIR$\..\custom_port_user_settings
|
||||||
Click <Click to add>
|
#---------------------------------------------
|
||||||
Browse to C:\<path to>\CUSTOM_DIR\wolfcrypt_lib_CUSTOM_DIR\Debug\Exe\wolfcrypt_lib.a
|
#(Or alternately you can use the browse option to navigate to
|
||||||
Click "Open" and "OK" (twice)
|
#C:\<path-to>\wolfssl and
|
||||||
|
#C:\<path-to>\wolfssl\IDE\IAR-EWARM\CUSTOM_DIR\
|
||||||
|
# custom_port_user_settings\)
|
||||||
|
#---------------------------------------------
|
||||||
|
|
||||||
5. In the main project file "OS_StartLEDBlick.c"
|
5. Go to Project -> Options -> Linker -> Library (Tab)
|
||||||
|
Add to the field "Additonal libraries:"
|
||||||
|
$PROJ_DIR$\..\embOS_wolfcrypt_lib_SAMV71_XULT\Debug\Exe\wolfcrypt_lib.a
|
||||||
|
$PROJ_DIR$\..\..\extract_trial_here\Start\Lib\os7m_tlv_dp.a
|
||||||
|
|
||||||
#--- Headers ---#
|
6. The main project file is located here:
|
||||||
#include <stdio.h>
|
CUSTOM_DIR\wolfcrypt_test_custom_port\Application\runWolfcryptTests.c
|
||||||
#include <wolfcrypt/test/test.h>
|
|
||||||
|
|
||||||
#--- Task for wolfCrypt ---#
|
7. Right Click the project name: Add -> Add Group
|
||||||
static OS_STACKPTR int StackWOLF[20000];
|
add a group called "Application"
|
||||||
static OS_TASK TCWOLF;
|
8. Right Click that group and Add -> Add files
|
||||||
static void wolfTestRun(void) {
|
browse to the main project file in step 5 above
|
||||||
printf("Begin wolfcrypt tests\n");
|
|
||||||
wolfcrypt_test(NULL);
|
|
||||||
printf("Wolfcrypt tests complete\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
#--- Create the task in main() BEFORE calling OS_Start() ---#
|
9. Create Groups and add files for your CPU's support. These will be .c
|
||||||
OS_CREATETASK(&TCWOLF, "wolfcrypt test Task", wolfTestRun, 100, StackWOLF);
|
files found in the extracted directory in two places:
|
||||||
|
|
||||||
6. To get Logging working for seeing test results:
|
extract_trial_here\Start\BoardSupport\<vendor>\<CPU>\DeviceSupport
|
||||||
a. Go to Project -> Options -> General Options -> Library Configuration (Tab)
|
extract_trial_here\Start\BoardSupport\<vendor>\<CPU>\Setup
|
||||||
|
#---------------------------------------------
|
||||||
|
# For example:
|
||||||
|
# extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\
|
||||||
|
# DeviceSupport
|
||||||
|
# extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup
|
||||||
|
#---------------------------------------------
|
||||||
|
|
||||||
|
10. To get Logging working for seeing test results:
|
||||||
|
a. Go to Project -> Options -> General Options -> Library Configuration
|
||||||
b. In the field "Library low-level interface implementation"
|
b. In the field "Library low-level interface implementation"
|
||||||
Check the radio button for Semihosted
|
Check the radio button for Semihosted
|
||||||
Then in the inner field marked "stdout/stderr"
|
Then in the inner field marked "stdout/stderr"
|
||||||
Check the radio button for "Via semihosting" and click "OK"
|
Check the radio button for "Via semihosting" and click "OK"
|
||||||
|
|
||||||
7. Now we're ready to build and debug the project.
|
11. Now we're ready to build and debug the project.
|
||||||
a. Project -> Options -> Debugger
|
a. Project -> Options -> Debugger
|
||||||
In the field marked "Driver" Select drop-down and choose J-Link/J-Trace
|
In the field marked "Driver" Select drop-down and choose J-Link/J-Trace
|
||||||
Click "OK"
|
Click "OK"
|
||||||
@@ -149,10 +149,10 @@ We are now set to link to this library in the evaluation project
|
|||||||
d. Connect the micro-USB to the debug port of the Cortex-M and PC for power
|
d. Connect the micro-USB to the debug port of the Cortex-M and PC for power
|
||||||
e. Project -> Download and Debug
|
e. Project -> Download and Debug
|
||||||
|
|
||||||
8. Once the Debug environment spawns go to View -> Terminal I/O
|
12. Once the Debug environment spawns go to View -> Terminal I/O
|
||||||
This is where the "printf" to stdout will be directed
|
This is where the "printf" to stdout will be directed
|
||||||
|
|
||||||
9. In the Debug Menu bar look for the little square with three arrows pointing
|
13. In the Debug Menu bar look for the little square with three arrows pointing
|
||||||
to the right. When you mouse over it should say "GO"
|
to the right. When you mouse over it should say "GO"
|
||||||
Click this option and in the Terminal I/O Window you should see something
|
Click this option and in the Terminal I/O Window you should see something
|
||||||
like this (depends on which functionality you set in user_settings.h)
|
like this (depends on which functionality you set in user_settings.h)
|
||||||
@@ -187,11 +187,18 @@ DH test passed!
|
|||||||
DSA test passed!
|
DSA test passed!
|
||||||
PWDBASED test passed!
|
PWDBASED test passed!
|
||||||
ECC test passed!
|
ECC test passed!
|
||||||
|
wolfcrypt tests complete.
|
||||||
|
|
||||||
total Allocs = 988
|
#----------------------------------------------------------------------------#
|
||||||
total Bytes = 1471829
|
# SECTION 4:
|
||||||
peak Bytes = 29576
|
# Evaluate benchmark tests in embOS project:
|
||||||
current Bytes = 0
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
Follow the steps from section 3 only using
|
||||||
|
CUSTOM_DIR\wolfcrypt_benchmark_custom_port\
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
#----------------------------------------------------------------------------#
|
||||||
|
|
||||||
Thank you for using this guide and we hope this was helpful to you. If you have
|
Thank you for using this guide and we hope this was helpful to you. If you have
|
||||||
any suggestions / feedback for us please contact us:
|
any suggestions / feedback for us please contact us:
|
@@ -0,0 +1,57 @@
|
|||||||
|
/* ---------------------------------------------------------------------------- */
|
||||||
|
/* Atmel Microcontroller Software Support */
|
||||||
|
/* SAM Software Package License */
|
||||||
|
/* ---------------------------------------------------------------------------- */
|
||||||
|
/* Copyright (c) 2014, Atmel Corporation */
|
||||||
|
/* */
|
||||||
|
/* All rights reserved. */
|
||||||
|
/* */
|
||||||
|
/* Redistribution and use in source and binary forms, with or without */
|
||||||
|
/* modification, are permitted provided that the following condition is met: */
|
||||||
|
/* */
|
||||||
|
/* - Redistributions of source code must retain the above copyright notice, */
|
||||||
|
/* this list of conditions and the disclaimer below. */
|
||||||
|
/* */
|
||||||
|
/* Atmel's name may not be used to endorse or promote products derived from */
|
||||||
|
/* this software without specific prior written permission. */
|
||||||
|
/* */
|
||||||
|
/* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */
|
||||||
|
/* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
|
||||||
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */
|
||||||
|
/* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */
|
||||||
|
/* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
|
||||||
|
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
|
||||||
|
/* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
|
||||||
|
/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
|
||||||
|
/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
|
||||||
|
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||||
|
/* ---------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
||||||
|
/*-Editor annotation file-*/
|
||||||
|
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
|
||||||
|
/*-Specials-*/
|
||||||
|
define symbol __ICFEDIT_intvec_start__ = 0x00400000;
|
||||||
|
/*-Memory Regions-*/
|
||||||
|
define symbol __ICFEDIT_region_RAM_start__ = 0x20400000;
|
||||||
|
define symbol __ICFEDIT_region_RAM_end__ = 0x20460000 -1;
|
||||||
|
define symbol __ICFEDIT_region_ROM_start__ = 0x00400000;
|
||||||
|
define symbol __ICFEDIT_region_ROM_end__ = 0x00600000 -1;
|
||||||
|
/*-Sizes-*/
|
||||||
|
define symbol __ICFEDIT_size_cstack__ = 0x400;
|
||||||
|
define symbol __ICFEDIT_size_heap__ = 0x20000;
|
||||||
|
/**** End of ICF editor section. ###ICF###*/
|
||||||
|
|
||||||
|
define memory mem with size = 4G;
|
||||||
|
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
|
||||||
|
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
|
||||||
|
|
||||||
|
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
|
||||||
|
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
|
||||||
|
|
||||||
|
initialize by copy { readwrite };
|
||||||
|
do not initialize { section .noinit };
|
||||||
|
|
||||||
|
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
|
||||||
|
place in ROM_region { readonly };
|
||||||
|
place in RAM_region { readwrite, block CSTACK, block HEAP };
|
@@ -0,0 +1,67 @@
|
|||||||
|
#ifndef _EMBOS_USER_SETTINGS_H_
|
||||||
|
#define _EMBOS_USER_SETTINGS_H_
|
||||||
|
|
||||||
|
#undef WOLFSSL_EMBOS
|
||||||
|
#define WOLFSSL_EMBOS
|
||||||
|
|
||||||
|
#undef WOLFCRYPT_ONLY
|
||||||
|
#define WOLFCRYPT_ONLY
|
||||||
|
|
||||||
|
#undef NO_64BIT
|
||||||
|
#define NO_64BIT
|
||||||
|
|
||||||
|
#undef SIZEOF_LONG
|
||||||
|
#define SIZEOF_LONG 4
|
||||||
|
|
||||||
|
#undef SIZEOF_LONG_LONG
|
||||||
|
#define SIZEOF_LONG_LONG 8
|
||||||
|
|
||||||
|
#undef HAVE_CHACHA
|
||||||
|
#define HAVE_CHACHA
|
||||||
|
|
||||||
|
#undef HAVE_POLY1305
|
||||||
|
#define HAVE_POLY1305
|
||||||
|
|
||||||
|
#undef ECC_SHAMIR
|
||||||
|
#define ECC_SHAMIR
|
||||||
|
|
||||||
|
#undef HAVE_ECC
|
||||||
|
#define HAVE_ECC
|
||||||
|
|
||||||
|
#undef ECC_USER_CURVES
|
||||||
|
#define ECC_USER_CURVES
|
||||||
|
|
||||||
|
#undef ECC_ALT_SIZE
|
||||||
|
#define ECC_ALT_SIZE
|
||||||
|
|
||||||
|
#undef FP_MAX_BITS_ECC
|
||||||
|
#define FP_MAX_BITS_ECC 528
|
||||||
|
|
||||||
|
#undef TFM_TIMING_RESISTANT
|
||||||
|
#define TFM_TIMING_RESISTANT
|
||||||
|
|
||||||
|
#undef WOLFSSL_SHA512
|
||||||
|
#define WOLFSSL_SHA512
|
||||||
|
|
||||||
|
#undef WOLFSSL_SHA384
|
||||||
|
#define WOLFSSL_SHA384
|
||||||
|
|
||||||
|
#undef HAVE_AESGCM
|
||||||
|
#define HAVE_AESGCM
|
||||||
|
|
||||||
|
#undef NO_INLINE
|
||||||
|
#define NO_INLINE
|
||||||
|
|
||||||
|
#undef BENCH_EMBEDDED
|
||||||
|
#define BENCH_EMBEDDED
|
||||||
|
|
||||||
|
#undef WOLFSSL_SMALL_STACK
|
||||||
|
#define WOLFSSL_SMALL_STACK
|
||||||
|
|
||||||
|
#undef USE_WOLFSSL_MEMORY
|
||||||
|
#define USE_WOLFSSL_MEMORY
|
||||||
|
/* Uncomment to track memory CAUTION: Can cause excess overhead */
|
||||||
|
/* #undef WOLFSSL_TRACK_MEMORY */
|
||||||
|
/* #define WOLFSSL_TRACK_MEMORY */
|
||||||
|
|
||||||
|
#endif /* _EMBOS_USER_SETTINGS_H_ */
|
@@ -0,0 +1,29 @@
|
|||||||
|
#include "RTOS.h"
|
||||||
|
#include "BSP.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <wolfcrypt/benchmark/benchmark.h>
|
||||||
|
|
||||||
|
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */
|
||||||
|
static OS_TASK WLFTASK; /* Task */
|
||||||
|
|
||||||
|
static void wolfTask(void) {
|
||||||
|
printf("Begin benchmark tests\n");
|
||||||
|
wolfcrypt_test(NULL);
|
||||||
|
printf("benchmark tests complete.\n");
|
||||||
|
while (1) {
|
||||||
|
BSP_ToggleLED(1);
|
||||||
|
OS_Delay(200);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
OS_IncDI(); /* Disable interrupts */
|
||||||
|
OS_InitKern(); /* Initialize OS */
|
||||||
|
OS_InitHW(); /* Initialize Hardware */
|
||||||
|
BSP_Init(); /* Initialize LED ports */
|
||||||
|
/* You need to create at least one task before calling OS_Start() */
|
||||||
|
OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK);
|
||||||
|
OS_Start(); /* Start the OS */
|
||||||
|
return 0;
|
||||||
|
}
|
@@ -0,0 +1,30 @@
|
|||||||
|
#include "RTOS.h"
|
||||||
|
#include "BSP.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <wolfcrypt/test/test.h>
|
||||||
|
|
||||||
|
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */
|
||||||
|
static OS_TASK WLFTASK; /* Task */
|
||||||
|
|
||||||
|
static void wolfTask(void) {
|
||||||
|
printf("Begin wolfcrypt tests\n");
|
||||||
|
wolfcrypt_test(NULL);
|
||||||
|
printf("wolfcrypt tests complete.\n");
|
||||||
|
while (1) {
|
||||||
|
BSP_ToggleLED(1);
|
||||||
|
OS_Delay(200);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
OS_IncDI(); /* Disable interrupts */
|
||||||
|
OS_InitKern(); /* Initialize OS */
|
||||||
|
OS_InitHW(); /* Initialize Hardware for OS */
|
||||||
|
BSP_Init(); /* Initialize LED ports */
|
||||||
|
/* You need to create at least one task before calling OS_Start() */
|
||||||
|
OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK);
|
||||||
|
OS_Start(); /* Start the OS */
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
@@ -0,0 +1 @@
|
|||||||
|
An empty directory used when extracting segger trial.
|
@@ -1409,7 +1409,7 @@ void bench_dh(void)
|
|||||||
int i ;
|
int i ;
|
||||||
size_t bytes;
|
size_t bytes;
|
||||||
word32 idx = 0, pubSz, privSz = 0, pubSz2, privSz2, agreeSz;
|
word32 idx = 0, pubSz, privSz = 0, pubSz2, privSz2, agreeSz;
|
||||||
const byte* tmp;
|
const byte* tmp = NULL;
|
||||||
|
|
||||||
byte pub[256]; /* for 2048 bit */
|
byte pub[256]; /* for 2048 bit */
|
||||||
byte pub2[256]; /* for 2048 bit */
|
byte pub2[256]; /* for 2048 bit */
|
||||||
|
Reference in New Issue
Block a user