This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM: Simulator printf

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?

Parents
  • Thanks for your reply, but I guess what I am asking is are there any User Templates, etc. for the M0 that will redirect a printf to the display that Keil labels "printf"? I would be surprised if they expect users to write driver/register level code just to get their debug window to work. There is almost certainly a package available that does this - surely I'm not the first to try to use the debug window?

Reply
  • Thanks for your reply, but I guess what I am asking is are there any User Templates, etc. for the M0 that will redirect a printf to the display that Keil labels "printf"? I would be surprised if they expect users to write driver/register level code just to get their debug window to work. There is almost certainly a package available that does this - surely I'm not the first to try to use the debug window?

Children