Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 1.71 KB

RockPaperScissorsMachine.md

File metadata and controls

50 lines (27 loc) · 1.71 KB

Rock Paper Scissors with CubeIDE and STM32Cube.AI

Note: the projects in this page are dependent on my original DCT Type-II implementation and CMSIS-DSP.

=> Code

Its recognition performance is very good.

This experiment proves that twenty of DCT Type-II coefficients with a small DNN is sufficient for recognizing rock/paper/scissors.

CubeMX-related problems I faced in this development

printf issues

I faced malloc-related build errors after I added "printf" (_write() function) to "main.c". The following setting solved the problem.

The marked part must be elased.

Build errors

Building with source code generated by X-Cube-AI results in a lot of errors. Building twice resolves this problem. Why?

Resolved:

  • "syscalls.c" is missing in the source tree.
  • Copying and pasting "syscalls.c" from another project to this project solves this problem.

Lack of documentation

I need example source codes of STM32Cube.AI. This page might help: https://wiki.stmicroelectronics.cn/stm32mcu/wiki/AI:How_to_perform_motion_sensing_on_STM32L4_IoTnode#Add_AI_bootstrapping_functions

References

Enabling CMSIS-DSP on CubeIDE

Refer to the following site: Google search "Configuring DSP libraries on STM32CubeIDE"

API reference

References