Clone this repo into an empty folder
Clone https://github.com/SimulationEverywhere/cadmium_v2/tree/dev-rt into the sample folder
Move the boost_1_70_0.7z from SampleRTModel up one directory. Unpack it and install (Offical instructions found here https://www.boost.org/doc/libs/1_70_0/more/getting_started/unix-variants.html)
cd boost_1_70_0
bootstrap.sh
./b2 install
Your folder directory should look like:
To run this model
Plug you microcontroller in
cd SampleRtModel/top_model
mbed compile --target NUCLEO_F401RE --toolchain GCC_ARM --profile ../cadmium.json --flash
This mode will take a digital input from pin 13 and relay it to pin 2 using a polling rate of 100ms while the digital inputs from pin 13 will also be relayed to pin 4 using an interupt. The interupt signal should be faster than the polling.
Sample video avaible at https://github.com/jonmenard/SampleRTModel/blob/main/ReadMeFiles/AsynchrnousEventTest.mp4