Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

MS2GO Demo board programming based on Dave with printf output.

lock attach
Attachments are accessible only for community members.

MS2GO Demo board programming based on Dave with printf output.

Neo_Lu
Moderator
Moderator
Moderator
50 replies posted 5 likes given 100 sign-ins

In the magnetic sensor development tool, Infineon provides complete supporting software and source code based on Arduino platform; However, this article summarizes the usage of MS2GO EVM board based on Dave IDE, and provides the method of using printf() function to output in the console column.

Part 1: How to use printf() in console?

Step 1: Debug -> Debug Configuration -> Startup, as shown in picture;

Neo_Lu_0-1658823306558.png
Step 2: Project Properties -> c/c++ Build -> Settings -> ARM GCC C Linker -> Miscellaneous -> Other Flags add
"-specs=rdimon.specs" -> Save;
Neo_Lu_1-1658823617567.png

Step 3:  Add "initialise_monitor_handles();" into the main().

int main(void)
{
	initialise_monitor_handles();
......
        printf(...);
......
}

 

 Part 2: The source code of MS2GO for DAVE

The source code is attached and can output data in LSB form, the way to translate data into real value we need can be found in datasheet,

Neo_Lu_5-1658824400350.png

 

 
 

 

 

 

 

Attachments
229 Views