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.

TM4C132G to TM4C129 code portability



Hello All,


I have a project I have developed on the tm4c123g microcontroller utilizing many of the peripherals on the device (SSI, CAN, ADC, UART, timers etc.).  I am interfacing with these devices using the Tivaware API (ROM runctions).  I am switching to using the tm4c129 device because I require more internal flash. 


My concern is with code portability.  Is there anything I need to be aware of when porting the code over to the new device?  Does the tm4c129 utilize the same Tivaware API for interfacing with its peripherals?  Thank you all!

  • If I may on this "US Thanksgiving day" (Amit relaxed) forum I'll answer "generally" yes - but "entirely the same API" no!

    Be especially observant of different:

    • System Clock functions
    • I2C functions (these are especially (dreadful) and include a "double read" to insure that a key/critical bit has toggled
    • as a non TM4C129 user (we use another's far faster M4 MCU) you should note that not all functions pass in their entirety.   I'm unable to id these - but have alerted you

    Thus - the switch-over will not be "automatic" (i.e. w/eyes closed) but w/"reasonable" scrutiny on your part - should be far faster/easier than, "Starting from scratch."   And your title "TM4C132" (should) be edited/corrected.    While clearly "typo" - it's not a good reflection upon one's,  "Attention to detail" (required by your stated objective.)

  • Hello Peter,

    The Migration Application Note will be rather useful from both HW and API perspective.

    www.ti.com/.../spma065.pdf

    Regards
    Amit
  • Hi Amit,

    Indeed - such a focused note proves of very high value.  

    Yet - (and continuing) poster appears (completely) unaware of such a valued note.    (and I had forgotten its availability)

    Does this not speak to (again) FAR BETTER Promotion of such key/vital/helpful documents - which (far too often) are completely missed by posters?  (and certain semi-regulars) 

    Of course you do not "Make the Rules" - yet "how many times must the 2x4 land" before the methods/madness are (properly) recognized - and altered?

  • Hello cb1

    Yes. And this has been an issue on how information is really looked at. As an example when we "google" for specific topic, we hardly go past 3-4 search pages before re-entering the data. The information overload is to be balanced with information dissemination and means to embed this in forum is a debated topic.

    Regards
    Amit
  • Hi Amit,  

    But why - w/a web-site the size & might of yours - must we, "google?"

    And why - must we (move) from Forum Home Page. (i.e. right here?) 

    Can anyone justify (why) "Blogs, Groups & Videos" receive, "TOP of this Forum, RED-STRIPE Promotion - while ALL "key/critical" App Notes, White Papers, Tech Manuals are "buried" elsewhere?    Thus requiring much (unwanted/unnecessary) extra time & effort to search and (maybe) discover!

    How can this require ANY debate?   Really?  

    Substantial "free Red Space" remains atop this Forum - welcoming key/critical App Notes, White Papers, MCU Manuals etc.

    Repeating this (present) "Clearly Wrong Way" (i.e. bury, hide, obscure) is unlikely to: "Boost MCU Sales - strengthen user allegiance - and avoid (needless) forum repetition!"

  • Hello cb1

    The "google" was an example I had used to explain my point.

    Regards
    Amit
  • You know that many here (especially moi) honor & respect you.    As always - (even for one w/your talents) it proves difficult to, "Defend the Indefensible."  

    That "free Red Space" perched (strategically) atop this very Forum Page - proves ideal for such "Valuable, MCU-critical Data" does it not?   (of course it does!)

    Yet "Blogs, Groups & Videos" rule that space - along with a huge amount of, "empty" white (red) space.   Google is a smoke-screen - free Red Space is so obvious - even poster cb1 can see it!   

  • Hello cb1,

    While hard to miss, the key words would be useful for forum member to relate to what they are looking for. How do I know that a migration guide is under Application Note in the first place. Rather a long debate to start.

    Regards
    Amit
  • My friend Amit - there's room (up top) for, "Blogs, Groups, Videos" - surely "Key/Critical MCU Data" (highly sought) could fit.   I've been here since LMI days (firm which developed "Stellaris" - later acquired by T.I.) and such "necessary tech data" USED to reside, "up top - in highlight - for quick, easy, user recognition!"   And that worked GREAT! 

    And now - ALL of that vital data has been BANISHED!   Few know where!    And - largely unwanted, "Blogs, Groups, Videos" occupy that, "prime, beach-front" real estate!   As shown (below) much area is available (and inviting) for NECESSARY MCU Data - not the (fluff) there now...

    And Amit - can you (ever) recall any poster requesting (anything) regarding, "Blogs or Groups" - staff/I cannot!   Surely, "App Notes, MCU Data, LPad/Eval Kits & Migration" would FIT w/in that "Hot/Top" attention-grabbing Red Zone!  (presently, "significantly wasted" by low-priority, low-interest, "Blogs/Groups" etc.)

    Really Amit - there's no debate - and surely no (long) one!   Is not your specific reference to, "Migration" (really) a "straw-man" type of argument?    No method can (ever) quickly/easily & instantly - identify everything!   (that's the straw-man - the "real issue" is the improvement which Red Zone Promotion clearly provides!)  

    Launching most (all) searches from your vital forum resource is far more intuitive - logical - faster - and much more effective - than forcing your users AWAY!   (to search blindly - where they may encounter, "more easily found" competitve offerings.)

    Few (maybe none) here really care about "Blogs/Groups" - forcing your user-clients (away) from your main forum "Info Central" makes NO Sense!

  • Hello cb1,

    I do understand your point and I would make the recommendation and to an extent try to push for the change as well.

    Regards
    Amit
  • Hi Amit,

    This is NOT (my) point - it is a "summation" of the cries, requests, (even) pleadings of MANY "hapless Forum Users" who KNOW that T.I. can do better!   (Amit you know that my firm serves multiple clients here - I "PM" w/ many forum users - and speak/deal w/key clients on a (near) daily basis!)

    How, "Blogs, Groups & Videos" have been promoted (above) far more vital, "MCU manuals, App Notes (I'm told a NEW Boot-Loader one is GREAT!), LPad/Eval Kits and (even) MCU Migration" escapes our understanding.   And - most likely - escapes any justification.

    You don't make these rules - someone does - and, "Is it not - a (big) person, who can, "Steer Titanic from the Iceberg?"

  • Hello cb1,

    If I were to sum up the "Red Bar", it would rather look like "User Guides", "Application Notes", "Resources".

    User Guide: Covering the documentation of LaunchPad and EVM's
    Application Note: Covering what we are trying to do...
    Resources: Covering MCU Migration Guide, Debugging Common Issues, Handling Bus Faults, JTAG....

    Regards
    Amit
  • Hi Amit,

    That's great - an excellent beginning - can easily be "tweaked" as conditions/usage dictate - and meets the (obvious) goal of, "Launch key/critical, TM4C searches from TM4C's Terrific Forum!   (i.e. your forum)

    And - if and when - that Red Bar (properly) extends to include "valued, highly sought info" - staff/I will make the supreme sacrifice - and click on "Blogs."  (while holding our nose - and (likely) - just once...)