This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCT8316A: Queries about programming parameters into EEPEOM

Part Number: MCT8316A
Other Parts Discussed in Thread: MCF8316AEVM

Hi Team, 

Could you please tell me how to use the official GUI to program parameters into EEPROM?

From the button in the middle of the motor driver interface, I can see that the serial port transceiver indicator light is continuously flashing, indicating that there is data interaction.

After modifying the parameters of the register, I've found that the serial port transceiver indicator will also flash, indicating that the modification is valid, and it is also possible to control the motor in this online way.

But in this case, I believe these parameters are not programmed into the EEPROM. Every time the breakpoint is restarted, I read back the register and find the parameters are not the parameters for programming but a set of fixed parameters.

I have tried writing into key A5.

Then I clicked.

However, a set of fixed parameters is read back after breakpoint restarts. They are not the parameters I programmed, and now I can only debug online. Could you please tell me why?

Kind regards,

Katherine

  • Hi Katherine,

    Thanks for your question on the Motor Drives E2E Forum. 

    I will aim to provide an answer on this by the end of the week!

    Best,

    Robert

  • Hi Robert,

    Regarding the solidification of the parameters, a temporary solution was found.

    My debugging environment is as follows. The reason why I did this is that I didn't manage to buy an 8316 EVM board.

    As shown in the figure, I used the 2355 EVM board to debug the 8316-circuit board designed by myself.

    First, I used the host computer to debug the parameters I needed under the condition that continuous power supply online was provided. Then, I used an independent programming project provided in this forum to solidify the parameters.

    Of course, for "MCF8316AEVM_EEPROM_WRITE", this project is for MCF8316. I need to adapt it for MCT8316A. The modification won't be complicated. I just need to change the parameter array.

    The picture below shows my current solidified parameters.

    The following ones are the default parameters of the project, which are for MCF.

    Compare it, change this array, and pay attention that the number of loops in the loop body is changed from 24 to 21. In this way, it can be solidified.

    In this way, one of the better functions of the official GUI is that the registers are defined and explained in detail by bit field, making it quite convenient to check.

    As for how to solidify the GUI, I still need a few head-ups. I tried it again today, but it still didn’t work.

    Regards,

    Katherine

  • Besides, after I imported the project, when I clicked the debug button to start programming, it showed that the device was not connected.

    I checked later and found that the "Connect to the target on debugger startup" option in Launch Options was not ticked. I don't know when this was unticked. If anyone encountered similar problems when programming 2355, you could check the settings here.

  • Hi Katherine, 

    Thank you for the additional information. 

    When you want to write to EPROM, use the "Write to EPROM" button on the top right of the GUI. This will write Write 0x8a500000 into register 0x0000E6 to write the shadow register (0x000080-0x0000AE) values into the EEPROM. This will save these register values for next startup.

    Best,

    Robert

  • Hi Robert,

    I understand the meaning of each bit field of the E6 register.

    After debugging a set of parameters, as you said, I clicked 'write to eeprom'.

    After power off and restart, I found that the new parameters had not been programmed.

    Regards,

    Katherine

  • Hi Katherine, 

    Please allow me a few days to provide you with an answer.

    Best,

    Robert

  • Hi Katherine,

    Did you happen to attempt to write to EEPROM while the motor is spinning? If so, the EEPROM write will not work. Please ensure that the motor is not spinning while writing to EEPROM.

    Best,

    Robert