Hercules LaunchPad

From Texas Instruments Wiki
Jump to: navigation, search




LaunchPad Resource Portal  LaunchPadRocket.png


This wiki is open and can be edited by all!

More information available @ www.ti.com/launchpad


LaunchPad Banner.jpg

Looking for datasheet? Go to Hercules TMS570LS04 Microcontroller.
Looking for datasheet? Go to Hercules RM42 Microcontroller.

Tutorials

Note that most tutorials below are based on Code Composer Studio unless otherwise noted.

Getting Started: First Steps with the Hercules LaunchPad

Have a tutorial of your own? Add it to the list above!

Hercules Safety MCU Training

Other Projects

Hercules Safety MCU Demos

The Hercules Safety MCU Demos are designed to highlight key safety, data acquisition and control features of the Hercules platform of microcontrollers. The demos are designed to be run on a PC in conjunction with either a Hercules USB Development Sick or a Hercules Development Kit (HDK) or a LaunchPad.

Using the MibADC to collect Ambient Light Sensor data percentage

Example Code for Educational Boosterpack

You might get an error message during compile and link:
Error link.jpg











To fix this, go to "project properties" Page and input the correct nowECC locations.
Project Properties.jpg























3,2" Touch LCD boosterpack SSD1289

Here is the Touch LCD Boosterpack for Tiva, Stellaris and Hercules Launchpad. It works with Texas Instruments Graphics Library and uses SSD1289 LCD Driver for 3,2" 320x240 Screen and analog signals for Touch (TI Graphics Library uses analog signals). The interface are hi speed 16bit color parallel.

You can found example codes and buy it on http://danirebollo.blogspot.com.es/2013/05/ssd1289-boosterpack-32-320x240-tft.html [deprecated] http://danirebollo.es/index.php/blog/item/28
New version: http://danirebollo.es/index.php/blog/item/23

Info: Texas Instruments Graphics Library: http://www.ti.com/tool/sw-tm4c-grl?sectionId=625&tabId=2495&familyId=1755 SSD1289 LCD Driver: https://docs.google.com/file/d/0BzJpWEe1yMQvMVpEZm1DNVpLR2s/edit?usp=sharing and https://docs.google.com/file/d/0BzJpWEe1yMQvR2c5ZEJlU1NhX1E/edit

FAQ

When creating a new project in CCS with RM42 device, the project does not compile and execute properly. It may report an endianness mismatch during “load program”; Or, the program runs to “Undefined instruction abort”.

This is likely because CCS project no longer includes the RTS (Run Time Support Library) for the little endian non floating point Cortex-R4 (rtsv7R4_T_le_eabi.lib) as a default. The device xml file - C:\ti\ccsv5\ccs_base\common\targetdb\devices\rm42l432.xml points to a run time library that does not exist.
To solve this issue on an existing project, please select “project properties”:
In the “General” Tab, make sure the “Device endianness” is “little”, “Run time support library” is “<automatic>”.

Project Properties1.jpg























In the “Build->ARM Compiler->Processor Options” Tab, make sure “Specify floating point support (--float_support)” as blank.

Project Properties2.jpg

























In the “Build->ARM Linker->File Search Path” Tab, make sure "libc.a" is included.

Project Properties3.jpg

























To solve this issue for any project created ever after, please replace the xml file with the attached xml file in the zip file and restart the CCS.


Note: Fix the xml files does NOT fix the pre-existing projects. You have to fix them manually. After the project properties are changed, the CCS is going select the run-time library automatically. For the 1st time you build the project, CCS compiles the run-time library too. That will take several minutes. After that, for the 2nd, 3rd compile/build, CCS will not rebuild the run-time library unless you change the optimization levels. You can also take advantage of a dual-core or quad-core computer to build the project faster:
In the “Build->Behaviour” Tab, Enable parallel build.

Project Properties4.jpg
























When creating a new project in CCS with TMS570LS043 device, the project does not compile or execute properly. It may report the run time library does NOT support floating point error during compiling (error #16004-D: file "C:/ti/ccsv5_bk/lib/rtsv7R4_T_be_eabi.lib<auto_init.obj>" has a Tag_ABI_VFP_args attribute value of "1" that is different than one previously seen ("0"); combining incompatible files) or the program runs to “Undefined instruction abort”.

This is likely because the device xml file - C:\ti\ccsv5\ccs_base\common\targetdb\devices\ tms570ls043x.xml does not specify the “floating point support” is “None” and CCS pick the project properties for the previous project filling in the “Specify floating point support” field.
To solve this issue on an existing project, please select “project properties”:
In the “Build->ARM Compiler->Processor Options” Tab, make sure “Specify floating point support (--float_support)” as blank.

Project Properties5.jpg





















To solve this issue for any project created ever after, please replace the xml file with the attached xml file in the zip file and restart the CCS.