The questions about c11 (C version) and PSoC 4 is :
1º) I try to find information about the specific C language is valid for the PSoC, somebody have some thing ??
2º) How I active the C11 mode en PC Creator 3.3??
3º)How is the implementation for to the "pow" instruccion and "complex" number
Very thanks for your time
Creator 3.3 uses GNU gcc 4.9 which is fairly recent. I just tried adding the command line switch '-std=gnu11' to the compiler, and it worked fine on a simple sample project. '-std=c11' doesn't work since Creator generates some code thats not really standard compliant.
Go to project / Build settings, ARM GCC / Compiler / command line and add it there. Maybe you need it for the linker too, I did not test this on real hardware 🙂
Hi hi, thanks for your comment. yes I had trying with -std=c99 but now i will put c11. do you know how implement math function or complex number with PSoC?.
Also, do you know where is the valid list of C command ?
Thank for your time
Don't use 'c11', it won't work.
But you confuse me. You insist in using C11 but are asking about "valid C commands". Are you looking for a C reference (such as the one from GNU: http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html )? Or dou you look for a reference to the C standard libaries (see http://www.cplusplus.com/reference/clibrary/ - note that some of the libraries have no meaning on an embedded system)?
AFAIK there is no C standard library for complex math functions, and you cannot easily use C++ in PSoC Creator. For math, add 'math.h' as an include, and then add libm to your project libraries (see the knowledge base: http://www.cypress.com/knowledge-base-article/using-math-functions-psoc-creator-psoc-4-or-psoc-5lp-g... )