Saving ASCII data into an external file from an embedded target

Share code examples or discuss embedded software, including device drivers, interrupt handlers, middleware and application code.

Moderators: Markus Girdland, Mattias Norlander

jorobins
Posts: 1
Joined: Thu Apr 11, 2019 12:48 am

Saving ASCII data into an external file from an embedded target

Postby jorobins » Thu Apr 11, 2019 1:04 am

I have an STM32F429 embedded target application and I want to get some ASCII data out of that into an external file. What would be the best way to do that?

I considered using printf via SWV to print to a console. Can that be redirected to an external file (Atollic9.3.2)? I am able to successfully use SWV to retarget printf data out via ITM_SendChar ( http://blog.atollic.com/cortex-m-debugging-printf-redirection-to-a-debugger-console-using-swv/itm-part-1 ).

Is there any better/alternative method that I could use? I use a STLINK3 10-pin connector probe. I'm a test engineer and fairly new to embedded development.

frank_ee
Posts: 117
Joined: Wed Apr 05, 2017 5:08 pm
Location: USA

Re: Saving ASCII data into an external file from an embedded target

Postby frank_ee » Mon Apr 15, 2019 7:12 pm

You can use an embedded file system which will require a USB device stack to write to a USB flash drive. Easier option will be store the data into the flash memory which can be read later. Have you tried sending data out the serial port and capture the data on a PC terminal program?


Return to “Embedded target code development discussions”

Who is online

Users browsing this forum: No registered users and 1 guest