Jump to content

TMS570LS3137: Difference between revisions

From HW wiki
Hornmich (talk | contribs)
No edit summary
Hornmich (talk | contribs)
Line 15: Line 15:


== FreeRTOS ==
== FreeRTOS ==
Installation is easy, simply create new project project in HalCoGen  
Installation is easy, simply create new project in HalCoGen  


* New -> Project
* New -> Project

Revision as of 12:40, 12 July 2012

Documentation


Programming

Tools recommended by TI for programming of this microcontroller:

FreeRTOS

Installation is easy, simply create new project in HalCoGen

  • New -> Project
  • Select Family:TMS570LS31x
  • Select Device: TMS570LS3137ZWT_FREERTOS

All necessary files will be added into project automaticaly.

Hardware

Developement board we are using: TMS570LS31x_HDK_Kit

SCI port

We have connected serial port on Expansion Connector P3 (see HDK documentation) pin W3 and N2. TX is connected to N2 pin and RX to W3 pin. This brings us consequences as both pins are mutexed.

When you want to use SCI, you have to set few things in HalCoGen.

  • Enable drive SIO (not LIN or SCI2 driver)
  • In tab PINMUX select SCI and check conflict with other drivers
  • In tab SCI choose and set data format.

When you want use interrupts in adittion, do the following:

  • In tab VIM Channel 64-95 select interrupt 64: SCI level0 interrupt for high level interrupt or 74: SCI Level1 for low level interrupt
  • In your code enable IRQ using _enable_IRQ() function, than enable notification using sciEnableNotification() function.
  • Implement notification callback sciNotification() in notificatin.c

In your code don't forget to initialize sci using sciInit() function.