title: method to get output of itm.txt in a file?
body: <p>all I am new to Embedded development. Currently, I am working on the discovery board using the <a href="https://docs.rust-embedded.org/discovery/index.html" rel="nofollow noreferrer">discovery book</a>. I have almost completed the book now I want to achieve more in this.
  What do I want to do?
  I recently worked on sensors, I got the reading from the sensors on the itmdump(itm.txt) file. Now I want this data to post on an (HTTP request).
  My plan??</p>
  <ol>
  <li>Write the data into a file.</li>
  <li>Get data from that file.</li>
  <li>Post data to the provided link.</li>
  </ol>
  <p>I am working with a no_std environment and found nothing on how to <strong>output the data into a file directly or from itmdump to a file.</strong>
  This is my <a href="https://github.com/NitinSaxenait/My_DiscoveryRepo/blob/hardware_talks/Hello_from_stm32/src/main.rs" rel="nofollow noreferrer">repo</a> I want to write this hello discovery into a file.
  Can anyone please help me with how can I achieve this? and am I going right with the steps to achieve my task?</p>
  <p><strong>The no_std code:</strong></p>
  <pre><code>#![no_main]
  #![no_std]
  
  
  use cortex_m_rt::entry;
  use cortex_m::iprintln;
  use panic_itm as _;
  use stm32f3_discovery::stm32f3xx_hal::prelude::*;
  
  #[entry()]
  fn main() -&gt; !{
  
      let peripherals = cortex_m::Peripherals::take().unwrap();
      let mut itm = peripherals.ITM;
  
  
      iprintln!(&amp;mut itm.stim[0],&quot;Hello Discovery!&quot;);
  
      loop {
  
      }
  }
  </code></pre>