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

[DM3730] Resizer demo not working

$
0
0

Hi.

I cannot run the loopback_resizer_demo that comes with the software guide. It shows "Failed to create resize job".

I saw a command to add in the bootargs dm365_imp.oper_mode = 1. with this and without this, the demo will still not work. 

Any one can help?

Thanks.


Flash speed

$
0
0

Hello!

Why is it not needed to insert wait states for the FLASH memory to operate properly, as we increase the MCLK frequency, in the same fashion that it is needed for the FRAM to operate above 8MHz?

I mean, does the FLASH always operate at the same frequency regardless of the CPU speed? If so, at what frequency does it operate?

Thanks!

transfer files in serial with Linux

$
0
0

Hello,

Is there some utility in filesystem to transfer files using the the serial interface into Linux target (board) ? Is there some utility for using kermit in target ?

Thanks,

Ran

Bluetopia Samples are over evaluation code size limitation

$
0
0

I'm trying to use the MSP EXP430F5438A to pair a CC2564 bluetooth device for my senior design project. I'm using an evaluation license for this project. I'd like to follow the SPPLE or SPP demos in the Bluetopia samples but both are over the 16k code size limit (even the lite version) and thus wont run. Is there another way I can see these run? Or are there other similar TI examples that accomplish the same task within the 16k code size limitation?

CC1111 CDC Isochronous Endpoints

$
0
0

I am running into an issue with the limitation of bulk endpoint transfers being 64 bytes max (per USB Spec section 5.8.3).  This limitation is forcing me to try to implement isochronous endpoints. 

The usb_descriptor.h file says the following for the different endpoint attributes:

#define EP_ATTR_CTRL          0x00  ///< Control (endpoint 0 only)
#define EP_ATTR_ISO             0x01  ///< Isochronous (not acknowledged)
#define EP_ATTR_BULK          0x02  ///< Bulk
#define EP_ATTR_INT             0x03  ///< Interrupt (guaranteed polling interval)
#define EP_ATTR_TYPE_BM   0x03  ///< Endpoint type bitmask

Does anyone know why the isochronous EP says '(not acknowledged)'?  Any reason I shouldn't be able to run CDC with an isochronous EP and still emulate a COM port?  The CDC spec seems to support it (CDC Spec section 3.5.2).

The symptoms: When I change my endpoint from bulk to isochronous in usb_cdc_descriptor.s51 my software seems to lock up.  After loading the USB EP4 FIFO (via DMA) the pipe seems to lock-up without transferring the data to the host.  Maybe it's dropping the packet?  Everything works fine when using bulk endpoints.

Background: I started my project using the rf_modem example and have converted the RFRX to USB to be completely DMA controlled, rather than CPU.  I require an effective data rate of at least 2Mbps to the USB port, and prefer to transfer to the host in 240byte packets IN, 16 byte packets OUT, using single buffering techniques.

Thanks in advance for any help.

EMI or ESD problem

$
0
0

Dear All,

I did a very simple circuit to control three relays (that controls 220VAC Lights).

The circuit is as the following:

MSP430F2122 with three input pins with internal pull downs, connected to three push buttons, the other side of the buttons is connected to the 3.3V supply via 4.7K ohm resistor

The MSP430F2122 uses other three pins as outputs to drive ULN2003 that drives the relays.

The code in the MSP430F2122 is designed to reset to 0 (off position) the three outputs, then scan the three inputs when an input event happens it toggle its output to toggle the relay.

This sounds simple and works fine but I faced a huge problem when I installed this device to control the actual lights.

When other surrounding inductive loads (Fluorescent lamps with normal transformer and starter) switched off I found my lamps turn off as a result of a reset.

The distance between the switch of the inductive lamp load and my circuit is about 2 meters

Since the distance is a bit large I repeated the action several time, my circuit resets in 90% of the cases.

 I returned to check what’s wrong in my hardware design, I don’t know a specific reason but I wish that you can help me.

1)      The reset pin is connected to the 3.3V Vcc via 47K ohm resistor, nothing else

2)      All of the unused pins are left at the reset stat (all inputs, no pull ups or downs, no interrupt enable)

If anyone can help, I need the following:

1)      some explanations of why this is happening, what is the design mistake

2)      how to solve it

3)      how to create the problem on bench and confirm that the solution is really effective (Electromagnetic Interference, Electrostatic Discharge and Fast Transient Burst)

 Best regards,

Mina Anton

 

+/-15VDC supply from 48VDC

$
0
0

I am hoping to make a 48VDC to +/-15VDC power supply. The LMZ34003 does not say whether it is isolated. Is there some way to us use two of them, one for + 15 and the other for the -15? 

