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.

Port F2803X Project to F28069

Other Parts Discussed in Thread: LAUNCHXL-F28069M, CONTROLSUITE, MOTORWARE

Hello,
I am trying to control qty2-DC brushed motor and one stepper motor at the same time. I have downloaded Project build running qty2 DC motor or one Stepper motor for a DRV8412-C2-Kit that use F28035 Processor.  

I like to use InstaSPIN-MOTION enabled C2000 (launchpad) LAUNCHXL-F28069M to control qty2 DC motor and stepper motor. I also have DRM8871EVM for brushed DC motor and  and DRV 8881EVM to drive Stepper Motor. 

I like to port code from workbook "2XDC motor" that was developed for F2803X processor to a work book for F28069 processor.

There are five drivers library namely PWM,DAC,PID,Rampgen and QEP. My problem is when I try to port code for those library driver files to F28069 work book is not working.

Please advise best way to port code from F28035 environment to F28069 environment.

Thank you very much in advance.

  • Hi Samir

    We will move your post to InstaSPIN forum for better support.

    Best regards,

  • in controlSUITE there are at least 2 kits that have the code dual-sourced to run on F2803x and F2806x. As examples see the project in:
    C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128
    C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105

    this will give you some ideas on which files you need for 6x and which can be reused (add some IFDEF statements)

    with this, and setting up the pin map for the LAUNCHXL-F28069M you should be able to make some progress.

    one other gotcha is that the 6x on your Launchpad is NOT a normal 69. It has InstaSPIN motor control libraries in a portion of ROM. If your project is using IQmath it may look in the wrong ROM memory location on these devices. The solutions are
    1. don't use IQmath (not very practical)
    2. add the IQmath library to your project (don't reference the pointers to ROM)
    3. add the memory map file for a 69M (from MotorWare) to your project so that the compiler knows where to find them on the 69M device
  • I'm working on the same problem. My questions are,

    -I want to create a new project for the 69M, but under variant there is no 69M, just 69.
    -There is a 69M ram link command file either.
    -If I want to use IQmath, do I set the floating support to "softlib" even though the processor has FPU?
    -Can't find the memory map file for the 69M in motorware
    -Can I just copy the macros for pwm, pid, rampgen, directly into a new header file?

    Stewart Prince
  • A 28069M is the same as a 28069 except a few changes in the ROM.  You should be able to take a 28069 project and rebuild it for 28069M  by making a few changes to the linker command file.

    stewart prince said:
    There is a 69M ram link command file either.

    The RAM is the same, but as Chris mentioned, the ROM is slightly different.  Please refer to the Techical Reference Manual www.ti.com/lit/SPRUH18 Figure 2-1 and Figure 2-2 for the locations of the IQmath library sections in ROM.  

    stewart prince said:
    -If I want to use IQmath, do I set the floating support to "softlib" even though the processor has FPU?

    I would suggest using the floating point unit and the fastRTS library.  If you do want to use IQMath you can mix it with FPU32 or use softlib.  Just make sure to include the right IQMath library depending on your choice.  (the one with fpu32 in the name will link with an FPU32 enabled project).


    Write back and let me know if this worked for you.

    Lori

  • I have filed a bug report requesting that M and F linker files be added to the material.