user25974: I have a text file with hex values formatted in the following style:
A0 3F 55 01 00 C7 55 01 00 C7 AA 29 71 11 00 0B
00 C7 AA 29 71 1F AA 29 71 11 55 01 A0 3F 55 DC
...

How can I save this data into my Arduino's Flash (to save RAM)? What libraries are needed? Is there any tool that can automatically create code for this purpose?
After I save this data into the Arduino's Flash, I want to send the data via Serial. I have to send it as binary.
A solution without saving it into the Flash would be also OK.
I am using an Arduino Due.

user4628: If I understand your question correctly, you need to integrate this data into a .ino script.  Probably as a byte array. Then the script can read the array and Serial.write its content.
You could write a small tool in Python or else on your computer, that takes the text file and converts it into a .h header. Include that into your .ino script. Or use your favorite text editor to format the data into C++ code, and copy/paste that into your script.

25974: <p>I have a text file with hex values formatted in the following style:</p>

<pre><code>A0 3F 55 01 00 C7 55 01 00 C7 AA 29 71 11 00 0B
00 C7 AA 29 71 1F AA 29 71 11 55 01 A0 3F 55 DC
...
</code></pre>

<p>How can I save this data into my Arduino's Flash (to save RAM)? What libraries are needed? Is there any tool that can automatically create code for this purpose?</p>

<p>After I save this data into the Arduino's Flash, I want to send the data via Serial. I have to send it as binary.</p>

<p>A solution without saving it into the Flash would be also OK.</p>

<p>I am using an Arduino Due.</p>
 4628: <p>If I understand your question correctly, you need to integrate this data into a <code>.ino</code> script.  Probably as a byte array. Then the script can read the array and <code>Serial.write</code> its content.</p>

<p>You could write a small tool in Python or else on your computer, that takes the text file and converts it into a <code>.h</code> header. Include that into your <code>.ino</code> script. Or use your favorite text editor to format the data into C++ code, and copy/paste that into your script.</p>
