hello! I'm use printf function to print message on console, but not worked. My debugger is Jlink V9, here is my project settings:
So, is there anyway to print messages on s32ds console? Or only use uart/RTT?
解決済! 解決策の投稿を見る。
Hi @Vandarkholme,
Please enable semihosting by declaring and calling initialise_monitor_handles().
#include "Mcal.h"
#include "stdio.h"
volatile int exit_code = 0;
int counter, limit_value = 1000000;
extern void initialise_monitor_handles(void);
int main(void)
{
initialise_monitor_handles();
for(;;)
{
counter++;
if(counter >= limit_value)
{
counter = 0;
printf("Hello World\n");
}
}
return exit_code;
}
Also, make sure that a library that supports semihosting is configured:
Best regards,
Julián
Hi @Vandarkholme,
Please enable semihosting by declaring and calling initialise_monitor_handles().
#include "Mcal.h"
#include "stdio.h"
volatile int exit_code = 0;
int counter, limit_value = 1000000;
extern void initialise_monitor_handles(void);
int main(void)
{
initialise_monitor_handles();
for(;;)
{
counter++;
if(counter >= limit_value)
{
counter = 0;
printf("Hello World\n");
}
}
return exit_code;
}
Also, make sure that a library that supports semihosting is configured:
Best regards,
Julián