Send & Receive Data over USART1 using Motor Control Protocol & ASPEP
Hi,
I am currently working on a project where I have to develop the firmware for the BLDC motors used in our device. I have been struggling to use this board along with the MCSDK as advertised. I want to get started by sending data over USART1 (open from a tool like Ucon or Putty) which can control the motor in a way similar to the MC Pilot. I am aware of the use of DMA over UART using the HAL library but I am trying to use the MCPS & ASPEP protocol that is already implemented.
For example when I type in START_MOTOR from the putty console, the motor starts.
I have looked through the code that was auto-generated and found that the Systick IRQ calls the MC_Scheduler which checks the rxBuffer & calls the MCP_ReceivedPacket.
I am not sure how my typed command will be processed.
I tried using the HAL library functions but I don't see any response from the motor or the states changing from IDLE.
