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.

DAC38J82EVM: DAC3XJ84 Firmware

Part Number: DAC38J82EVM

Hello,

I hope this finds you well,

tsw

When I try to choose DAC3XJ84_LMF_442 from Select DAC drop down for my DAC38J84I connected to TSW14J56, it takes so much time downloading, then, it said that the Firmware could not be downloaded. 

That happened after I tried to choose the dac device and download the firmware using the automation DLL. But now, even when I choose the dac from the HSDC Pro, it still gives me the same error.

Any suggestions ?

Thank you ,

Best regards,

Abdurrahman

  • I have tried different options right now, the ones that worked before. However, they did not work as well.
  • Hello Abdurrahman,
    Can you tell me what revision of TSW14J56 board you have?
    For revB a longer firmware download time is expected (maybe up to 2 min)
    For revD it is a few seconds

    The download should not fail. A failed download would typically be due to a driver problem on the Host PC. I would work through some common driver debug routine to diagnose (power cycle, uninstall drivers, reinstall)

    Regards,
    Brian
  • Thank you Brian for you reply,

    Mine is revD.
    It used to be very fast, but after I tried to select a different DAC from Select DAC drop down using matlab automation DLL, it starts to fail every time.
  • Abdurrahman,
    Are you able to share the section of MATLAB code that you use to initialize HSDC Pro and select the DAC?

    Regards,
    Brian
  • Yes, sure.

    addpath(genpath('C:/Program Files (x86)/Texas Instrument/ High Speed Data Converter Pro/HSDCPro Automation DLL'));

    % Load the Automation DLL
    if ~libisloaded('HSDCProAutomation_64Bit')
    % [notfound,warnings]=loadlibrary('../../../64Bit DLL/HSDCProAutomation_64Bit.dll', 'HSDCProAutomation.h',...
    % 'addheader','extcode.h','addheader','fundtypes.h','addheader','hosttype.h',...
    % 'addheader','ILVDataInterface.h','addheader','ILVTypeInterface.h',...
    % 'addheader','lv_epilog.h','addheader','lv_prolog.h','addheader','platdefines.h',...
    % 'mfilename','HSDCProAutomationHeader.m');
    loadlibrary('C:/Program Files (x86)/Texas Instruments/High Speed Data Converter Pro/HSDCPro Automation DLL/64Bit DLL/HSDCProAutomation_64Bit.dll', @HSDCProAutomationHeader);
    end
    %Board Serial Numebr
    Board = app.SerailNumber.Value;
    Model = '-TSW14J56revD';
    BoardSerialNumber = strcat(Board,Model); % Board Serial Number with board type separated by hyphen. Eg: TIVHIV9Z-TSW1400

    FirmwareFilePath = 'C:/Program Files (x86)/Texas Instruments/High Speed Data Converter Pro/1400 Details/Firmware/DAC_SAMPLE_WISE.rbf'; % Firmware file path which needs to be loaded to the board.

    WaitToCheck=1; % Wait to check if firmware is downloaded properly? 0 - No, 1 - Yes. If yes, timeout should be greater than 60sec.

    DACDevice = app.DACdeviceDropDown.Value; %'DAC3XJ84_LMF_442' DAC device to be selected(should be same as what appears in the HSDC Pro GUI selection drop down box.

    DACDataRate = app.SampleRate2.Value; % ADC output Data Rate
    DACPreamble = app.Preamble.Value;
    option = app.DACOption.Value;
    if (strcmp(option ,"2's Complement"))
    DACoption = 0; % 0 - 2's Complement
    else
    DACoption = 1; % 1 - Offset Binary
    end

    TimeoutInMs = 30000; % TimeoutInMs for each function

    ActiveChannelIndex=0; % Active channel index(0-based)
    ChannelCounter = 0; % count the number of active channels.

    % Channel Enable/Disable Settings for each channel
    % An array which specifies the enable/disable option for all DAC channels
    % Channel Enable Settings array index corresponds to Channel Index. Array size should be same as the number of channels present in DAC.
    % 0 - Disable, 1 - Enable
    %channel1
    if (app.Channel1.Value)
    ChannelEnableSettings(1) = 1; % Channel Index 0 - Enable
    ChannelCounter = ChannelCounter + 1;
    else
    ChannelEnableSettings(1) = 0; % Channel Index 0 - disable
    end
    %channel2
    if (app.Channel2.Value)
    ChannelEnableSettings(2) = 1; % Channel Index 0 - Enable
    ChannelCounter = ChannelCounter + 1;
    else
    ChannelEnableSettings(2) = 0; % Channel Index 0 - disable
    end
    %channel3
    if (app.Channel3.Value)
    ChannelEnableSettings(3) = 1; % Channel Index 0 - Enable
    ChannelCounter = ChannelCounter + 1;
    else
    ChannelEnableSettings(3) = 0; % Channel Index 0 - disable
    end
    %channel4
    if (app.Channel4.Value)
    ChannelEnableSettings(4) = 1; % Channel Index 0 - Enable
    ChannelCounter = ChannelCounter + 1;
    else
    ChannelEnableSettings(4) = 0; % Channel Index 0 - disable
    end

    NumberOfChannels = ChannelCounter; % Total Number of Channels for DAC

    Scalingfactor = app.ScalingFactor.Value;




    % ********************************************************************************//
    % ********** The actual call to the function contained in the dll ****************//
    % ********************************************************************************//

    %fprintf('\nPlease open the HSDCPro GUI before using these Automation DLL functions.');

    % Connecting to the board and selecting DAC device
    calllib('HSDCProAutomation_64Bit','Connect_Board',BoardSerialNumber,TimeoutInMs);


    calllib('HSDCProAutomation_64Bit','Select_DAC_Device',DACDevice,120000);


    % Download Firmware(OPTIONAL). Selecting device itself(above function) will automatically download the firmware
    calllib('HSDCProAutomation_64Bit','Download_Firmware',FirmwareFilePath,WaitToCheck,60000);
  • We have discussed this a bit internally and would like to work though the following:
    1) A bad power supply is a common cause of this type of behavior. Please confirm it is a 5V 3A + supply
    2) Is the issue on a particular DAC INI (firmware file, specifically). Is there other firmware files that have no issue?
    3) Can you try the following and report back your finding:
    a. Restart PC
    b. Launch HSDC Pro: Connect to board, Instrument Options-> Download Firmware (direct to the firmware referenced by the INI file)
    c. If there is any error please post a screen shot of both HSDC Pro GUI and the error message

    Regards,
    Brian
  • Thank you so much for your help,
    I really appreciate it.

    Thanks a lot !

    Abdurrahman