I want the target board to run the AES-256_RSM algorithm.But how does chipwhiperer compile user’s own program?
Your best bet will be to:
- Copy an existing project
- Add your required firmware to the project file
- Modify the main C file to run your code
- Modify SRC in the makefile to include your required source files
- You can also optionally change the TARGET variable to change the names of the output build files
As for specifics on how the build system works:
- The makefile in the project folder includes Makefile.simpleserial, which adds required directories and C files for building simpleserial
- It also includes Makefile.inc, which has the main build instructions/build flags and includes hal/Makefile.hal and crypto/Makefile.crypto
- Makefile.hal pulls in different makefiles based on which target your’e building for
- These target makefiles add required directories, source files, additional build flags, and which compiler to use to build the firmware with
- Makefile.crypto does similar things to Makefile.hal, except with crypto (i.e. TINYAES, MBED, etc)
I’d recommend just putting your AES implementation in the project folder and using CRYPTO_TARGET=NONE
Alex
Thank you very much for your detailed answer!