Context
I am working on a brushless DC motor controller project. I need a technique that would allow me to simulate the code controlling a virtual model of a brushless motor (written in C).
Challenge
The difficulty is to to check that my interrupts are correctly set to avoid burning my development board or damaging my motor.This is why I would like the AVR studio simulator and a model of my motor. For that, I have already some C code simulating a brushless DC motor and I would like to run that motor simulation code in parallel with my microcontroller code.
I wish not to run the motor code in the simulator as well because it makes uses of floating point arithmetic: I want this motor code to run on my PC.
First step towards a result
I found a way to stimulate the editor. Unfortunately, I must create the input sequence before hand in a file and this is not convenient because my motor simulator must react depending on the microcontroller code. It seems that a good approach could leverage Python debug scripting interface.
Question
However, the documentation seems to be lacking information: how do I input values to the AVR Studio 6 simulator to the Python scripting interface?
Thanks