Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 26 Jun 2017 07:18 AM by  Adam Ford
Bare Metal McBSP issue
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Mark Gregory
New Member
New Member
Posts:9


--
22 Jun 2017 08:37 PM

    I am currently running McBSP2 to interface to an ADC using the SRG to generate the clock and frame sync and receive into DR. All signals look to have appropriate amplitudes and timing except for the frame sync. Frame sync is ~.9V half of what I expect (1.8V). 

    After reviewing all of the SOM and EVM board schematics it looks like there are no connections to the McBSP2 module except to the TPS65950 power module. The SOM schematic specifies that if there are any codecs or external mcbsp modules to set the VIF_TRI_EN and the AIF_TRI_EN bits in the TPS65950 registers to make high Z.

    I set the registers using the i2cset method I found in another post from linux command prompt and then initialize my bare metal code. Frame sync amplitude was still low. Then verified that registers where still set to ensure that they were not reinitialized during the running of the bare metal code.

    I have been able to get good data from the ADC but only by driving the whole 1.8V but to a higher level ~3.3V which seems dangerous from the datasheets absolute maximum rated range. I have multiple SOMs and verified same functionailty with all units (especially those units not driven to the higher voltage level).

    Any sugggestions? I am currently at a loss and am considering a hardware fix but would rather not.

     

     

     

     

     

    Mark Gregory
    New Member
    New Member
    Posts:9


    --
    25 Jun 2017 04:33 AM

    Ended up getting the fame sync to the proper voltage level. It was that it needed the AIF_TRI_EN bit set but I had to do it from the losh logicloader command prompt:

    READ: losh> x /b 0x0049000E 1 /dev/pm0 

    WRITE: losh> w /b 0x0049000E 0x4 /dev/pm0 

    The problem is that it resets to original state on loss of power.

    Is there a way to save the register states in the TPS65950 so it maintains that configuration on bootup?

     

     

     

     

    Adam Ford
    Advanced Member
    Advanced Member
    Posts:794


    --
    26 Jun 2017 07:18 AM
    If you put a backup battery on the TPS65950, it should retain its memory, but there is no way to store the settings in NV memory. If you're going to use Logic Loader, you can script Logic Loader to run a set of instructions at startup and the scripts for Logic Loader can be stored in Flash.

    Logic Loader Labs http://support.logicpd.co...talid=0&EntryId=1351 has instructions in section 8 on using scripts, and you can store those scripts in the same place as lboot and MLO are located in NAND.


    adam
    You are not authorized to post a reply.