The Cmake system of TF-M explicitly adds the define __thumb2__ to the command line, while it should be defined when the CPU architecture is properly set.
Verify this behaviour with the currently supported compilers, and remove the explicit definitions from cmake.