Other Parts Discussed in Thread: BOOSTXL-DRV8305EVM, MOTORWARE, DRV8305, LAUNCHXL-F28069M
I tried to use LAUNCHXL-F28027F and BOOSTXL-DRV8305EVM.
I want to control the motor driver from Linux-PC using SCI(UART).
Then I found an example "
instaspin_foc-SCI-eCAP
"
written by maya in old thread "e2e.ti.com/.../1887277",
The example worked, but there are some problems in startup.
I turned on #define SCI_FIFO in sci.h.
Follow codes in void HAL_setupSCI(HAL_Handle handle) of hal.c
>>
msg = "\r\n\n ********** SCI setup is done! **********\0";
SCI_writeMsg(obj->sciaHandle, msg);
<<
makes strange forever messages like 192 192 192 ...
.
But
after pushing HW reset SW(S2), the code works well.
And I tried to ignore these codes like this,
// msg = "\r\n\n ********** SCI setup is done! **********\0";
// SCI_writeMsg(o
The SCI returend short messages like follows, but the communication stops soon
"
read: 192 192 192 192 128 128 128 128 128 128 128 128 1 1 192 192 192 192 192 192 128 128 128 128 1 1 192 192 192 192
read: 128 128 128 128 128 128 128 128 128 128 192 192 192 192
read:
read:
read:
read:
"
How can I reset SCI settings and FIFO buffer correctly?