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.

Debug lab01 with LaunchpadXL

Other Parts Discussed in Thread: TMS320F28027, MOTORWARE, DRV8301, TMS320F28027F, TMDSHVMTRINSPIN, BOOSTXL-DRV8301, LAUNCHXL-F28027F, LAUNCHXL-F28027

Hello,


I'm really newbie at this area,so this question could be very embarrassing,but i dont know more what to do.

I starded my intership 2 weeks ago and the first work that they assign to me was develop an high voltage motor control with InstaSpin FOC. They already had the C2000 LaunchPadXL with TMS320F28027 for the V/f control,but that isnt enough for what they want, so they replace the TMS320F28027 by the TMS320F28027F at the same LaunchPad to be possible use the InstaSpin FOC control. So, I started search about that and decide to start debugging the projects on the Motorware for the hvkit_rev1p1. Follow all the steps to import the projects, update the compiler and etc,etc.... When I start the build and the debug i havent any problem, but the Led dont blink, so I think that the debug wasnt really successfull. I tried with the same project but now choosing other kit on Motorware, eg. boostxl_drv8301_revB. Import the project, debug and now the led blink. The code it's the same(I guess), the difference its at the line 134 until line 138, of the hvkit_rev1p1, the background instead be white its grey and i dont understand why! maybe the problem its here,i dont know...

Sorry for my primitive english,but i hope that you understand what i want to say.

Thanks,

Bruno Ramos

  • Hello Bruno,

    If you use LaunchPad XL F28027F, indeed you need to select the motorware firmware under \boostxldrv8301_revB folder.

    The main file is the same (proj_lab0xx.c) but the hal module (hal.c, hal.h, hal_obj.h) is different and the files are made  specific to the board (GPIO setting, etc). You can find the files here:

    C:\ti\motorware\motorware_1_01_00_12\sw\modules\hal\boards\boostxldrv8301_revB\f28x\f2802x\src

    Also user.h is different.

    C:\ti\motorware\motorware_1_01_00_12\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2802xF\src

    It is made based on the board specification (voltage scale, etc) so you can not use user.h from HVKIT.

    Hope this is clear.


    Good luck!

    Best regards,

    Maria

  • Hello Maria,


    Thanks a lot for your reply, I already solve my problem!

    Thanks!

  • Hello,

    Sorry to bother you again, but I have a doubt that I think that is very important: Can I develop an high voltage motor control using my LaunchPad XL F28027F whithout using High Voltage Motor Control Kit by TI, but my own developed kit??cause High Voltage Motor Control Kit by TI its too expensive for me and for this initial project that I would try develop.

    Thanks,

    Bruno

  • sure, of course. I've actually seen a HV inverter that used the LaunchPad adapter for the controller. And we'll have new LaunchPads for all future devices, so it's a good idea (similar to our controlCARD). 

    just follow the current / voltage sensing, scaling, phase voltage filter pole design, and the current sense / kelvin ground from our TMDSHVMTRINSPIN design.  Also review Chapter 5 of SPRUHJ1

     

  • Hello Chris,


    Thanks for your reply. So with LaunchPad i can be able to do a control of an high voltage AC induction motor,right? That its a good news! So I can use the Motorware library for example, BOOSTXL-DRV8301, change the user.h and replace by the user.h from hvkit_rev1p1? I think that isn't so simple like that, but the idea seems correct? Sorry for this dumb questions, but I'm a really BIG newbie at this area.

    Thanks

  • Sure.  I've sees someone who did this, they used LaunchPad connectors instead of our controlCARD slot and created a plug-in control module for their HV inverter.

    You will be updating the user.h and hal.c/hal.h files.  You can completely re-use all of the proj_lab##.c files (and everythign else in \src) as is.

     

  • Hello,


    Thanks Chris for your time and pattience, but now I'm very confused! I read all the posts again and try some things and Im so confused that i dont really know what to do or what its the right to do. Like i said my point its to do AC induction motor control with my own developed hardware and using the LaunchPadXL 28027F for FOC control. So wich motorware firmware I should choose for this case (to use the lab0xx.c on motorware folder) and the files I should change from where to where? I'm really confused,maybe you already aswered this in the previous posts,but I'm stucked!


    Thanks

  • Hello Bruno,

    If you want to make your expanded board to be like HVKIT then you should use HVKIT motorware (not BOOSTXL). Actually you can modify any motorware firmware manually but I think this will take long way for you.

    To be easier, directly choose the one from:

    C:\ti\motorware\motorware_1_01_00_12\sw\solutions\instaspin_foc\boards\hvkit_rev1p1\f28x\f2802xF

    In this case, you can skip Project Lab 01 (because your LED won't blink if you use the original firmware of HVKIT. This Projec Lab 01 of HVKIT is used for F28027 ControlCard, not for LaunchXL-F28027F) and continue to Project Lab 2b.

    I have done this for my project but in this case I made my own LaunchXL-F28027F and then made separate HVKIT board.

    Please compare your Launchxl-F28027 with ControlCard F28027 for the connections to HVKIT.

    Hope this is clear.

    Good luck!

    Best regards,

    Maria

  • Hello Maria,


    Thanks a lot for your reply, now I have clarified some ideas. I need to search more and deeper to adapt my LaunchPad to the developed board done by a colleague of mine for V/f motor control, before I started working at this FOC project. He allerted me for the bootstrap control at the initialization to charge the capacitors and the commutation of IGBT's. Could you give me a brief explanation how you did that on the code? Sorry if I'm asking an inappropriate thing for you. :S

    So the hal.c/hal.h files that Chris refered back, I dont need to replace by others?Or its the files that I need to check to compare the LaunchPad with ControlCard?


    Thanks,

  • Hello Bruno,

    I am sorry that I don't know what you mean by bootstrap control that you need in your hardware.

    I made my HVKIT similar to TI HVKIT, I only changed the IPM and used similar components, with similar voltage filter pole and voltage scale (please see InstaSPIN MOTION-InstaSPIN FOC User Guide - spruhj1c- about this hardware requirement).

    About hal.c and hal.h, if you only want to run the motorware project without any additional function (for example SCI, SPI), then you don't need to change anything. But please make sure that your launchpad connection follows the ControlCard F28027 connection.

    Best regards,

    Maria

  • Hello Maria,

    Thanks a lot for your disponibility! :)  I'm just a little apprehensive about what my colleague said about the bootstrap. He told me that it is important for the hardware, but I dont know. I need to search more about that. Someone could give me some tips?:)

    Thanks,

    Bruno