C/C++ Unit Test runtime error (Keil, ARM, CMSIS)
we used the QuickStart MDK-ARM unit test example and applied it to our project. We are using Keil uVision 5.26.2 with Parasoft C/C++ Test 10.4.1. The project builds in Keil and executes on the target without any issues. The Parasoft project (Keil uVision import using Batch File output) is setup for Static Analysis and this run without issues as well.
I have auto-generated unit test cases for various module (c-file). When I try to execute the test cases using the Keil uVision Tests - ULINKPRo or Simulator (ITM) configuration, I seem to get the follow error.
C/C++test analysis errors in 1. Test execution: error compiling file. "C:\\Keil_v5\\ARM\\PACK\\ARM\\CMSIS\\4.5.0\\CMSIS\\Include\core_cm3.h", line 128: Error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" ^ C:\Program Files\Parasoft\C++test\10.4\engine\runtime\src\transport\CppTestTransportITM.c: 0 warnings, 1 error
Our project uses the nRF52832 chipset and pretty sure
__FPU_PRESENT is set correctly. We get this error no matter what module is selected for execution.
Is there something I'm missing in the configuration in Keil uVision and/or Parasoft?