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
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
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
|
||||
#-----------------------------------------------------------------------------#
|
||||
see README_custom_port
|
||||
|
||||
See custom_port\README_custom_port
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
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 "BSP.h"
|
||||
#include <stdio.h>
|
||||
#include <wolfcrypt/benchmark/benchmark.h>
|
||||
|
||||
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size */
|
||||
static OS_TASK WLFTASK; /* Task-control-blocks */
|
||||
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */
|
||||
static OS_TASK WLFTASK; /* Task */
|
||||
|
||||
static void wolfTask(void) {
|
||||
printf("Begin Benchmark Tests\n");
|
||||
benchmark_test(NULL);
|
||||
printf("Benchmark Tests Complete\n");
|
||||
while (1) {
|
||||
BSP_ToggleLED(1);
|
||||
OS_Delay(200);
|
||||
}
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
*
|
||||
* main()
|
||||
*/
|
||||
|
||||
int main(void) {
|
||||
OS_IncDI(); /* Initially disable interrupts */
|
||||
OS_InitKern(); /* Initialize OS */
|
||||
OS_InitHW(); /* Initialize Hardware for OS */
|
||||
BSP_Init(); /* Initialize LED ports */
|
||||
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 multitasking */
|
||||
OS_Start(); /* Start the OS */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/****** End Of File *************************************************/
|
||||
|
@ -3,6 +3,7 @@ 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)
|
||||
@ -18,57 +19,23 @@ Micro usb cable
|
||||
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 no have:
|
||||
**SAMV71_DIR\embOS_wolfcrypt_lib\Debug\Bin\wolfcrypt_lib.a
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------#
|
||||
# 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
|
||||
https://www.segger.com/downloads/embos ->
|
||||
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
|
||||
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:
|
||||
#----------------------------------------------------------------------------#
|
||||
@ -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
|
||||
(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.
|
||||
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------#
|
||||
#----------------------------------------------------------------------------#
|
||||
|
||||
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:
|
@ -10,7 +10,7 @@
|
||||
|
||||
"-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"
|
||||
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
"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"
|
||||
|
||||
--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
|
||||
ByteLimit=50
|
||||
[DebugChecksum]
|
||||
Checksum=822032712
|
||||
Checksum=-866273587
|
||||
[CodeCoverage]
|
||||
Enabled=_ 0
|
||||
[Exceptions]
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -37,7 +37,7 @@
|
||||
</option>
|
||||
<option>
|
||||
<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>
|
||||
<name>MemOverride</name>
|
||||
@ -45,7 +45,7 @@
|
||||
</option>
|
||||
<option>
|
||||
<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>
|
||||
<name>RunToEnable</name>
|
||||
|
@ -312,9 +312,9 @@
|
||||
</option>
|
||||
<option>
|
||||
<name>CCIncludePath2</name>
|
||||
<state>C:\embos-trial\Start\Inc</state>
|
||||
<state>C:\embos-trial\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\Inc</state>
|
||||
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup</state>
|
||||
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport</state>
|
||||
<state>$PROJ_DIR$\..\..\..\..\..\</state>
|
||||
<state>$PROJ_DIR$\..\embOS_SAMV71_XULT_user_settings</state>
|
||||
</option>
|
||||
@ -780,7 +780,7 @@
|
||||
<option>
|
||||
<name>IlinkAdditionalLibs</name>
|
||||
<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>
|
||||
<name>IlinkOverrideProgramEntryLabel</name>
|
||||
@ -1942,52 +1942,52 @@
|
||||
<group>
|
||||
<name>Device_Support</name>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
<group>
|
||||
<name>Setup</name>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
</project>
|
||||
|
@ -2329,52 +2329,52 @@
|
||||
<group>
|
||||
<name>Device_Support</name>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
<group>
|
||||
<name>Setup</name>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
</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:\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"
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,31 +1,29 @@
|
||||
#include "RTOS.h"
|
||||
#include "BSP.h"
|
||||
#include <stdio.h>
|
||||
#include <wolfcrypt/test/test.h>
|
||||
|
||||
static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size */
|
||||
static OS_TASK WLFTASK; /* Task-control-blocks */
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
*
|
||||
* main()
|
||||
*/
|
||||
|
||||
int main(void) {
|
||||
OS_IncDI(); /* Initially disable interrupts */
|
||||
OS_InitKern(); /* Initialize OS */
|
||||
OS_InitHW(); /* Initialize Hardware for OS */
|
||||
BSP_Init(); /* Initialize LED ports */
|
||||
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 multitasking */
|
||||
OS_Start(); /* Start the OS */
|
||||
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"
|
||||
|
||||
"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"
|
||||
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
"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"
|
||||
|
||||
--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
|
||||
ByteLimit=50
|
||||
[DebugChecksum]
|
||||
Checksum=99633143
|
||||
Checksum=1313908777
|
||||
[CodeCoverage]
|
||||
Enabled=_ 0
|
||||
[Exceptions]
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -37,7 +37,7 @@
|
||||
</option>
|
||||
<option>
|
||||
<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>
|
||||
<name>MemOverride</name>
|
||||
@ -45,7 +45,7 @@
|
||||
</option>
|
||||
<option>
|
||||
<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>
|
||||
<name>RunToEnable</name>
|
||||
|
@ -312,9 +312,9 @@
|
||||
</option>
|
||||
<option>
|
||||
<name>CCIncludePath2</name>
|
||||
<state>C:\embos-trial\Start\Inc</state>
|
||||
<state>C:\embos-trial\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\Inc</state>
|
||||
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\DeviceSupport</state>
|
||||
<state>$PROJ_DIR$\..\..\extract_trial_here\Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Setup</state>
|
||||
<state>$PROJ_DIR$\..\..\..\..\..\</state>
|
||||
<state>$PROJ_DIR$\..\embOS_SAMV71_XULT_user_settings</state>
|
||||
</option>
|
||||
@ -780,7 +780,7 @@
|
||||
<option>
|
||||
<name>IlinkAdditionalLibs</name>
|
||||
<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>
|
||||
<name>IlinkOverrideProgramEntryLabel</name>
|
||||
@ -1936,52 +1936,52 @@
|
||||
<group>
|
||||
<name>Device_Support</name>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
<group>
|
||||
<name>Setup</name>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
<group>
|
||||
|
@ -2323,52 +2323,52 @@
|
||||
<group>
|
||||
<name>Device_Support</name>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
<group>
|
||||
<name>Setup</name>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
</group>
|
||||
<group>
|
||||
|
@ -11,17 +11,9 @@ wolfssl (latest version)
|
||||
#----------------------------------------------------------------------------#
|
||||
|
||||
1. Browse to wolfssl/IDE/IAR-EWARM/embOS/
|
||||
a. create a new directory called <Your CPU or Company or something unique>
|
||||
(For this guide we'll call that directory "CUSTOM_DIR" and we will use
|
||||
the term "CUSTOM_DIR" in other directories to signify if a 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\
|
||||
a. copy/paste the directory custom_port and re-name it to the CPU
|
||||
you intend to target. For now we will just use the term CUSTOM_DIR
|
||||
to signify a copy of the custom_port directory
|
||||
|
||||
#----------------------------------------------------------------------------#
|
||||
# SECTION 2:
|
||||
@ -29,7 +21,7 @@ wolfssl (latest version)
|
||||
#----------------------------------------------------------------------------#
|
||||
|
||||
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"
|
||||
|
||||
2. Go to Project -> Add Group...
|
||||
@ -59,17 +51,17 @@ wolfssl (latest version)
|
||||
Project -> Properties C/C++ Compiler -> Preprocessor (Tab)
|
||||
a. In the field "Defined symbols:" add WOLFSSL_USER_SETTINGS
|
||||
b. In the field "Additional include directories:"
|
||||
Click the box with "..."
|
||||
Click <Click to add>
|
||||
Browse to "wolfssl" directory on your PC and click "Select" then "Ok"
|
||||
You should now see "C:\<path to>\wolfssl" in that field
|
||||
Click <Click to add> again
|
||||
Browse to "wolfssl\IDE\IAR-EWARM\CUSTOM_DIR\CUSTOM_DIR_user_settings\"
|
||||
Hit "Ok", verify the path is correct and hit "Ok" again.
|
||||
|
||||
(Remember we copy and pasted this over in section 1. If you ever need to
|
||||
change or customize your build settings this is the file that should be
|
||||
modified: CUSTOM_DIR\CUSTOM_DIR_user_settings\user_settings.h)
|
||||
put in this line: $PROJ_DIR$\..\..\..\..\..\
|
||||
and this line: $PROJ_DIR$\..\custom_port_user_settings
|
||||
#---------------------------------------------
|
||||
#(Or alternately you can use the browse option to navigate to
|
||||
#C:\<path-to>\wolfssl and
|
||||
#C:\<path-to>\wolfssl\IDE\IAR-EWARM\CUSTOM_DIR\
|
||||
# custom_port_user_settings\)
|
||||
#(If you ever need to change or customize your build settings this
|
||||
#is the file that should be modified:
|
||||
#CUSTOM_DIR\custom_port_user_settings\user_settings.h)
|
||||
#---------------------------------------------
|
||||
|
||||
7. In Project -> Options -> General Options -> Output (Tab)
|
||||
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)
|
||||
|
||||
9. Confirm the library is now located here:
|
||||
C:\<path to>\wolfssl\IDE\IAR-EWARM\wolfcrypt_build_lib\Debug\Exe\
|
||||
wolfcrypt_lib.a
|
||||
C:\<path to>\wolfssl\IDE\IAR-EWARM\CUSTOM_DIR\wolfcrypt_lib_custom_port\
|
||||
Debug\Exe\wolfcrypt_lib.a
|
||||
|
||||
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
|
||||
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
|
||||
a. choose Project -> Add Existing Project
|
||||
b. Navigate to the downloaded trial then:
|
||||
Start\BoardSupport\<VENDOR>\<CPU>\Start_<CPU>.ewp
|
||||
(For example) Start\BoardSupport\Atmel\SAMV71_XPlainedUltra\Start_SAMv71.ewp
|
||||
2. After downloading, extract the zip to:
|
||||
C:\<path-to>\wolfssl\IDE\IAR-EWARM\embOS\extract_trial_here\
|
||||
|
||||
3. Go to Project -> Options -> C/C++ Compiler -> Preprocessor (Tab)
|
||||
a. Add this to the "Defined symbols: (one per line)" Box:
|
||||
3. Open IAR Workbench -> Project -> Create New Project -> Empty Project
|
||||
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
|
||||
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)
|
||||
Next to the field "Additonal libraries: (one per line)"
|
||||
Click the box with "..."
|
||||
Click <Click to add>
|
||||
Browse to C:\<path to>\CUSTOM_DIR\wolfcrypt_lib_CUSTOM_DIR\Debug\Exe\wolfcrypt_lib.a
|
||||
Click "Open" and "OK" (twice)
|
||||
b. Now in the field "Additional include directories:"
|
||||
$PROJ_DIR$\..\..\..\..\..\
|
||||
$PROJ_DIR$\..\custom_port_user_settings
|
||||
#---------------------------------------------
|
||||
#(Or alternately you can use the browse option to navigate to
|
||||
#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 ---#
|
||||
#include <stdio.h>
|
||||
#include <wolfcrypt/test/test.h>
|
||||
6. The main project file is located here:
|
||||
CUSTOM_DIR\wolfcrypt_test_custom_port\Application\runWolfcryptTests.c
|
||||
|
||||
#--- Task for wolfCrypt ---#
|
||||
static OS_STACKPTR int StackWOLF[20000];
|
||||
static OS_TASK TCWOLF;
|
||||
static void wolfTestRun(void) {
|
||||
printf("Begin wolfcrypt tests\n");
|
||||
wolfcrypt_test(NULL);
|
||||
printf("Wolfcrypt tests complete\n");
|
||||
}
|
||||
7. Right Click the project name: Add -> Add Group
|
||||
add a group called "Application"
|
||||
8. Right Click that group and Add -> Add files
|
||||
browse to the main project file in step 5 above
|
||||
|
||||
#--- Create the task in main() BEFORE calling OS_Start() ---#
|
||||
OS_CREATETASK(&TCWOLF, "wolfcrypt test Task", wolfTestRun, 100, StackWOLF);
|
||||
9. Create Groups and add files for your CPU's support. These will be .c
|
||||
files found in the extracted directory in two places:
|
||||
|
||||
6. To get Logging working for seeing test results:
|
||||
a. Go to Project -> Options -> General Options -> Library Configuration (Tab)
|
||||
extract_trial_here\Start\BoardSupport\<vendor>\<CPU>\DeviceSupport
|
||||
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"
|
||||
Check the radio button for Semihosted
|
||||
Then in the inner field marked "stdout/stderr"
|
||||
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
|
||||
In the field marked "Driver" Select drop-down and choose J-Link/J-Trace
|
||||
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
|
||||
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
|
||||
|
||||
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"
|
||||
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)
|
||||
@ -187,11 +187,18 @@ DH test passed!
|
||||
DSA test passed!
|
||||
PWDBASED test passed!
|
||||
ECC test passed!
|
||||
wolfcrypt tests complete.
|
||||
|
||||
total Allocs = 988
|
||||
total Bytes = 1471829
|
||||
peak Bytes = 29576
|
||||
current Bytes = 0
|
||||
#----------------------------------------------------------------------------#
|
||||
# SECTION 4:
|
||||
# Evaluate benchmark tests in embOS project:
|
||||
#----------------------------------------------------------------------------#
|
||||
|
||||
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
|
||||
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 ;
|
||||
size_t bytes;
|
||||
word32 idx = 0, pubSz, privSz = 0, pubSz2, privSz2, agreeSz;
|
||||
const byte* tmp;
|
||||
const byte* tmp = NULL;
|
||||
|
||||
byte pub[256]; /* for 2048 bit */
|
||||
byte pub2[256]; /* for 2048 bit */
|
||||
|
Reference in New Issue
Block a user