Quantcast
Channel: Forums - Recent Threads
Viewing all 262198 articles
Browse latest View live

AM5728: Accessing Phy registers through mdio / mii commands in U-Boot

$
0
0

Part Number: AM5728

On my custom AM5728 board, running TI Linux SDK 5.02, which includes TI U-Boot 2018.01, I am trying to follow Ethernet PHY (TI DP83867) I/O delay tuning guide from here

The guide lists these 5 steps:

  1. write 0x0040 to register 0x0000 // Force 1000BASE speed
  2. write 0x0c01 to register 0x0170 // Adjust IO pad impedance
  3. write 0xd001 to register 0x0016 // Start PRBS generation and loopback to RGMII
  4. write 0x0077 to register 0x0086 // Set RX & TX RGMII clock delay to 2.0 ns
  5. write 0x00d3 to register 0x0032 // Enable RX & TX clock delay

U-Boot can detect the Phy without issue:

=> mii device 
MII devices: 'ethernet@48484000' 
Current device: 'ethernet@48484000'
=> mii info 0
PHY 0x00: OUI = 0x80028, Model = 0x23, Rev = 0x01, 1000baseT, FDX

And can also read the control register using mdio and mii commands:

=> mdio read 0
Reading from bus ethernet@48484000
PHY at address 0:
0 - 0x40
=> mii dump 0 0
0. (0040) -- PHY control register --
(8000:0000) 0.15 = 0 reset
(4000:0000) 0.14 = 0 loopback
(2040:0040) 0. 6,13 = b10 speed selection = 1000 Mbps
(1000:0000) 0.12 = 0 A/N enable
(0800:0000) 0.11 = 0 power-down
(0400:0000) 0.10 = 0 isolate
(0200:0000) 0. 9 = 0 restart A/N
(0100:0000) 0. 8 = 0 duplex = half
(0080:0000) 0. 7 = 0 collision test enable
(003f:0000) 0. 5- 0 = 0 (reserved)

However, I can't seem to access ass register 0x1F:

=> mdio read 0x1f

Reading from bus ethernet@48484000

PHY at address 0:

31 - 0x0

=> mdio read 0x20

Reading from bus ethernet@48484000

PHY at address 0:

Error


And the mdio command mentions this limitation:

mdio - MDIO utility commands

Usage:
mdio list - List MDIO buses
mdio read <phydev> [<devad>.]<reg> - read PHY's register at <devad>.<reg>
mdio write <phydev> [<devad>.]<reg> <data> - write PHY's register at <devad>.<reg>
mdio rx <phydev> [<devad>.]<reg> - read PHY's extended register at <devad>.<reg>
mdio wx <phydev> [<devad>.]<reg> <data> - write PHY's extended register at <devad>.<reg>
<phydev> may be:
<busname> <addr>
<addr>
<eth name>
<addr> <devad>, and <reg> may be ranges, e.g. 1-5.4-0x1f.

 


So how do I access registers at 0x170 to run the Phy IO delay tuning?


MSP430F249: ADC12 issue.

$
0
0

Part Number: MSP430F249

My program makes extensive use of the ADC12 in this part. The result read from the converter is sometimes 0x1FFF.

1) Is it safe to assume the input has gone slightly negative because of random noise?

2) Is there a document that more throughly discusses the possible outputs from the converter?

3) If I set a signed 16-bit variable to the ADC value and set the variable to 0 when its value is < 0 will the results be consistent?

4) Are there other conditions that can cause the ADC to generate non positive or non-monotonic codes, assuming proper precautions where taken with regards to ground, supply, VREF, etc.?

Thanks, Harvey

802.15.4g - Modulations Kit

$
0
0

Hi there,

i'm looking for development kits who has  802.15.4g modulations, e.g, FSK, O-QPSK and OFDM. CC1310 has only FSK. Unfortunately i need too O-QPSK and OFDM.

I'm not finding it. Because this, i'm asking for help.

Thanks a lot for any help.

Fred

CCS/IWR1443BOOST: CCS9.1 Load program issue

$
0
0

Part Number: IWR1443BOOST

Tool/software: Code Composer Studio

Hi

I started getting below error since last couple of days and unable to figure out reason behind it.

I usually load config and connect target and load program. I tried on multiple eval kits and also different .xer4f files.

I also uninstalled CCS couple of items and did fresh installation but couldn’t get rid of below error.

Any suggestion to resolve this error ?  Quick response to this is highly appreciated.

 Cortex_R4_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x3c: (Error -1065 @ 0x0) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.2.0.00004)

Cortex_R4_0: File Loader: Verification failed: Target failed to write 0x00000000

Cortex_R4_0: GEL: File: C:\Users\Software\TI\xwr14xx_mmw_mss.xer4f: Load failed.

TMS570LS3137: DNM bits of SPSR

