Am I doing something wrong, it appears that math.h is missing round. Are these higher level math functions hidden in some other library?
Welcome in the forum!
You need to set in
Creator -> Project -> Build Settings -> Linker the "Additional Libraries" to "m" (Yes, just the letter 'm')
That doesn't appear to be an option. I hadn't realised that PSoC creator doesn't directly imply a compiler. I'm guessing Keil 9.51 isn't C99 capable.
I really tried to attach this image:
Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
No, I guess I'll just resolve to live in the 90s
In the 90ths??? The 8051 design was made in 1980!!! So it is a little bit oldish, see here
Keil have had 17 years to update their compiler. It appears that it's still a supported toolchain.
Consider switching to a more modern PSoC family as PSoC5 which has got an ARM M3 core and uses gcc. Fewer problems (apart from some new ones), faster, cleaner. Same components, only trouble is from different endianess between 8051 and M3.
Brand new design, but the board designer laughed at the idea of using a PSoC5. The amount of time we'd have saved if we'd insisted.