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.

TMS320F28388D: Porting FOC code from F28002 Motor Control SDK Universal Project Lab

Part Number: TMS320F28388D
Other Parts Discussed in Thread: TMDXIDDK379D, TMDSCNCD28388D, TMDSHSECDOCK, LAUNCHXL-F280025C, BOOSTXL-DRV8323RS

Hello, we are currently working on porting code over from the 28002 to the 28388D and have manually gone in to update hal.h and hal.c to remap GPIO and analog signals.  Unfortunately we are running into some issues.  Is there hal files created for any of the 28388D examples we could reference?  Besides just remapping, would there be anything else we would need to change/update between the two micros?

TIA
Jonathan

  • Hi Jonathan,

    Are you referencing section 3.3 Porting Reference Code to New C2000 MCU of the Universal Motor Control Lab Guide? You'll need to follow those steps and make changes for F2838x device.

    What configuration of the Universal Project Lab are you wanting to use with F2838x device? i.e. sensored / sensorless, observer type, etc.

    We do have some other F2838x motor control projects, but they are using the TMDXIDDK379D hardware and the software will have some differences.

    Best,

    Kevin

  • Hello Kevin,

    Thank you for the quick reply!

    We have our motor running senseless FOC successfully using the LAUNCHXL-F280025C and BOOSTXL-DRV8323RS.  Prior to spinning up our custom board using the F2838x, we first wanted to port the codebase over and test using the TMDSCNCD28388D, TMDSHSECDOCK, and BOOSTXL-DRV8323RS.  I'm assuming as both the F280025 and F2838x are C2000's and able to fun the fast libraries the only files needing changed would be hal.h and hal.c?  Within those files would it only require remapping the ADC's and GPIO's?

    Best,
    Jonathan

  • Hi Jonathan,

    The driver files included and used will need to be for the F2838x device, along with the hal.h/c changes. Please follow each instruction in the User's Guide section I mentioned.

    Fast library should be able to run on F2838x device OK. Let me double confirm that there's no additional considerations to be made regarding that.

    Best,

    Kevin

    Edit: Above is correct, you just need to change the device configuration codes according to your hardware.