$
0
0

Part Number: TMS570LS3137

Hi Team,

Can we update DNM bit field in SPSR register. Looks like,these are Do not modify bits and its value is unpredictable when read (in CPSR register).

If we can update DNM bit fields of SPSR, then it is not getting update with all 1 in DNM bit field, when written 1 to all bit positions in DNM field.

Any specific reason for this behaviour?

MMWAVEICBOOST: Unknown USB device (device descriptor request failed)

$
0
0

Part Number: MMWAVEICBOOST

Hi,

I am trying to use a brand new MMWAVEICBOOST with IWR6843ISK in standalone mode. The FTDI micro usb is not getting recognized and the device manager shows "Unknown USB device (device descriptor request failed)" whenever I connect the FTDI micro usb to the laptop running windows 10. What could be the problem? I am using 5V 2.5 amp power supply. Is that supply enough?

Thank you.

 

TPS23753AEVM-001: Mag-Jack shield ground connection?

$
0
0

Part Number: TPS23753AEVM-001

Hi,

Referring to TPS23753AEVM-001 Schematic

Pins 11,12 and BST circuit inside RJ45-jack J2 (MJFR0429) are connected to shield ground.
Should that ground in turn need to be connected to one of the isolated/ non-logic side circuit
ground points? If so, which one - Pin 6 or 7 of U1 (TPS23753APW), or VSS_B perhaps?

Please advise. Thanks for your timely attention and help.

Best,
SE

IWR1443BOOST: mmWaveStudio open with error by windows command line

$
0
0

Part Number: IWR1443BOOST

Hi,

I am trying to open mmWaveStudio through the following windows command line (note that environment variables have include the mmWaveStudio installation path):

START /B mmWaveStudio.exe

However, I always get the following error message:

GM: Constructor
GM: Fri Sep 13 18:03:48 2019
RSTD.Transmit("/Settings")
[18:03:49] 
[18:03:49]  ### Running Startup script: "C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Scripts\Startup.lua" ###
[18:03:49]  RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
[18:03:49]  RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
[18:03:49]  Scripter ignored: Attempt to UnBuild() again or before Build.
[18:03:49]  RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
[18:03:49]  RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
[18:03:49]  RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
[18:03:49]  RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
[18:03:49]  RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
[18:03:49]  RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
[18:03:49]  RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\RunTime\\SAL.dll")
[18:03:49]  RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
[18:03:49]  RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
[18:03:49]  RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
[18:03:49]  RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
[18:03:49]  RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
[18:03:49]  RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
[18:03:49]  RSTD.Transmit("/")
[18:03:49]  RSTD.SaveSettings(): Settings saved to "C:\Users\Weite\AppData\Roaming\RSTD\config.xml"
[18:03:49]  RSTD.Build()
[18:03:49]  RSTD.SaveSettings(): Settings saved to "C:\Users\Weite\AppData\Roaming\RSTD\config.xml"
[18:03:49]  RSTD.Transmit("/")
[18:03:49]  RSTD.AL_Build()
[18:03:49]  RSTD.AL_LoadXml()
[18:03:49]  RSTD.Transmit("/")
[18:03:49]  RSTD.AL_Init()
[18:03:49]  RSTD.Clients_Build()
[18:03:49]  GM: Init
[18:03:49]  GM: Loaded 'C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Clients\\LabClient.dll'
[18:03:49]  GM: 1 Guest (s) init
[18:03:49]  GM: 1 Module(s) init
[18:03:49]  GM: 2 Tab   (s) init
[18:03:49]  RSTD.Client_LoadXml()
[18:03:49]  [RadarAPI]: Starting Matlab Engine..
[18:03:52]  [RadarAPI]: Error:
[18:03:52] 
[18:03:52]  ... MWMCR::EvaluateFunction error ...
[18:03:52]  Invalid file identifier. Use fopen to generate a valid file identifier.
[18:03:52]  Error in => Initialize_PostProcEngine.m at line 102.
[18:03:52] 
[18:03:52]  ... Matlab M-code Stack Trace ...
[18:03:52]      at
[18:03:52]  file C:\Users\Weite\AppData\Local\Temp\Weite\mcrCache8.5.1\Matlab0\MatlabPostPr\Initialize_PostProcEngine.m, name Initialize_PostProcEngine, line 102.
[18:03:52] 
[18:03:52] 
[18:03:52]  Trace:
[18:03:52]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
[18:03:52]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)
[18:03:52]     at MatlabPostProcGui.MatlabPostProcGUIClass.Initialize_PostProcEngine(MWArray BaseFolder)
[18:03:52]     at AR1xController.frmAR1Main.InitMatlabPostProcEngine(String PostProcesspath)
[18:03:52]  [RadarAPI]: Error: Error occured in Matlab Initialization
[18:03:52]  [RadarAPI]: Matlab Engine couldn't be Started..
[18:03:56]  [RadarAPI]: ar1.LoadSettings('C:\Users\Weite\AppData\Roaming\RSTD\ar1gui.ini')
[18:03:56]  [RadarAPI]: Error:
[18:03:56] 
[18:03:56]  ... MWMCR::EvaluateFunction error ...
[18:03:56]  Attempt to reference field of non-structure array.
[18:03:56]  Error in => postProcVersion.m at line 3.
[18:03:56] 
[18:03:56]  ... Matlab M-code Stack Trace ...
[18:03:56]      at
[18:03:56]  file C:\Users\Weite\AppData\Local\Temp\Weite\mcrCache8.5.1\Matlab0\MatlabPostPr\postProcVersion.m, name postProcVersion, line 3.
[18:03:56] 
[18:03:56] 
[18:03:56]  Trace:
[18:03:56]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
[18:03:56]     at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, MWArray[] argsIn)
[18:03:56]     at MatlabPostProcGui.MatlabPostProcGUIClass.postProcVersion()
[18:03:56]     at AR1xController.ScriptOps.getMatlabPostProcVersion()
[18:03:56]  TESTING = false
[18:03:56]  RstdNet: Port 2777: Listening..
[18:03:56]  Open a listening server on port 2777
[18:03:58] 
[18:03:58]  ***Script completed successfully.***

