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

Compiler/TMS570LS3137: Clarification on memcpy_t2.asm

$
0
0

Part Number: TMS570LS3137

Tool/software: TI C/C++ Compiler

Hi Ti Experts,

In the below code snippet of memcpy_t2.asm provided by Ti compiler, It is pushing r4 to r6, but when it is loaded it is loading from r3 to r6.

Can you please help me in calculating how much stack is used here . I assume it should be how 16bytes.

_ovr16: PUSH {r4 - r6} ; COPYING 16 BYTES OR MORE.
SUBS r2, #16 ;
_lp16: LDMIA r1!, {r3 - r6} ;
STMIA r0!, {r3 - r6} ;
SUBS r2, #16 ;
BCS _lp16 ;
POP {r4 - r6} ; RESTORE THE SAVED REGISTERS AND
ADDS r2, #16 ; CONTINUE THE COPY IF THE REMAINDER
BEQ _ret_ ; IS NONZERO.

Regards,

Somesh


Compiler/TMS570LS3137: How to generate .COFF format files

$
0
0

Part Number: TMS570LS3137

Tool/software: TI C/C++ Compiler

Hi,

I am working on code composer studio 8.2.0 and using ti-cgt-arm_18.1.1.LTS compiler.

Can anyone please tell me which is the application i need to use to generate .COFF files?

Quick Response appreciated.

Regards,

Shivam Kakad

TMS320DM8148: can DM8148 encode 1080p@30 + 4xD1@25 video?

$
0
0

Part Number: TMS320DM8148

Hi, friends:

I'm trying to use DM8148 to encode 5 channels video. Channel 1 1080p30 is input from GV7601 to link VIP0(16bit)->DEI->ENC->save, Channel 2~5 is input from TVP5158 MUX_4CH_D1 mode(25FPS) to VIP1(8bit)->DEI->ENC->save. But when I tested, the output frame rate of  CH1 was only 20, 4D1 was 8~10.

Our chip is CYE0 speed range, HDVICP2 306MHz, HDVPSS 200MHz. My preliminary judgement is due to insufficient frequency. Am I right? 

If that's the reason, can I force a higher frequency to meet the requirements?

BLDC-Sensored what does each LEVELs mean? I don't understand

$
0
0

The software path I used:  D:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\BLDC_Sensored

#define LEVEL1 1 // Module check out (do not connect the motors)
#define LEVEL2 2 // Verify ADC, calibrate the offset, run the motor open loop
#define LEVEL3 3 // Auto-calibrate the current sensor offset
#define LEVEL4 4 // Verify closed-loop operation of BLDC, not regulated.
#define LEVEL5 5 // Verify the closed current loop and current PI controller.
#define LEVEL6 6 // Verify the closed speed loop and speed PI controller.

1. what does each LEVELs mean? I don't understand,What is the relationship between the above six routines?I read the reference guide and didn't understand it.

2. Is there some routine that needs to be re-assigned to a parameter of the program after it is run, for example BemfA_offset,BemfB_offset,BemfC_offset?

AMC1211-Q1: Amc1211-q1 input voltage range

$
0
0

Part Number: AMC1211-Q1

Hi,

I wanted to know the input voltage range of the Amc1211-q1 IC.

Is it 0-2 volts or - 2 to 2 volts?

BEAGLEBK: ksz-9477: Issues in switch nodes

$
0
0

Part Number: BEAGLEBK

Hi,

    I am enabling MICROCHIP KSZ-9477 ethernet switch port in Beaglebone black board using linux sdk kernel version 4.9, Able to read SPI chip data, but not able to see  switch nodes

Attached my referrence:

&spi1 {
pinctrl-names = "default";
pinctrl-0=<&spi1_pinsz>;
status = "okay";

ksz9477: ksz9477@0 {
compatible = "microchip,ksz9477";
reg = <0>;
reset-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
spi-max-frequency = <44000000>;
/*spi-max-frequency = <1000000>;*/
spi-cpha;
spi-cpol;
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "lan5";

};
port@5 {
reg = <5>;
label = "cpu";
/* ethernet = <&eth0>; */
ethernet = <&cpsw_emac0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};


Microchip ksz9477 5 switch ports Working scenario:

root@imx6qdlsolo:~# ls /sys/bus/spi/devices/spi5.0/
driver power subsystem sw0 sw2 sw4
modalias registers sw sw1 sw3 uevent

 

Switch not found in Beaglebone black

root@am335x-evm:~# ls -la /sys/bus/spi/devices/spi2.0/
modalias of_node/ power/ statistics/ subsystem/ uevent

 

Anyone please help me to enable Microchip ksz-9477 switch ports in Beaglebone black

 


Regards,

SanthanaKumarS

DLPDLCR2000EVM: DLPLC2000EVM NOT WORKING

$
0
0

Part Number: DLPDLCR2000EVM

Hi team,

              Unfortunately 12V --2A power supply is given to DLPLC2000EVM , still not responding only blink Green color led light only on  the PCB board..

Thanks,

Rajinikanth

LM5030: PSPICE model does not have GND

$
0
0

Part Number: LM5030

Hi,

I imported the PSPICE model of LM5030 into TINA TI and the symbol has only 9 terminals, because the ground terminal is missing.

Is it correct or do I do something wrong? How can I set the ground reference for the IC when it does not have a ground terminal?

Regards, Julia


SN65DSI86: HDMI TO CSI2 AND DP TO CSI2 BRIDGE

$
0
0

Part Number: SN65DSI86

Dear Support team,

my customer is looking for HDMI TO CSI2 AND DP TO CSI2 BRIDGE solutions. it seems that we don't have solution in our portfolio, i only could find DVI to DP solutions do you confirm?

Thanks 

Kind REgards

Nicola

TPS565208: TPS565208

$
0
0

Part Number: TPS565208

Hello

We are using TPS565208 module to generate diff voltages like 3.3V, 1.2V, 1V from 5V.

We are doing QM333 on our product and we have faced that during the hot cycle the module has gone bad.

PFA schematic for reference.

Also Can you please help us to understand why it happened?

Regards

Akash Jain

CC2530: CC2530 z-stack joining problem

$
0
0

Part Number: CC2530

Hi guys,

I'm using cc2530 Zigbee module and z-stack home automation 1.2.2a sample light end device code.

I've got a serious problem in joining.

sometimes it continuously sending beacon and never start joining by sending association request even though coordinator response to its beacons. 

and sometimes it starts joining process but not the entire process, for example, stop at simple descriptor response and sometimes it not sending its clusters entirely.

and sometimes sending some of the clusters but stop at this level.

I attached my log file.(Please visit the site to view this file)

TMS320F28xx hardware design proplem of the Jtag

$
0
0

What the meaning of the sentence "This pin has an internal pulldown and should never be pulled high"? Is that  means /TRST can‘t been high?

AM4376: GPIO inputs in U-boot

$
0
0

Part Number: AM4376

On our target board we have three am4376 targets.  Each is using GPIO Bank 0 inputs 1 and 2 (Not 0 and 1) to identify which CPU instance any executable code environment may be running. Each is pulled either high or low using a 1K pull up/down resisters. (We have checked the specs and this is a strong enough resister to overcome the internal pullup if used.)  

At present I can test this functionality on 2 of the three targets using SPL and U-boot. Using U-boot it appears that I am not getting the expected input values on the GPIO0 inputs. 

This is the expected result:

CPU A = 0x00000002  // input 1 is low and input 2 is high

CPU C = 0x00000003 // input 1 is high and input 2 is high

This the code snippet, mux and DTS that I am using in SPL/U-Boot  ( I have attached the source files as well.)

in board/ti/am43xx/board.c

#define CPUTYPE_MASK 0x0000006
#define CPUTYPE_MSB 2
#define CPUTYPE_LSB 1
#define GPIO0_DATAIN (AM33XX_GPIO0_BASE + OMAP_GPIO_DATAIN)
#define GPIO0_OE (AM33XX_GPIO0_BASE + OMAP_GPIO_OE)

static void set_bank0_direction(int gpio,int is_input)
{
void *reg = GPIO0_OE;
u32 l;

l = __raw_readl(reg);
if (is_input)
l |= 1 << gpio;
else
l &= ~(1 << gpio);
__raw_writel(l, reg);
}

static int get_bank0_value(int gpio)
{
void *reg = GPIO0_DATAIN;

return (__raw_readl(reg) & (1 << gpio)) != 0;
}

unsigned int get_bank0val(void)
{
u32 Bank0Val = 0;

enable_cpu_gpio_pin_mux();
set_bank0_direction(CPUTYPE_LSB,1);
set_bank0_direction(CPUTYPE_MSB,1);

if( get_bank0_value(CPUTYPE_LSB) > 0)
{
Bank0Val += 1;
}

if( get_bank0_value(CPUTYPE_MSB) > 0)
{
Bank0Val += 2;
}

return Bank0Val;
}

unsigned int get_cputype(void)
{
u32 Bank0Val = 0;
unsigned int RetVal;

enable_cpu_gpio_pin_mux();
Bank0Val = get_bank0val();

switch(Bank0Val)
{
case CPU_A:
{
RetVal = CPU_A;
break;
}

case CPU_B:
{
RetVal = CPU_B;
break;
}
case CPU_C:
{
RetVal = CPU_C;
break;
}

default:
RetVal = CPU_A;
}

return RetVal;
}

void sentenv_cputype(void)
{
int cpu_type = get_cputype();

printf("get_bank0val() : 0x%08X\n",get_bank0val());

// Set env varible cputype
switch(cpu_type)
{
case CPU_A:
env_set("cputype","A");
break;
case CPU_B:
env_set("cputype","B");
break;
case CPU_C:
env_set("cputype","C");
break;
default:
// Unknown
env_set("cputype","1");
}

}

in board/ti/am43xx/mux.c

static struct module_pin_mux gpio0_pin_mux[] = {
{OFFSET(mii1_rxdv), (MODE(9) | PULLUP_EN)}, /* GPIO0_1 */
{OFFSET(mcasp0_axr1), (MODE(9) | PULLUP_EN)},/* GPIO0_2 */
{-1},
};

void enable_cpu_gpio_pin_mux(void)
{
configure_module_pin_mux(gpio0_pin_mux);
}

Devicetree for u-boot: /arch/arm/dts/am437x-idk-evm.dts

gpio0_pins_default: gpio0_pins_default {
pinctrl-single,pins = <
AM4372_IOPAD(0x118, PIN_INPUT | MUX_MODE9) /* (A15) mii1_rx_dv.gpio0[1] */
AM4372_IOPAD(0x1a8, PIN_INPUT | MUX_MODE9) /* (M25) mcasp0_axr1.gpio0[2] */
>;
};

This is the result when setenv_cputype() is called from board_eth_init() in board.c

(I have confirmed, using a meter, that the inputs on 1 and 2 are being driven to the expected levels)

From CPU A:

get_bank0val() : 0x00000002
<ethaddr> set to CoreACE CPU C

From CPU C:

get_bank0val() : 0x00000002
<ethaddr> set to CoreACE CPU C

We have also used an emulator to break on the get_bank0val() function and read the GPIO Bank 0 register and identified that it contains the data we are seeing.

Also, If I stop u-boot and use the gpio command on the command line I get the same result on CPU A and CPU C.

Have I configured the pins and bank registers correctly? If so, isre more needed to read the input data.


Thanks in advance,

Rob

(Please visit the site to view this file)

TAS2557: Power down and mute / Low power sleep

$
0
0

Part Number: TAS2557

Hello!

I am using TAS2557 working as a master on I2S (WCLK 44.1kHz, BCLK 1.4MHz ,16bit) in ROM Mode 1.
My TAS2557 is a part of an embedded system running on a 1.5V battery, so naturally i want the TAS2557 to consume as little power as possible while not playing audio. So, when there is no audio to be played (i know this in my program) i want to put the TAS2557 in "Low power sleep mode" or use a "power down and mute" sequence. And when there is audio to play, i want to wake up the device again.

Whenever i try to write the example presented in the datasheet, the clocks generated by TAS2557 (WCLK and BCLK) shuts down and the power consumption is significally lowered. But whenever I try to power up the device again, nothing is happening. 

So my question is: What sequence of commands do i need to send in order to get the device to power down and power up somewhat quick? I dont want to re-initialize the device all over again.
I don't necessarily need the absolute lowest power consumption possible. The time it takes to power down/power up is more important.

Thank you in advance,
/Viktor

DP83869HM: DP83869HM

$
0
0

Part Number: DP83869HM

Hi ,

i am using DP83869HM transceiver 

i am unable to configure Activity registers for different ports like for electrical port and optical port am using i want to configure them seperately.

Please refer me any other register other than this common register for activity status .

thanks 

kaavya


TMS570LS0432: Watch Dog implementation

$
0
0

Part Number: TMS570LS0432

I need to implement watch dog timer in my code. I initialized for 100ms as:

rtiREG1->WWDSIZECTRL = 0x00000005;
rtiREG1->DWDPRLD = 0x3D1;
rtiREG1->DWDCTRL = 0xA98559DA;

In the main code, i'm setting WDKEY at the starting of the function as:

rtiREG1->WDKEY = 0xE51A;

& setting it again as

rtiREG1->WDKEY = 0xA35C; when a corresponding function is finished it's task.

When i ran the code, i NERROR LED is flashing. I removed the WD function & flashed the code, controller is working fine.

Can anybody help me on whether the sequence for enable & servicing the watch dog is correct.

SN74AVC2T244: Need Thermal Details

$
0
0

Part Number: SN74AVC2T244

Hello TI,

Please provide us values of following parameters for SN74AVC2T244DQER:

  • Maximum Thermal resistance (junction to ambient)
  • Maximum Junction Temperature

Regards,

Purvi

WEBENCH® Tools/LAUNCHXL-F28379D: matlab tool usage in dsp board TMSC2000F28379

$
0
0

Part Number: LAUNCHXL-F28379D

Tool/software: WEBENCH® Design Tools

Closed loop speed control of induction motor  matlab simulation i am trying by using DSP board F28379D.  in closed loop operation Speed measurement sensing through proximity sensor. Output of speed sensor having only one signal. speed sensor data giving to DSP board through the eQEP block of matlab for comparision with original speed. but i am not understanding how to use eQEP block for speed measurement. Please give me a suggestion for how to use eQEP clock in speed measurement. If possible provide vidio link for usage of that block in matlab with dsp boardF28379D.

thanking you,

with regards,

mahesh   

DLPDLCR2000EVM: Setting it Up with Raspberry pi 3B+ not working

$
0
0

Part Number: DLPDLCR2000EVM

I am following the tutorial from here http://frederickvandenbosch.be/?p=2948 
Initially when i ran the below commands its shown the raspberry pi desktop but after few seconds it disappeared. 

sudo i2cset -y 3 0x1b 0x0c 0x00 0x00 0x00 0x13 i

sudo i2cset -y 3 0x1b 0x0b 0x00 0x00 0x00 0x00 i

Currently its Showing only Splash screen of projector.

The output of i2cdetect is as follows. Any help on troubleshooting it.



Regards,
_Apurva

MSP430FR5994: BSL Memory area as INFO area

$
0
0

Part Number: MSP430FR5994

Hey,

Can anyone please guide me related to memory allotment. I am thinking to extend my „Info“ area to „BSL“ since I am not using it for bootloader. Is it possible? Can I just remove BSL from my linker command file and extend Info to that Memory address?

I‘ll appreciate your response.

cheers

Jahangir

Viewing all 262198 articles
Browse latest View live


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