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.

DRV8350H-EVM: sensored Demo Code packaged in slvc755 not buildable as-is

Part Number: DRV8350H-EVM

Dear all,

I needed a "quick fix" to running a sensored three phase motor, so I bought the DRV8350H-EVM, as it is listed with all the right qualifications and comes with ready to be built firmware.

However, the code supplied does not build, as has also been noted here (as an aside, but still): e2e.ti.com/.../3273988

It's bad enough that the code does not work, but it actually cannot be built. So this version that's on the website has clearly never been built by whomever is maintaining it, so it has obviously also not been tested. I'll not go into the myriad "magic numbers" in this code, many of which I suspect being things that should come from the TrapSensored_Parameters_Setup.h, or if not probably be defined there.

I "fixed" the Sensorless references as indicated in the post above, and tried to add some other fixes that seemed obvious, yet I still get warnings, among which the redefines of absolute symbols as also indicated in the post above. When I found a floating point "MotorPhaseCurrentLimit" being loaded with a 12bit ADC value from the parameters header directly with no math, I suddenly remembered that I bought this kit because it was advertised as a plug-and-play solution with a PC Gui to quickly verify the functionality of a motor-setup for a customer, not to spend two weeks debugging the demo code.

I'm using CCS v10.1.1.00004, downloaded Nov 13th 2020. (copyright 2016 in the info pop-up, but released Sep 21st 2020 according to the download page) and the SLVC755 package downloaded from the site on the same date. Although apparently this was also already a problem in March of this year (again see the post above).

Is there anyone who has manufactured a copy of this code that compiles and also correctly interfaces with the GUI, because at this moment the EVM does not respond at all.

  • Hey Robert,

    I downloaded the most recent CCS version and FW package today.

    For sensorless, it compiled and ran on the EVM, first time. While there's some warnings everything works as expected:

    For sensored, it did not compile for the first time but going into Init.c, it was clear that there was a typo where the SensorlessTrapConfig object was present instead of SensoredTrapController, as you and the post mentioned. Below, I commented the old code and added the SensoredTrapController object for the code and that's all that was need for it to build and run on the EVM.

    I definitely agree, the code didn't build correctly out of the zip file, so that's on us.

    I'm not sure of what error you're now facing with CCS but it doesn't sound like a typical issue as I helped a couple other users over the last 2 weeks on the forum that were using this exact EVM (and FW, specifically sensored). This leads me to believe it has something to do with the computer and install, so we might need to get the CCS tool team involved as I can't replicate your issue. Besides the general "run in admin", "try it on another computer", "uninstall, reinstall in default directories," and other "google-able" debug steps, you'll have to help us narrow down the problem.

    Best,

    -Cole