Tool/software:
This query is linked with the query I posted before:
Sample source code:
Steps followed:
Flash the software (Lauterbach debugger).
Flashing the software will cause a system.up and some of the source code gets executed.
Start the debugging session (by pressing go). This will cause another system.up causing a micro reset.
However, during this time hall sensor is already initialized. And there will be no reset of sensor.
During this scenario, we get a previously requested response in the current request. Hence, the current response comes in the next cycle.
Something like this:
If you notice in buffer [0][2], we are getting the angle response.
* Response buffer data is populated in SPI interrupt
So, we were wondering is there a way to reset the hall sensor?
Are there any register configurations that we are missing to perform?