Other Parts Discussed in Thread: DRV8320
Hi,
I need to share with some other peripherals the SPIA which is connected to the DRV8320.
But as soon as I do anything with the SPIA_STE pin (to prevent the slave select to DRV8320) the Instaspin FOC stop doing anything.
If I add these two instructions to the main loop of is07_speed_control.c main loop, the motor no longer runs:
GPIO_setPinConfig(GPIO_57_GPIO57); // This should prevent the STE signal
// here I will add the code to talk to my peripherals
GPIO_setPinConfig(GPIO_57_SPISTEA); // This should restore the STE/SPI functionality
This 'trick' worked with F28027.
But with F28049C nothing seems to restore the FOC functionality.
Even re-initializing the SPI with the HAL layer methods prevents the FOC from doing its business.
And even if above are not in the loop, even if I do them once before I enter the mainloop, the problem appears.
I'm out of ideas.
wbr Kusti