TMS320F28035 bootloading to SD card

  • Thread starter Thread starter haxor489
  • Start date Start date
  • Tags Tags
    sd
AI Thread Summary
The TMS320F28035 microcontroller has limited flash memory (128KB), which poses challenges for larger program binaries exceeding this size. Bootloading from an SD card is possible by configuring the bootmode using GPIO pins, but the boot ROM primarily loads code into on-chip memory, raising questions about running programs directly from the SD card. To set OTP values for bootmode configuration, a program must be written and loaded into flash, with changes persisting after a reset. The program format for the SD card is not strictly defined, allowing the use of binaries generated from Code Composer Studio. Overall, while running programs from SD is complex, understanding the bootloading process and file formats can help navigate these limitations.
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.
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Back
Top