I am using the 6DOFBareBoardeCompass/FRDM_KL26Z library program and I am trying to get output such as magnetometer readings written to Putty using the PRINFT function with no success. Is this actually possible and if not is there any other way of getting output written to putty. I can see the UART functions but I cant get them to work either.
Thanks.
Solved! Go to Solution.
Ciu,
Because printf is a very large function, requiring a lot of memory, we don't include it in the standard build. Instead, we use dedicated UART functions (which you've noted) to build up binary data structures to transmit data back to the Sensor Fusion Toolbox. If you look at function CreateAndSendPacketsViaUART() in drivers.c, you will see that we hand packet a reusable buffer by:
The protocol is described in the user guide, and you can use the Sensor Fusion Toolbox to log data to a file. I think you'll find the data you are after is already being transmitted.
Mike
Ciu,
Because printf is a very large function, requiring a lot of memory, we don't include it in the standard build. Instead, we use dedicated UART functions (which you've noted) to build up binary data structures to transmit data back to the Sensor Fusion Toolbox. If you look at function CreateAndSendPacketsViaUART() in drivers.c, you will see that we hand packet a reusable buffer by:
The protocol is described in the user guide, and you can use the Sensor Fusion Toolbox to log data to a file. I think you'll find the data you are after is already being transmitted.
Mike