all I am new to Embedded development. Currently, I am working on the discovery board using the discovery book. 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??
- Write the data into a file.
- Get data from that file.
- Post data to the provided link.
I am working with a no_std environment and found nothing on how to output the data into a file directly or from itmdump to a file. This is my repo 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?
The no_std 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() -> !{
let peripherals = cortex_m::Peripherals::take().unwrap();
let mut itm = peripherals.ITM;
iprintln!(&mut itm.stim[0],"Hello Discovery!");
loop {
}
}