Tuesday 23 October 2018

dsp - How do you get a program onto an eZdsp board?


I'm using an eZdsp board which has a TMS320f2812 chip on it. The board has a parallel port on it which is used to program it. I'm experienced with software but not at using microcontrollers or DSPs and don't know wher to begin with getting a simple program on, like to flash the built in LED on the board. I'm using windows 7 and have downloaded the latest code composer studio and have a parallel to parallel cable to connect from computer to board. So now what to get a program on there? Thanks



Answer




I used an F2808 based ezDSP board, and it had an integrated USB JTAG programmer on the board. The parallel port interface on yours might also be connected to an integrated JTAG programmer, or if not, the Code Composer IDE is probably equipped to handle the details of the programming.


Sorry I'm sketchy with the details, it's been a couple of years since I used it .. but look around on the Code Composer menus; somewhere there you should find the option to flash your project into the chip. In CCS 3.2, there was a dialog that could be brought up that listed all the flash banks, let you choose the .out image to flash, PLL multiplier value to use, etc. Device selection was on a nearby menu.


Once you solve the flashing-the-chip problem, I do recall the biggest pain getting started was dealing with the linker ".cmd" files that set the memory layout for the project. When you write C apps for linux or windows, you don't have to deal with these, but when you get as close to the metal as 28xx's with Code Composer, you have to say exactly what block of physical memory is to be used for what program segment. The easy way to get past the complexities of the .cmd file, initially anyway, was to steal one out of the example projects.


In fact, if your software has them, I'd recommend building and flashing one of the canned examples before setting out to write your own software. A search for 'examples' or 'samples' in the CCS install directory should turn them up.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...