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.

AFE7500 an error occurs

Other Parts Discussed in Thread: RFSDK

When initializing AFE7500 error occurs:


Arago Project http://arago-project.org k2l-evm ttyS0

Arago 2013.12 k2l-evm ttyS0

k2l-evm login: root
root@k2l-evm:~# cat /proc/version
Linux version 3.10.10 (gtbldadm@ubuntu-12) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 SMP Fri Dec 12 15:38:16 EST 2014
root@k2l-evm:~# afe7500-config show-rev
AFE0 -> AFE7500 revision 2.0
AFE1 -> AFE7500 revision 2.0
root@k2l-evm:~# afe7500-config show-board
AFE0 -> AFE7500 board afe7500-evm-rxb
AFE1 -> AFE7500 board afe7500-evm-rxb
root@k2l-evm:~# radio reset
root@k2l-evm:~# radio select 2x2-2xLTE20-SC-JESD3b-SD-Lane03
root@k2l-evm:~# radio init
root@k2l-evm:~# playback program
root@k2l-evm:~# playback start
root@k2l-evm:~# radio tddconfig normal 2 6 71 71 0 -142
root@k2l-evm:~# radio on 2530.0 2650.0
Traceback (most recent call last):
  File "/usr/bin/radio", line 108, in <module>
    command.onecmd(' '.join(sys.argv[1:]))
  File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/usr/lib/python2.7/rfsdk/command.py", line 1155, in do_on
    self.radio.radio_on(ul, dl)
  File "/usr/lib/python2.7/rfsdk/radio.py", line 405, in radio_on
    self.afe[0].jesdOn()
  File "/usr/lib/python2.7/afe/service.py", line 145, in jesdOn
    raise exception
rfsdk.Error: afeService.jesdOn() API call failed with status 'AFE_LLD_ERROR' (10)
root@k2l-evm:~#

  • Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you on the above query shortly. Thank you for your patience.

  • Please find the response from expert below,

    Hello,

    Error Code 10 from the AFE7500 LLD is a generic code, to assist you further we need additional log information.
    The AFE_LLD_ERROR typically means that one of the Marconi API calls has failed.

    In order to determine which API call failed you will find all the required information inside the Linux “syslog” logs.

    With an MCSDK Linux this will be found in /var/log/error, and running the following command will almost certainly show you what the issue is:

    • tail /var/log/error

    In the error message you will get the following information:
    • C Source file in which the error occurred
    • Line number at which the error is reported
    • Error code returned by the Marconi API

    Once you have this information you need to go into that source file in the RFSDK source package under the following directory:
    • ./usr/src/afe_driver/afe7500_driver/src/

    This should give you all the details you need.

    In addition if you want to understand the meaning of the error code reported by the Marconi API you can look in these files for the symbolic name of the error code:
    • ./usr/src/afe_driver/afe_lld/lld_rev2p0_v2p4p3/app_include/common_headers/error_codes.h
    • ./usr/src/afe_driver/afe_lld/lld_rev2p1_v2p6p3/app_include/common_headers/error_codes.h

    Note: if this is an TCI6630K2LEVM and an AFE7500EVM, normally the _Lane03 radio configuration is selected. If this is a customer board, more customization is needed.

  • I am facing similar error when I  run "radio init", after following the RFSDK installation steps.

    rfsdk.Error: afeService.deviceInit() API call failed with status 'AFE_LLD_ERROR' (10)

    When I look at the /var/log/error , the following logs were shown.

    Sep 30 08:15:12 k2l-evm RFSDK Service: Either TX or RX start is not done
    Sep 30 08:15:12 k2l-evm RFSDK Service: Either TX or RX start is not done
    Sep 30 08:20:55 k2l-evm AFE7500[1867]: An AFE error occured at line 80 in src/AFE7500_osal.c  (code: 2,  id: 0)

    When we checked the code as instructed , we see the following code.

    76    /* Set the direction in the GPIO folder just created */
    77    sprintf(buf, "/sys/class/gpio/gpio%d/direction", gpio_n);
    78    fd = open(buf, O_WRONLY);
    79    if (fd<0) {
    80        AFE_error(obj, errno, 0);
    81        return AFE_LLD_ERROR;
    82    }

    Please let us what could be the issue.

     

    I am using MCSDK Version 3_01_04_07

    Board AFE7500EVM2626 Revision 2.0

    K2L EVM Version 1.0.2.1

    Best Regards

    LN