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.

how to migrate project from LM3S to LM4F processor?

Hi

With KEIL IDE, what is the best way to migrate the project from LM3S to LM4F?

Thanks,

-Hailin

  • Hello - you may try this for startershttp://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/t/177520.aspx

    Much depends upon how recent & capable your M-3 is/was.  This is so as many newer functions w/in StellarisWare were aimed @ higher performance/capable M-3 devices - and much (if not all of that functionality continues or has been expanded w/in new M4.)

    Other issue is "migrate" - seems a shame to simply "copy/paste" unaltered code into M4 (most basic "migration") and to "pass" upon the multiple new features/functions/benefits offered by the new M4.  (however - that is a good "first-step" idea to see how much of the "migration" is "automatic.")   So the real definition of migrate comes into play here.  You will note that often the M4 has a far greater "register set" than past M3 - true on an almost "function by function" basis.  (we counted over 50 new registers w/in the M4 PWM feature alone)

    *** Very important that your IDE & StellarisWare be as new/current as possible - older versions will often "fail to include" vital, newer functions or definitions - even worse may improperly define them!  (causing - self-inflicted injury! - you've been warned...)

    You/others will note that "migration challenge" is much more difficult moving in the opposite direction.  (from M4 to M3!)

    Unable to advise as to Keil as our group chose paid IAR - be sure to tell the IDE of your change (via set-up/config) and you should be "good to go..."

  • Hailin,

    The first thing you will have to do is update driverlib. Next, you will have to update your project with any of the changes in the pin connections. No changes need to be made account for the addition of floating point.  The Cortex-M4F is backwards compatible in that regard.  If you wish to use floating point, you will have to add code to your application to enable it.

    Thanks,

    Sean de la Haye