TMS570LS3137
Appearance
Documentation
- Main TI page containing datasheets.
- TI TMS570 related forum
- TMS570 Wiki
- Media:Studim_procesoru.pdf Notes from documentation (in Czech language)
Programming
Tools recommended by TI for programming of this microcontroller:
- Code Composer Studio (runs on Win and Linux)
- HalCoGen (for WIn only, but also runs quite well in Wine)
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.