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.

LED Access in DSP/BIOS - OMAP-L137

Hello everybody,

My case is actually quite simple.

I would like to use the LED to indicate start of my program (turn on all the LEDs) and keep the LEDs on until the whole progrem is finished (switched off all the LEDs). I'm using the RTFS example on MMC/SD file access. I've referred to http://support.spectrumdigital.com/boards/evmomapl137/revd/ to know about how to on the LEDs.

After using the same command (EVMC6747_LED_init(), EVMC6747_LED_on() and EVMC6747_LED_off()), and including all the files (evmc6747.h, evmc6747_led.h, evmc6747_gpio.h, evmc6747_led.c and evmc6747_gpio.c), my program compiled without any error but the LED is not on when running.

The program (MMC/SD) run by detecting whether the card is inserted or not. When the card is inserted, GPIO interrupt will trigger and run the whole program.

Is this because I'm using DSP/BIOS (SD/MMC program) whereas the program for testing the LED is not ? How to access the BSL in DSP/BIOS then ?

Thanks in advance for any reply.

Best regards,

Rizuan

 

  • Rizuan,

    Do the LEDs work ok with the spectrum BSL tests?  I just want to make sure it's not a board issue first.

    -Tommy

  • Thanks for reply. Yes, it is working fine when using the code from Spectrum Digital. I only test the codes for LED and DIP switch, not the others.

    Maybe you want to know which code I'm using (i.e. my main program). It is like the codes for RTFS to read/write into the SD/MMC card inside the RTFS folder. I'm using the C6747 only in DSP/BIOS OS, not the ARM core. Hope all the side information is sufficient for you. Anyway, thanks again for replying.

    Best regards,

    Rizuan

  • I don't believe BIOS has anything to do with it.  I have attached an CCS4.x LED project I created some time back that uses BIOS and the Spectrum Digital BSL.

    led_dspBios.zip
  • Hi Martinez,

    I think I've found the reason. In the program, there is line to configure MMC/SD peripheral that use GPIO.

    configureMmcsd((PSP_mmcsdGpioInputIsr)mmcsdGpioInputIsr);

    After this line, the LEDs are off. Then, whenever I want to restart the program again, the LED won't on unless I perform the system reset. The LEDs will be on when the program is running until the above line.

    Best regards,

    Rizuan

  • Hi Rizuan,

    Can you check the PINMUX registers (in the SYSCFG module) after executing "configureMmcsd(...)" to make sure that the LED GPIO's signals are still enabled?  I believe PINMUX15 needs to be 0x00888800 (with the 0's as don't care) for the LED's to operate correctly. 

    - Christina

  • Dear Christina,

    Yes, you are absolute right. Right after the "configureMmcsd(...)", the PINMUX register (PINMUX15) changed from 0x21888888 to 0x20000000. Is it possible to to make the register 0x00888800 (with the 0's as don't care) ?

    Best regards,

    Rizuan

  • Rizuan,

    Since you know your desired value is a combination of 0x20000000 and 0x00888800, you can directly write the value of 0x20888800 to the PINMUX15 register.

    For future reference, the pinmux utility (http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=sprab06a) is a good reference to figure out your desired PINMUX register values.

    - Christina

  • Thanks for the info. I've changed the register value manually by assigning

    PINMUX15 = 0x20888800;

    after the "configureMmcsd(...)" and it works.

    Thanks again.

    Best regards,

    Rizuan