Could you give me some advices?

Thank you,

Weite


LM5176: Switching frequency and output voltage issues

$
0
0

Part Number: LM5176

G'day,

I'm using an LM5176PWPT to create a 12V rail for my device. I went through the datasheet in detail, and then used WEBENCH to finalise component selection for my particular use case (with some minor adjustments from WEBENCH as I'll outline below). My parameters are as follows:

  • Vin: 6 -- 30V
  • Vout: 12V
  • Iout: 5A max (I have incorporated some headroom here, I don't expect the actual current draw to be much more than 3-4A)

Below is the WEBENCH schematic; I'll include some notes below the schematic with regards to any minor changes I've made in my actual design.

Changes from the WEBENCH schematic:

  • My Cout capacitor is 220uF instead of 270uF
  • There are some very minor differences in the various resistors used. E.g. Rt is 23.2k in WEBENCH, I have used 23.7k. I don't expect these variations to have a material impact on the functionality of the circuit.

Below is the expected waveform (steady state) for the WEBENCH schematic, which should reflect what I see in practise as well:

Issue 1: With the FB resistors chosen, the output voltage of the circuit as seen at Cout should be 12V. However, I am reading an average of around 7.1V.

Issue 2: With the RT/SYNC resistor value chosen (23.7k), the switching frequency should be around ~360kHZ. However, I am reading an average of around 425Hz.

See below trace and trace measurements of the output (measured at Cout).

Trace measurements:

As you can imagine, the 220uF Cout polymer aluminium capacitor at 425Hz is making quite a lot of noise. There is obviously something quite wrong here, as the operating frequency is off by several orders of magnitude. I suspect the the incorrect output voltage is related, potentially caused by some sort of offset on the FB signal?

Has this behaviour been observed before? What else can I measure, test, etc. to aid in troubleshooting this problem? Below is a screenshot of one layer of the layout of the LM5176 (it's a 6 layer board); my main concern is in the layout of the AGND connection. The datasheet is quite specific about the AGND layout, but my AGND is connected directly to the LM5176 pad (highlighted in red below). Could this cause enough of an interference to produce the above issues?

The below image is of the evaluation board, which looks to have an AGND pour which is then connected to GND at a single point. I'll look to make this change in the next version of the design regardless, I'm just wondering whether it's the cause of Issues 1 and 2 above.

Any input, guidance or help would be greatly appreciated! This 12V rail is the final piece of the puzzle for my design, so I'd love to get it sorted :)

CC3220SF-LAUNCHXL: CC3220SF selecting multiple channels at same time

$
0
0

Part Number: CC3220SF-LAUNCHXL

Hi,

Is it possible to configure NWP with multiple channels at the same time? 

Thank you,

Kris. 

HDC1080: 3D Model Error

$
0
0

Part Number: HDC1080

I have found an error in the 3D model for HDC1080 (DMB0006A). The pins in the stp file has 1mm pitch instead of 0.95mm.

TMS320F28379D: Generating complex PWM signals (more than 2 switches per half-cycle)

$
0
0

Part Number: TMS320F28379D

I'm looking for a way to generate complex PWM cycles for "programmable PWM"[1]. For my application, I need to switch at up to 11 different angles per 90 degrees; a full period can be seen here: 

I've seen how to trigger events with CMPA/B, but I'm not sure how to implement a modulation like that. This is sort of similar to SPWM, except the pulses are differently spaced.

Any ideas how to approach this?

--

[1]: Enjeti, P. N., Ziogas, P. D., & Lindsay, J. F. (1990). Programmed PWM techniques to eliminate harmonics: a critical evaluation. IEEE Transactions on Industry Applications, 26(2), 302–316. doi:10.1109/28.54257 

CC2640R2F: where is samples for 3_10 sdk

Is there a way to Preview how a Post will look before actually posting?

$
0
0

Is there a way to Preview how a Post will look before actually posting?

TPS25982: 24V 10A, What is your recommendation for efuse?

$
0
0

Part Number: TPS25982

Hi,

My customer need a OCP solution . 24V10A,  Please kindly give your recommendation. thanks. 

Their EE is power stage of Servo.


AM3358: WL1835 audio interface

$
0
0

Part Number: AM3358

Hi All,

I am working on a custom board based on BBB and BBG hardware architecture, I customized a Linux OS using Yocto rocko branch and I need to support bluetooth audio.

Currently I am facing several issues regarding the audio capabilities in my board. One of the requirements in my project is to support incoming/outgoing calls using the LTE module and interact with the Linux OS through the audio interface.

AT hardware level we decided to connect the AM3358 mcaps0 and LTE audio port to the WL18xx BT PCM audio using a MUX chip. The idea is to establish a BT connection  with a BT Headset
and depending on the user selection switch between the 2 possibilities (Routing the incoming audio via LTE or the system OS). Below you can see how it was connected.
First of all, I am trying to initialize the mcasp0 interface using the following definition:

mcasp0_pins: mcasp0_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x990, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx */
AM33XX_IOPAD(0x994, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mcasp0_fsx */
AM33XX_IOPAD(0x998, PIN_INPUT_PULLUP | MUX_MODE0) /* mcasp0_axr0 */
AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mcasp0_ahclkr.mcasp0_axr2*/
>;
};

&mcasp0 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&mcasp0_pins>;
status = "okay";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
0 0 1 0
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};

/ {
clk_mcasp0: clk_mcasp0 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <24576000>;
};

sound {

compatible = "simple-audio-card";
simple-audio-card,name = "TI audio card";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&dailink0_master>;
simple-audio-card,frame-master = <&dailink0_master>;

dailink0_master: simple-audio-card,cpu {
sound-dai = <&mcasp0>;
clocks = <&clk_mcasp0>;
};
};
};

However, whit this definition the Linux OS doesn't recognize the audio card.
root@syrusrouter:~# aplay -l
aplay: device_list:270: no soundcards found...
I believe once the audio card is recognized, the OS is going to use it to send/receive audio frames through it. 
One use case would be to receive a voice command from the BT Headset ("Make call") and send this command through the WL1835 to the Linux OS in order to be recognized and processed. After this, the processor sets up the LTE modem to establish the phone call and then proceeds to switch the MUX to the other channel in order to connect the incoming/outgoing audio from the bluetooth to the LTE modem.
I have been working on this for several days and I haven't been able to create the audio interface. Could you guys give us some help with this issue? 
By the way, I also follow this instructions http://processors.wiki.ti.com/index.php/AM335x_Audio_Driver%27s_Guide in order to have the neccesary sound modules. 
Thanks in advance for any help you can provide.

TUSB8041: TUSB8041 driver ability

$
0
0

Part Number: TUSB8041

Hi,

We have known that TUSB8041 can support about 8in FR4 trace.

After 8in Trace, it connects to the end device by cable. Customer also wants to know how long the cable it can support at this condition?

Thanks.

Oliver Ou

CC2650STK: CC2650STK:

$
0
0

Part Number: CC2650STK

how can i turn off pressure sensor in cc2650 sensortag

DAC5681: DAC5681+THS3215

$
0
0

Part Number: DAC5681

We are in the designing phase of  a zero-IF based transmitter using DAC5681 with THS3215.

Our required output frequency range is from 1MHz to 50 MHz.

The DAC samples are at 122.88 MSPS with modulated signal with information bandwidth occupying 48 KHz.

We want to generate transmit signal with the combination of DAC5681 and THS3215. We want an output level of 30 dBm from this circuit to drive next Power amplifier stage, which has 50 Ohm input impedance.

Please suggest, whether we can go ahead with this design or any other recommendations..

Please suggest if any documents like schematics and HDL driver available for this application..

TPD8F003: issue with TPD8F003

$
0
0

Part Number: TPD8F003

we are using the TPD8F003 IC for EMI filtering. so we connected this IC between sitara processor AM5728 GPIOs to this ICs, and output of this EMI filter is connected to the LEDs for blinking. we used common anode leds and made this GPIO to high for OFF the LED. but we are unable to off.  we are getting 1.6V at the output of EMI filter. but when we remove this filter and checked the voltage we are getting 3.3V. how we can solve this issue. 

Viewing all 262198 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>