Using CMSIS DSP on the Photon 2

I would like to implement signal processing on the Photon2.

I am trying to get my head around what's required to utilise ARM's CMSIS DSP library.
From what i can see the deviceOS has CMSIS included,e.g. /toolchains/deviceOS/5.5.0/third_party/ambd_sdk/ambd_sdk/component/soc/realtek/amebad/cmsis-dsp/Source/ however when looking at the RTL872xD datasheet, i see that there is two CPU's availible KM4 and KM0, and im not sure which one runs my application (assuming KM4@200MHz), and for what device the CMSIS libraries are built.

My qustion is following, can i utiulize the already build CMSIS_DSP inside device OS or do i need to build CMSIS source from ARM by adding this to my src or lib folder, possibly adding a build.mkas porposed here: https://community.particle.io/t/restructuring-code-in-particle-workbench/68442, and if so, what CFLAGS, defines for FPU etc needs to be included, to build the CMSIS_DSP correctly for the Photon2

You cannot use that source as it's not included in Device OS, and therefore is not exported to user firmware to use. All of Device OS and user firmware runs on the KM4 processor.

You can include your own copy of CMSIS-DSP as a library, pseudo-library, or directly in your firmware. That's what Edge Impulse does for some ML models on Particle devices.

2 Likes