Unable to download and run wlan_station.

$
0
0

After installing the CC software, try to run wlan_station.  It may work the first time but becomes progressively worse.  2nd run results in short banner.  Third run results in nothing on terra term screen.

These are the types of errors that come up on the IDE:

Cortex_M4_0: Error connecting to the target: Debug Port error occurred.

Cortex_M4_0: GEL Output:

Memory Map Initialization Complete

Cortex_M4_0: GEL Output:

Target Reset

Cortex_M4_0: Can't Run Target CPU: Debug Port error occurred.

Another debug run:

Cortex_M4_0: GEL Output:

Memory Map Initialization Complete

Cortex_M4_0: GEL Output:

Target Reset

Cortex_M4_0: Error: Debug Port error occurred.

Cortex_M4_0: Trouble Reading Register SP: Debug Port error occurred.

Debugger error:

No source available for "UtilsDelay() at C:/TICodeComposer\John\workspace\wlan_station\Release\wlan_station.out:{3} 0x20010710{4}"

     Also, I reflashed the FTDI EEPROM (93LC46B) and there was no change in its code.  So this appears to be ok.   There could still be something wrong with the FTDI chip itself.

     However there is no reset pulse going low at FT2232D pin 19, even though the IDE is config’d to send resets before code download.  This makes me suspect the FTDI chip may be bad (FT2232D).

Any Ideas?

Thanks,

John


Tas5756m power question

$
0
0

Hi all!

Is it harmful for the device to be fed pvdd without any of the 3v3 pins being supplied (eg dvdd etc)?

I ask because the chip "popped the hood" on us while testing just that and a pretty large crater suddenly appeared on the top of the chip revealing its guts. Probably some other problem or mistake but good to rule that out while trouble shooting and would of course affect desicions around psu design.

Headphone driving for LME49600

$
0
0

Hi, firstly sorry for grammer.


I have a DAC for 2.25vpp output and audiotechnicha ad700 32ohm headphone, I dont need voltage amplifier stage. So I think I can use lme49600 without voltage amplifier stage, only current driver. I designeda simplecircut


Is that work? If isn't, why?

Hot-swap/multiplexing CAN transceivers

$
0
0

I want to connect a microcontroller with two CAN channels to three different CAN networks, selected via code. Effectively, I want to multiplex my CAN transceivers.

