I have created a project in Microvision 5 for an ARM Cortex-M0 (ARMCM0), and enabled the Simulator. I pull up the Debug (printf) Viewer and run the following code
#include <stdio.h> main(void) { printf("Hello world\n"); }
but no output appears in the Debug window. The code is definitely running to completion (I added additional statements to check). I am running an Evaluation copy of Microvision V5 17.0.0.
Am I missing some checkbox or option to redirect output in the Simulator?
I'm not sure if this is exactly the correct answer but you must get my drift
if ( value > 28000 ) value = 28000; else if (value < 0) value = 0;