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.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top