You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 vuosi sitten
12345678910111213141516171819202122232425262728293031323334353637
  1. Run cryptographic software on STM32-discovery board
  2. The scheme is optimized version of saber copied from ``pqm4``
  3. places. The goal is simply to have a starting point for Cortex-M4
  4. development.
  5. ### Connecting the board
  6. To use it connect micro-usb and UART to STM32-discovery board. The micro-usb
  7. allows programming over st-link. After connected the ``lsusb`` should display
  8. something like ``STMicroelectronics ST-LINK/V2.1``.
  9. The UART provides an standard output. Connect the `TX`/`TXD` cable to the `PA3`
  10. pin on the board, and connect `RX`/`RXD` to `PA2`.
  11. ### Pre-requists
  12. Requires libopencm3. The ``libopemcm3`` is an open-source version of the firmware for many of
  13. Cortex-M0/M3/M4 development kits. See https://libopencm3.org/.
  14. Requires stlink. This is used to flash the board. For compilation instructions look here:
  15. https://github.com/stlink-org/stlink/blob/master/doc/compiling.md
  16. ### To compile
  17. ```
  18. cd 3rd/libopencm3; make
  19. ```
  20. With that one can now compile the solution
  21. ```
  22. cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake
  23. cmake --build build
  24. cmake --build build --target flash
  25. ```