For CAN1, I use the TI SN65HVD232. For my second channel, I want to use HS-CAN with an SN65HVD232 or SW-CAN with the NCV7356 from ON Semi (TI doesn't offer SW-CAN transceivers).

What is the best way to multiplex these transceivers from a hardware standpoint? Do I just use a switch for CANH and CANL (and if so, which switch could I use)? Or would I just turn one transceiver off and only have one operational at a time? Ideally, I would like to be able to switch the selected network on and off without cycling power to the microcontroller.

In the past, I looked at using the TS3A24157 as a switch, but I never managed to get it to work (could be too lossy, too slow for 250kbps, or maybe my code was just wrong). I'd appreciate hearing how you would design such a network from a clean slate. I have limited access to test equipment, so while the last time I posted I received a very helpful response about 'scoping the delay, it's much more feasible for me to implement what someone else has already tested.

Thoughts, part numbers, and especially diagrams are appreciated!

Problems running blink SDK example app

$
0
0

First I'll preface this saying I'm only slightly more experienced than a newbie, so I apologize in advance.....

I was running the blinky app and trying to access it and step through it in debug. Whenever I try to pause it I get the following error.

"No source available for "UtilsDelay() at  C:/Users\William\workspace_v6_0\blinky\Release\blinky.out:{3} 0x200050d0{4}" 

I made some modifications to the code, is it possible that the modifications have broke my code? Here are the modifications I've made... 

void LEDBlinkyRoutine()
{
    //
    // Toggle the lines initially to turn off the LEDs.
    // The values driven are as required by the LEDs on the LP.
    //
	int LEDCounter = 8000000;
    GPIO_IF_LedOff(MCU_ALL_LED_IND);
    while(1)
    {
        //
        // Alternately toggle hi-low each of the GPIOs
        // to switch the corresponding LED on/off.
        //
    	if (LEDCounter < 100000 )
    	{
    		LEDCounter = 8000000;
    	}
    	else
    	{
        MAP_UtilsDelay(LEDCounter);
        GPIO_IF_LedOn(MCU_RED_LED_GPIO);
        LEDCounter = LEDCounter - 100;
        MAP_UtilsDelay(LEDCounter);
        GPIO_IF_LedOff(MCU_RED_LED_GPIO);
        LEDCounter = LEDCounter - 100;
        MAP_UtilsDelay(LEDCounter);
        GPIO_IF_LedOn(MCU_ORANGE_LED_GPIO);
        LEDCounter = LEDCounter - 100;
        MAP_UtilsDelay(LEDCounter);
        GPIO_IF_LedOff(MCU_ORANGE_LED_GPIO);
        LEDCounter = LEDCounter - 100;
        MAP_UtilsDelay(LEDCounter);
        GPIO_IF_LedOn(MCU_GREEN_LED_GPIO);
        LEDCounter = LEDCounter - 100;
        MAP_UtilsDelay(LEDCounter);
        GPIO_IF_LedOff(MCU_GREEN_LED_GPIO);
        LEDCounter = LEDCounter - 100;
    	}
    }

}

Thanks in advance for the help!

cc2538

$
0
0

Is there any demo videos ??

I went through the data sheet of cc2538 and it is given 512-kB, 256-kB or 128-kB In-System- Programmable Flash. So how it is configured?

It is also given that it Supports Dual ZigBee Application Profiles. How???

can't use __no_operation() or __delay_cycles()

$
0
0

Hi and hello!

I seem to never get out from these functions, and at this point I've tried everything (i know of) so i'm just gonna put everything on the table. I get no compilation errors or warnings and the rest of the code runs fine. I'm using the latest gcc compiler and i'm flashing the processor with Flasher.exe from the command line with "MSP430Flasher.exe -n msp430g2xx3 -w "main.hex" -v -z [VCC] -m SBW2" (i've also tried putting "-std=c99" at the end of it, with same results).

Hope you can help me!

#include <msp430g2553.h>
#include <stdint.h>

enum Status { IDLE, READY };
volatile enum Status g_status = IDLE;


#pragma vector=USCIAB0RX_VECTOR
__interrupt void USCI0RX_ISR(void)
{
	if(g_status == IDLE){
		g_status = READY;
	}
}

void do_this()
{
        // never gets out of this one
	unsigned int var1 = 0;
        unsigned int var2 = 1000;
        while(var1 < var2){
              __no_operation();
              var1++;
        }
        
        // never gets out of this one either
        __delay_cycles(1000);
}

int main(void) 
{
        // stop watchdog
	WDTCTL = WDTPW | WDTHOLD;
        // 1 MHz
        DCOCTL = 0;                               
	BCSCTL1 = CALBC1_1MHZ;                    
	DCOCTL = CALDCO_1MHZ;
        // enable interrupt
	__bis_SR_register(GIE);
	for(;;) 
	{
		if(g_status == READY){
			do_this();
			g_status = IDLE;
		}
	}
}

What's a better way of waiting for a nested interrupt to trigger?

$
0
0

Hi,

Board: Tiva™ C Series TM4C1294

EK-TM4C1294XL

I want my switch button interrupt handler to trigger an ADC sample, and then wait for it to finish sampling before proceeding. Right now I'm polling a global variable until it has been set to "READY". Is there a better way?

int_status is a global variable.

/* priorities */
	IntPrioritySet(INT_ADC0SS0_TM4C129, 0x00);
	IntPrioritySet(INT_GPIOJ_TM4C129, 0xC0);

/* switch interrupt handler */
void swHandler(void)
{
	GPIOIntClear(GPIO_PORTJ_AHB_BASE, GPIO_INT_PIN_0);

	UARTprintf("Checking ADC Value...\n");
	ADCProcessorTrigger(ADC0_BASE, 0);
	int_status = WAITING;
	while (int_status == WAITING) {
		UARTprintf("Waiting...\n");
	}

	UARTprintf("Done. Value is %d\n\n", adc_value);
}

/* ADC Interrupt Handler */
void adchandle(void)
{
	ADCIntClear(ADC0_BASE, 0);
	ADCSequenceDataGet(ADC0_BASE, 0, &adc_value);
	int_status = READY;

}


MSP and 6LowPan kit

$
0
0

http://www.ti.com/tool/TIDM-RF-SENSORNODE#tiDevice

Can we get this development kit? We are planning to create a formfactor design and wanted a development kit. with MSP and 6LowPan hardware.

Please let us know. Also let us know the best method to start this activity.

tiva c129x audio playback from sd card

$
0
0

Hi,

I was wondering if it is possible to play audio from the sd card to a speaker. Not necessarily to the built in speaker. 

If so, what would I youse to do it?

Thanks,

Tibor

How to modify "nal_ref_idc"?

$
0
0

Hi,dear team

When using the omx_05_02_00_48 component

I use  EZSDK,DM8168.

How to modify "nal_ref_idc"?

Thanks and Best Regards

Ammon

DK-TIVA4C129x TMP100 sensor I2C

$
0
0

Hi,

I have Tiva4C129x development kit. It has TMP100 temperature sensor which has I2C.

My purpose is to learn I2C and read the temperature from the sensor.

I have wrote a dummy code which explains the procedure in which one should configure I2C and start the communication.

SCL and SDA is located on PB6 and PB7 on TIVA. Also it uses I2C6 module which is connected to TMP100.

I have read the datasheet of both device and from that what I have understood I wrote the code.

Please note that I'm just focusing on the procedure and dont worry about debugging the code right now. I'm using 25MHz crystal.

I'm bit confused in configuring the TMP100 registers. It has 5 registers in total. Pointer Reg, Configuration Reg, Temperate High and Low Reg, Temperature Register. The last one stores the conversion result.

Also I'm not sure if I'm waiting for acknowledgement correctly or not. Please correct me if I'm wrong.

Here is the code.

#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_i2c.h"
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "driverlib/i2c.h"
#include "driverlib/interrupt.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"

#define SLAVE_ADDRESS 0x4A
void main()
{
	SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN |
                   SYSCTL_XTAL_25MHZ);
				   
	SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C6);
	
	SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
	
	GPIOPinConfigure(GPIO_PB6_I2C6SCL);
    GPIOPinConfigure(GPIO_PB7_I2C6SDA);
	
	GPIOPinTypeI2CSCL(GPIO_PORTB_BASE, GPIO_PIN_6);
    GPIOPinTypeI2C(GPIO_PORTB_BASE, GPIO_PIN_7);
	
	I2CMasterInitExpClk(I2C6_BASE, SysCtlClockGet(), false);	//initialization of master module
	I2CMasterSlaveAddrSet(I2C6_BASE, SLAVE_ADDRESS, true);		//sets the slave address and indicate that the master is reading from slave
	
	I2CMasterDataPut(I2C6_BASE, 0x01);					//P1 P0 = 01 = configuration reg. Byte goes to PR
	while(I2CMasterBusy(I2C6_BASE));    //is it correct?
	I2CMasterDataPut(I2C6_BASE, 0xA1);					//sets the bits of configuration reg. A1 = 10 bit, shutdown, OS=1 start conv. Byte goes to Config Reg
	while(I2CMasterBusy(I2C6_BASE));
	
	I2CMasterSlaveAddrSet(I2C6_BASE, SLAVE_ADDRESS, true);	//selects the pointer reg
	while(I2CMasterBusy(I2C6_BASE));	
	I2CMasterDataPut(I2C6_BASE, 0x03);					//P1P0= 11 = Temp high reg. Byte goes to PR
	while(I2CMasterBusy(I2C6_BASE));	
	I2CMasterDataPut(I2C6_BASE, 0x640);					//sets the Thigh reg = 100C. Byte goes to Thigh
	
	I2CMasterSlaveAddrSet(I2C6_BASE, SLAVE_ADDRESS, true);	//selects the pointer reg
	while(I2CMasterBusy(I2C6_BASE));	
	I2CMasterDataPut(I2C6_BASE, 0x02);					//P1P0= 10 = Temp low reg. Byte goes to PR
	while(I2CMasterBusy(I2C6_BASE));	
	I2CMasterDataPut(I2C6_BASE, 0x640);					//sets the Tlow reg = -25C. Byte goes to Tlow
	while(I2CMasterBusy(I2C6_BASE));	
	
	I2CMasterSlaveAddrSet(I2C6_BASE, SLAVE_ADDRESS, true);  //selects the pointer reg
	while(I2CMasterBusy(I2C6_BASE));	
	I2CMasterDataPut(I2C6_BASE, 0x00);					//P1P0= 00 = Temp high reg. Byte goes to PR
	while(I2CMasterBusy(I2C6_BASE));	
	data_low = I2CMasterDataGet(I2C6_BASE);						//receives the bytes from slave
	data_high = I2CMasterDataGet(I2C6_BASE);
	while(I2CMasterBusy(I2C6_BASE));	

}

I hope the I have given enough information, if not please let me know. 

Again I'm more interested to know about the procedure rather than worrying about the code itself.

Any help is much appreciated. thanks

SN74LVC4245 external circuit

$
0
0

Hello, everyone.

 

I'm considering about Hot-Swap.

 

So, I selected the 74LVC4245 as a backplane bus tranceiver.

During the search, I found the document number "SCEA026-Logic in Live-Insertion Applications".

In this document, LVC-Logic is Level 1 Isolation, and "Ioff circuit" is required.

But I can't find the "Ioff circuit".

Please Help me.

 

Thank,

Byoungkil.

Viewing all 262198 articles
Browse latest View live


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