Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Ads

Discussion Groups

Discussion Groups | TMS320C55x | Fw: reg:TMS320VC5502 processor

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

Fw: reg:TMS320VC5502 processor - Shanthi - Jan 24 8:57:47 2007



sir,
i have included gpio header file csl_gpio5502.h
in that a structure has been explained as follows :

typedef struct {
#if (_GPIO_PARALLEL_SUPPORT)
     Uint16 ioen;
#endif
     Uint16 iodir;
} GPIO_Config;
 
for that structure i have created an object and called in my program as below
GPIO_Config pincfg;

 void GPIO_init()
  {
   pincfg.iodir=0x00FF;   // all the GPIO pins as  output pins
  }            
  
void main()
{
 CSL_init();
GPIO_init();
}
 
wts wrong with this code  kindly explain me abut that IOPORT keyword   

  ----- Original Message ----- 
  From: Saurabh Shah 
  To: Shanthi 
  Sent: Wednesday, January 24, 2007 10:50 PM
  Subject: Re: [c55x] reg:TMS320VC5502 processor
  Hi Shanthi,
   
  Regarding you GPIO problem, are you using IOPORT key word?
  All MMR registers are in IO memory.
  To access any MMR registers, you must have to use IOPORT key word. Otherwise it will write on
location of data memory rather then in I/O memory.
   
  About command file, you have to only create one file with extension *.cmd and add it in your
project. The syntax of command file can be found from TI's documents.
   
  Hope this will help you.

  Regards,
  SAURABH SHAH
  R&D Engineer
  Matrix Telecom Pvt. Ltd.
  ph. - (+91)(0265) 2630555
  M   - (+91) 09427055390
  saurabh.shah@matrixtelesol..com
    ----- Original Message ----- 
    From: Shanthi 
    To: c...@yahoogroups.com 
    Sent: Monday, January 22, 2007 6:55 AM
    Subject: [c55x] reg:TMS320VC5502 processor
    sir,

    i am using the TMS320VC5502 processor & i am using CCSV3.1......the problem is about hw
to create command file & wt r all the files i have to include with the source file besides
the header files.........and another one problem while debugging my code suppose for example
    if i have initialized a register say (GPIO reg) IODIR=0x00FF;in my program
    while debugging the data is getting updated but the memory address is incorrect.actual
address of that reg is 0x3400 but the data get updated in location0x240A.........so i need a
clear idea about the cmd file.........so can u help me abut hw to create or modify cmd
file....



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )