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

RTOS/AM3359: PRUICSS_create internal call return address corruption

$
0
0

Part Number:AM3359

Tool/software: TI-RTOS

Greetings,

For the past few weeks I have been getting acquainted  with TI-RTOS on a BeagleBone Black. I have an XDS200 connected and can happily debug my test apps with the CCS8.2.environment.

I understand about pin-muxes, have rebuilt the binarys, have modified board files to suit my devices, and have written apps to exercise a number of UART channels, I2c and USB devices. So far so good.

Now I come to the PRU's - the classic setup code:

int32_t ret = PRUICSS_socGetInitCfg(&cfg);
if (ret != PRUICSS_RETURN_SUCCESS) return (ret);

hPru = PRUICSS_create((PRUICSS_Config*) cfg, PRUICCSS_INSTANCE_ONE);

The PRUICSS_create call causes a "CortexA8: Unhandled ADP_Stopped exception 0x800249A8"

Within the PRUICSS_create function is a memory read of address 0x4A326000 to stash the device version into a config stucture. The function uses CSL_REG32_RD to do the read. The return address from this function is not that that was placed on the stack, so a car crash ensues. Why? What magic is happening here?

I added :

var peripheralAttrs = {
type : Mmu.FirstLevelDesc_SECTION, // SECTION descriptor
tex: 0,
bufferable : false, // bufferable
cacheable : false, // cacheable
shareable : false, // shareable
noexecute : true, // not executable
};

// Define the base address of the 1 Meg page the peripheral resides in.
var PruBaseAddr = 0x4A300000; // PRU_ICSS memeory space

// Configure the corresponding MMU page descriptor accordingly
Mmu.setFirstLevelDescMeta(PruBaseAddr,
PruBaseAddr,
peripheralAttrs);

to the .cfg to disable the cache at the PRU region, but this didn't fix the issue.

I then tried "Cache.enableCache = false" and "Mmu.enableMMU = false" in the .cfg to discount the obvious, but still the return address is corrupt.

I have done numerouse project cleans and rebuilds between code changes, and a final gmake clean / gmake on the PDK (v1.0.13 btw)

Help

Bruce.


ADS42LB69: TI ADS42LB69 ADC Channel A and B clocks and Data Bit Alignment

Linux/AM5708: support TLV320AIC32

$
0
0

Part Number:AM5708

Tool/software: Linux

Hello,

I am trying to set up drivers of TLV320AIC32 to linux(core - 4.14.79-gbde58ab01e).

I've uderstood that I have to use a pack - Linux Driver for TLV320AIC32X4. But I found some strange things here. 

Firstly, in the documentation about dts is written - 

- supply-*: Required supply regulators are:
    "iov" - digital IO power supply
    "ldoin" - LDO power supply
    "dv" - Digital core power supply
    "av" - Analog core power supply

It looks as if I have to use "supply-iov", "supply-ldoin" and so on. But in code I see an ordinary form with *-supply. So, I use "iov-supply", "dv-supply" and "av-supply".
I have a fixed external voltage regulation, so my sound part in dts there
/ {
	model = "AM5708 p38 rev 1.0";
	compatible = "ti,am5718", "ti,dra718-evm", "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7";

	aliases {
		sound0 = &sound0;
	};

	chosen {
		stdout-path = &uart3;
	};

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x80000000 0x0 0x40000000>; /* 1024 MB */
	};
	
	sound0: sound0 {
		compatible = "simple-audio-card";
		simple-audio-card,name = "DRA7xx-EVM";
		simple-audio-card,widgets =
			"Headphone", "Headphone Jack",
			"Line", "Line Out",
			"Microphone", "Mic Jack",
			"Line", "Line In";
		simple-audio-card,routing =
			"Headphone Jack",	"HPLOUT",
			"Headphone Jack",	"HPROUT",
			"Line Out",		"LLOUT",
			"Line Out",		"RLOUT",
			"MIC3L",		"Mic Jack",
			"MIC3R",		"Mic Jack",
			"Mic Jack",		"Mic Bias",
			"LINE1L",		"Line In",
			"LINE1R",		"Line In";
		simple-audio-card,format = "dsp_b";
		simple-audio-card,bitclock-master = <&sound0_master>;
		simple-audio-card,frame-master = <&sound0_master>;
		simple-audio-card,bitclock-inversion;

		sound0_master: simple-audio-card,cpu {
			sound-dai = <&mcasp1>;
			system-clock-frequency = <5644800>;
		};

		simple-audio-card,codec {
			sound-dai = <&tlv320aic32>;
			clocks = <&atl_clkin2_ck>;
		};
	};

	reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		ipu2_memory_region: ipu2-memory@95800000 {
			compatible = "shared-dma-pool";
			reg = <0x0 0x95800000 0x0 0x3800000>;
			reusable;
			status = "okay";
		};

		dsp1_memory_region: dsp1-memory@99000000 {
			compatible = "shared-dma-pool";
			reg = <0x0 0x99000000 0x0 0x4000000>;
			reusable;
			status = "okay";
		};

		ipu1_memory_region: ipu1-memory@9d000000 {
			compatible = "shared-dma-pool";
			reg = <0x0 0x9d000000 0x0 0x2000000>;
			reusable;
			status = "okay";
		};
	};
	
	reg3: fixedregulator@0 {
		status = "okay";	
		regulator-name = "3vs";
		regulator-min-microvolt = <3000000>;
		regulator-max-microvolt = <3000000>;
		regulator-always-on;
		regulator-boot-on;
	};
	
	reg18: fixedregulator@1 {
		status = "okay";
		regulator-name = "18vd";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-always-on;
		regulator-boot-on;
	};
	
	mclk: fpgaosc {
        status = "okay";
		compatible = "fixed-clock";
        #clock-cells = <1>;
        clock-frequency  = <12000000>;
        clock-output-names = "mclk";
    };
	
};

&mcasp1 {
	#sound-dai-cells = <0>;
	status = "okay";
	op-mode = <0>;
	tdm-slots = <2>;
	serial-dir = <
			1 2 0 0	/* 0: INACTIVE, 1: TX, 2: RX */
			0 0 0 0
			0 0 0 0
			0 0 0 0 >;
};

&i2c1 {
	status = "okay";
	clock-frequency = <400000>;

	tlv320aic32: tlv320aic32@18 {
		#sound-dai-cells = <0>;
		compatible = "ti,tlv320aic32x4";
		reg = <0x18>;
		adc-settle-ms = <40>;
		ai3x-micbias-vg = <1>;		/* 2.0V */
		status = "okay";
		av-supply = <&reg3>;
		dv-supply = <&reg18>;
		iov-supply = <&reg18>;
		clocks = <&mclk 0>;
		clock-names = "mclk";
	};
};



Secondly, a directory "Menuconfig location" has not, hmmm, location. There are three config flags(two of them repeated, I don't undestand why) without location.
I haven't found a decision better then change a "KConfig" file. So, I changed next -

config SND_SOC_TLV320AIC32X4
tristate 

config SND_SOC_TLV320AIC32X4_I2C
tristate
depends on I2C
select SND_SOC_TLV320AIC32X4

to -

config SND_SOC_TLV320AIC32X4
tristate "Texas Instruments TLV320AIC32X4 audio CODEC"

config SND_SOC_TLV320AIC32X4_I2C
tristate "Texas Instruments TLV320AIC32X4 audio CODEC - I2C"
depends on I2C
select SND_SOC_TLV320AIC32X4

After that I got this flags in menuconfig.

I compiled my project and got next error during the kernel loading -

[   59.682391] tlv320aic32x4 0-0018: Missing supply 'iov'
[   59.688691] tlv320aic32x4 0-0018: Failed to setup regulators

I checked what the error number was returned. It is 517. I guess it was set in core.c on next lines -

if (!try_module_get(rdev->owner)) {
		regulator = ERR_PTR(-EPROBE_DEFER);
		put_device(&rdev->dev);
		return regulator;
	}

But I am not sure. Anyway, there I've decided to stop and ask some help about that. Becouse I think if I made a mistake early, when was preparing the driver.

Thank for your help

CCS/AM3359: Device connection failure with debug running.

$
0
0

Part Number:AM3359

Tool/software: Code Composer Studio

Hi. there


I have an AM3359ICE and J-Link Debugger.

I am working on ehtercat_slave_full_AM335x_arm project.

I have a few questions.


Q1. What version of the SDK is applied to the on-board image (IASDK 1.1.0.5)?
  ( ex: Processor-SDK-RTOS-AM335x 2.0.2 )

Q2. Is it correct to use version 5.12 of Beckhoff Slave Stack Code?

Q3. ehtercat_slave_full_AM335x_arm The following tests were performed in debug mode.
  If I connect Ethernet to Port 1, the master device will not be able to scan the AM3359ICE2. 
  However, if I connect Ethernet to Port 0, the AM3359ICE2 scan will be successful on the master device.  
  What is the difference between Port 0 and Port 1?

Q4. ehtercat_slave_full_AM335x_arm The following tests were performed in debug mode.
  If I am using Ethernet Port 1 and attempting a connection from the master device, the red LED will blink on the AM3359ICE2 and the connection will fail.

  The below source code is debugging point, please check in your source code.

Ecatslv.c
====================================================================================
UINT8 CheckSmSettings(UINT8 maxChannel)
{
...
pSyncMan = GetSyncMan(MAILBOX_WRITE);

SMLength = pSyncMan->Length;                           // pSyncMan->Length is 0
SMAddress = pSyncMan->PhysicalStartAddress; // pSyncMan->PhysicalStartAddress is 0

if (!(pSyncMan->Settings[SM_SETTING_ACTIVATE_OFFSET] & SM_SETTING_ENABLE_VALUE))
{
result = ALSTATUSCODE_INVALIDMBXCFGINPREOP;
}
...
}
====================================================================================

  I think that Blinking Red LED was AlStatusCode=0x16 that means ALSTATUSCODE_INVALIDMBXCFGINPREOP.


Thank you in advance.

ADS8681: External reference voltage

$
0
0

Part Number:ADS8681

We have a common 5V reference in our design which we want to use an an external reference for the ADS8681.

The datasheet states a maximum voltage of 5.7V on the ref pin (REFIO).

However, the datasheet states:

7.3.7.2 External Reference

"...In this mode, an external 4.096-V reference must be applied at the REFIO pin, which functions as an input."

Will the device work with a 5V reference?

TMS320F28035: F28035 example code SFRA GUI not connecting to mcu.

$
0
0

Part Number:TMS320F28035

Hello!

We try to explore SFRA in 28035
I try to follow the document to setup my program
C:\ti\controlSUITE\libs\app_libs\SFRA\v1_20_00_00\Doc\SFRALib
I don't have the DPS Workshop Board ,I want to test SFRA on my customer buck.
Now I can't conncet SFRA GUI but I'm already running program.
Does anything I ignore?

UCC28780EVM-002: CAD files

BQ40Z50: Problems communicating with NI 8451 and Labview

$
0
0

Part Number:BQ40Z50

Hello,

We are currently using the BQ40z50 chipset in one of our smart battery packs, and are developing several new packs which will use that same chipset.

We built a labview based test system to electrically test and verify communications and certain data fields in our smart batteries. We are using a national instruments usb8451 for the system communications to the battery pack.

We have encountered a problem with this setup that we cannot figure out. We test the 20z75 and the 34z100 without any problems.

When we test the packs using the 40z50, it causes the usb8451 to "lock" up and the labview test environment to crash. These crashes will happen about every 3 to 4 packs we try to communicate with.

We are at a loss to why this is occurring and need help solving it.


BATTERY BOOST CONVERTER GSM/GPRS APPLICATION

TMS320C6657: Cache coherence

$
0
0

Part Number:TMS320C6657

Hi,

What are procedures to maintain DDR cache coherence?Please help provide specific steps and Corresponding API.

CCS/TIDC-CC2650STK-SENSORTAG: CC2650F128

$
0
0

Part Number:TIDC-CC2650STK-SENSORTAG

Tool/software: Code Composer Studio

I have interfaced cc2650stk with TI devpack. Thru uart , i have connected another sensor. But i am not able to see the other sensor transmitting on cc2650stk uuart. What could be wrong?

TS5MP645: Multiple TS5MP645 connected as cascade

$
0
0

Part Number:TS5MP645

Hi Team,

Customer is considering using multiple TS5MP645 in the signal chain, the connection is as follows, here is my question:

Can TS5MP645 be used like this? If not, what are the possible problems and how to solve? 

Thanks and best Regards!

Hao

IWR6843ISK: Need to verify Antenna simulation for IWR6843 ODS EVM

$
0
0

Part Number:IWR6843ISK

Hello All,

         We are working on custom IWR6843 EVM ODS board using the 6843 chipset, I have run the antenna simulations in HFSS tool attached the results as a PPt, If any one can verify  that the results attached (Please visit the site to view this file)can be compared to TI antenna simulation results..

I have taken the Stack up/ PCB material RO3003, 5mils thickness, with appropriate Cu thickness, followed the same board stack up, material, antenna dimensions, Wish to know the simulation results that I have got are correct or not.

DRV8873-Q1: not clear about the fault state at some special condition

$
0
0

Part Number:DRV8873-Q1

Dear team,

The nFault description in the datasheet is not very clear, could you please help confirm the nFault status of the following conditions?

No over-temperature, over-current, under-voltage short-circuit and other fault conditions

The IC is in a stable state after power-on

SLEEP

L

L

H

H

EN

L

H

L

H

nFault

L or H?

L or H?

L or H?

L or H?

No over-temperature, over-current, under-voltage short-circuit and other fault conditions

the moment when the IC is powered on

SLEEP

L

L

H

H

EN

L

H

L

H

nFault

L or H?

L or H?

L or H?

L or H?

Thanks & Best Regards,

Sherry

LMX2594: LMX2594 SYSREFREQ pin setup and hold

$
0
0

Part Number:LMX2594

Hello,

We are currently using the LMX2594 in SYSREF repeater mode.  The OSCin freq is 320 MHz and the SYSREF input is 80 MHz (this is matched to a DAC38RF89).  The question is with the SYSREFREQ pin setup and hold time of 2.5 ns + 2 ns minimum. Are we going to have setup and hold issues on with this regarding the OSCin clock.  I see that in this mode the SYSREF is reclocked to the Finterpolator, which in our case is something like 960 MHz. Is there a setup and hold concern in this mode and how does the SYSREF get re-clocked to the Finterpolator and then Fout?

Thanks,

Jon


LMZ35003: Multiple Output voltages?

$
0
0

Part Number:LMZ35003

I'm looking at the datasheet for the LMz35003.

The Vout pin descriptions say the following

VOUT
10
11
12
13
14
15
39
Output voltage. These pins are connected to the internal output inductor. Connect these pins to the output
load and connect external bypass capacitors between these pins and PGND. Connect a resistor from these
pins to VADJ to set the output voltage.



If we connect the different Vout and VADJ pins with different Rset values in parallel, can we get different Vout voltage values?

So for example, if we connect Vout pin 10 with a 52.3KΩ to VADJ and Vout pin 11 to a 175KΩ ohm to VADJ,

Can we get both a 5V and 15V output?

My guess is it's not possible.  Just thought I'd double check.

TMS320F280049: VCU versioning discrepancy?

$
0
0

Part Number:TMS320F280049

Champs,

There seem to be a discrepancy between VCU versions in documentation (spru566m - c2000 real time control peripherals) and the c2000Ware/CCS. in the documents the VCUs are named VCU-I (f28004x) and VCU-II (f2837x). In the c2000ware codebase as well as in CCS compiler options the VCUs are called vcu0 or vcu2.

Question I have is does VCU-I from documents correspond to vcu0 in code? And VCU-II to vcu2?

thanks

Michael

LM3644: Pls. help to give some advice to enhance the lightness.

$
0
0

Part Number:LM3644

Dears:

Pls. help to give some advice to enhance the lightness.

From the below code and schematic, only under torch mode LM3644 can drive the LED lighting(HWEN and STROBE are high level and ignore the signal of TORCH/TX connecting with CPU) , however, the lightness is not enough.

lm3644_write_register(0x05, 0xbf);

lm3644_write_register(0x06, 0xbf);

lm3644_write_register(0x01, 0x2b);

BQ76200: BQ76200

$
0
0

Part Number:BQ76200

Dear All:

       I have the question about the BQ76200 in the DSG turn off MOS. As  show below, the SLUA794 describe if i use the small Cf, the turn off mos time is short than large Cf, 

 can you tell me ,  what  the Cf capacitance should i choose?1uf ,0.1uf or 10uf? Thanks~

     

SN74AUP2G08: SN74AUP series parts consume more power than expected

$
0
0

Part Number:SN74AUP2G08

I am using multiple parts from the SN74AUP family to implement some logic that is powered from a battery source. I have included two SN74AUP2G08DCUR, two SN74AUP2G32DCUR, and one SN74AUP3G04DCUR in my design. I had expected the total current draw for the five devices to be less that 5uA since the datasheet indicated that the static-power consumption was 0.9uA maximum. The circuit does drive a single load that requires ~3.5uA of current, and with the implemented logic, I was expecting a total current draw for this circuit to be less that 10uA. Using a series resistor to measure the current, I am seeing ~35uA of current draw for this circuit. I have confirmed this current draw on two different implementations. I have also confirmed that the input signals are not transitioning. I have attached a copy of my schematic implementation. Can you provide additional support in idnetifying why I am observing a higher than expected current draw from these devices? Battery voltage is 3.61V. Is this VCC voltage the source of my extra current consumption? With a battery voltage of 3.54V, I still measure a current draw of 32.5uA.

I can provide a schematic for the E2E representative, but I would rather not post it publicly.

Thanks,

Todd

Viewing all 262198 articles
Browse latest View live