Tuesday, May 22nd 2018, 1:53pm UTC+2

You are not logged in.

  • Login
  • Register

Search results

Search results 1-2 of 2.

Monday, March 19th 2018, 9:52am

Author: rbphilip

[SOLVED] scanf or fscanf on Nordic nRF52840

Thanks for the quick reply, Nino. I've done some further research of my own, and have found the solution. I discovered last week, using the debugger, that fprintf ultimately calls a function called __write that is defined in __libc.h It turns out that there is a corresponding function called __read that is called by fscanf

Saturday, March 17th 2018, 12:28pm

Author: rbphilip

[SOLVED] scanf or fscanf on Nordic nRF52840

Hey... I'm trying to use fscanf & fprintf in code compiled with Embedded Studio and run on a Nordic nRF52840. I managed to derive that fprintf ultimately calls __write with a file handle as a parameter, and so I'm able to differentiate between stdout and stderr and send them to the correct UART. But it is unclear how to create the correct code for scanf (or fscanf). I created the workaround function as suggested in the manual (see below) and it works - but I had to make up my external declaratio...