This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GIO_create failure

Hi All,

I am trying to implement McBSP as SPI on dm6437 EVM board. As a start, what i am trying is to communicate with a SPI EEPROM, ie read known data from the eeprom.

After initializing the mcbsp registers, I call GIO_create() to get the mcbsp handle as belowa;

mcbsphandle  = GIO_create(Name, IOM_INOUT, &status, &chanparams, &gioAttrs); gioAttrs.timeout = 1000;

but handle returned is NULL and status is -10 (illegal arguments passed). But sometimes i do get a valid handle value (i dont know how i get it), but then on running the code the code just hangs at GIO_submit(). ie it does not return.

 

Can anybody please help me oout in this? its really urgent and i have already spent some time on htis but i am not making any headway.

if any more details is needed, please let me know. Thanks in advance.

Pradeep.

  • The GIO source code is included in the following location:

    bios_5_33_04\packages\ti\bios\src\gio

    Please try temporarily adding some of the source directly to your project so you can step through the code and see exactly what's failing.

    Brad