TMS320F28035 bootloading to SD card

  • Thread starter Thread starter haxor489
  • Start date Start date
  • Tags Tags
    sd
Click For Summary
SUMMARY

The TMS320F28035 microcontroller from Texas Instruments has a flash memory limitation of 128KB, which poses challenges for applications with binaries exceeding this size. The bootloading process can utilize an SD card by configuring the TRST line and GPIO pins to specify the boot mode, as outlined in the documentation. It is confirmed that the boot ROM loads code into on-chip memory, necessitating that the program must fit within the available flash memory. Additionally, setting OTP values requires a program to be loaded into flash, and the binaries generated from Code Composer Studio can be directly used on the SD card without special formatting.

PREREQUISITES
  • Understanding of TMS320F28035 microcontroller architecture
  • Familiarity with bootloading processes and GPIO configuration
  • Knowledge of OTP (One-Time Programmable) memory settings
  • Experience with Code Composer Studio for binary generation
NEXT STEPS
  • Research TMS320F28035 bootloading procedures in detail
  • Learn about configuring GPIO pins for boot mode selection
  • Investigate the implications of OTP settings on microcontroller behavior
  • Explore best practices for managing binary sizes in embedded systems
USEFUL FOR

This discussion is beneficial for embedded systems developers, firmware engineers, and anyone working with the TMS320F28035 microcontroller who needs to optimize memory usage and understand bootloading techniques.

haxor489
Messages
25
Reaction score
0
I'm using a TMS320F28035 (TI -piccolo series) microcontroller and it came to my attention that the chip only has about 128KB of flash memory and the binaries for my main program are easily 150KB or larger. So that's where my SD dilemma comes in. The documentation (section 2.1)

http://www.ti.com/lit/ug/sprugo0a/sprugo0a.pdf

shows that it has bootloading software that only needs the TRST line to be low and then specify the bootmode using 2 GPIO pins, I'd be using "GetMode" (section 3.3.9)

http://www.ti.com/lit/ds/sprs584i/sprs584i.pdf

By default Get Mode goes to flash but I can specify the SD interface, one of the serial interfaces I can't remember at the moment probably SPI, by setting the OTP values (OTP_KEY, OTP_BMODE) appropriately. Their locations are given and values necessary as well for the desired bootmode.


My Questions:


1 - The lines that state that "the boot ROM will load code and data into on-chip memory from an external... " makes me think that it simply loads everything it can fit onto flash memory which isn't the entire program. Am I wrong in my assumption if is it possible to run the program from the SD card or does it have to fit in the flash?

2 - In order to set the OTP values, do I have to write a program and load that into the flash and run it to make those changes and will they stick on the next reset ?

3 - Does the program have to be formatted in a special format or can I simply take the binaries generated from Code Composer Studio and drop that onto the SD?

Thanks for any help you can provide
 
Engineering news on Phys.org
Turns out running the program from the SD is incredibly difficult, but luckily CCS's output file .out under the binaries folder isn't the actual program size.
 

Similar threads

Replies
4
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
29
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 23 ·
Replies
23
Views
4K