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

CCS: Invalid variable values inside the variable/expression window

$
0
0

Tool/software: Code Composer Studio

Hi,

i am debugging the msp430f5659 with CCS 5.5.

My code is working and compiling without errors. I can also step through the code and see what is happening.

The issue is now, if i stop at a breakpoint and look into the variables via variable/expression window in the debug mode i get results of 0xFF or 0xBE in all variables.

Please see the attached image for more details.

Is that a setting issue in CCS 5.5 or something different.

best regards

Paul


TM4C1294KCPDT: Why we need to disable the interrupt of timer5?

$
0
0

Part Number:TM4C1294KCPDT

Dears:

We are using TM4C1294KCPDT, and we use some interrupts in code including timer0~4, I2C0~3, Mac, uart0, 1, 2, 7 etc.

In the below code the function of updateMCU() realises to update MCU on-chip FLASH's function as below picture:

However, we add a interrupt of timer5, the program will dead at function of updataMCU().

Then we add codes to disable  inferrupt of timer5 and the program is OK.

And we want to know why we use the below codes can not disable interrupt of timer5?

HWREG(NVIC_DIS0) = 0xffffffff;
HWREG(NVIC_DIS1) = 0xffffffff;

Best regards

Luck Wu

CCS/CCSTUDIO: CCS 8.0 progress bar inaccurate

$
0
0

Part Number:CCSTUDIO

Tool/software: Code Composer Studio

I'm successfully using CCS 8.0 recently released on Linux. There are some issues though and I'm opening forum posts for each separately, this is one of them.

The progress bar does not accurately show progress.

If you look at the bytes written/total in the screenshot you'll see code is almost all loaded  and the progress according progress bar is nowhere near the end.

Let me know if you have any idea how to fix this, or if it is a bug provide me a bugzilla entry to follow.

I'm using a C674x device using BlackHawk USB100v2 probe which otherwise works correctly.

Thanks

TMS570LC4357: Voltage Monitoring (Glitch on VCC and VCCIO)

$
0
0

Part Number:TMS570LC4357

Hello,

We are using the TMS570LC4357 and we have question about voltage monitoring characteristics (§6.2 in the datashet (spns195c)):

It is described in §6.2.3 that "The VMON has the capability to filter glitches on the VCC and VCCIO supplies.".

In a first request , we asked you to confirm that, if VCC or VCCIO fall down (e.g. when a Glitch appears on VCC or VCCIO) during the timing given in Table 6-2, the circuit will not be disturbed.

You replied us the following sentence: "-       You are correct. As long as the glitch does not exceed the maximum specification, it will be filtered."

However, In our question, the word “circuit” meant the full microcontroller: core (SW execution) and other peripherals.

Therefore we reformulate the question:

Could you confirm that, if VCC or VCCIO fall down (e.g. when a Glitch appears on VCC or VCCIO) during the timing given in Table 6-2, the full microcontroller: core (SW execution) and other peripherals.will not be disturbed ?

Best regards,

Christopher

Linux/cc1310: IPv6

$
0
0

Part Number:cc1310

Tool/software: Linux

Hello,

I have built an IoT system that consists of 2 cc1310 launchpads running cc26xx web demo and they are connected to a gateway (cc1310 launchpad + Ethernet controller ) that runs 6LBR lite.

Now I want to capture the packets between the gateway and the launchpads. However, when I run Ettercap to find the IPv6 addresses, it only shows the IPv6 address of the gateway. While the other launchpads connected to it, already have IPv6 addresses according to the 6LBR page but I can't find them using Ettercap.

Is there a way to detect the IPv6 addresses of the launchpads?

Thank you,

TMS320F28069: I2C Communiciation with MCP9808

$
0
0

Part Number:TMS320F28069

Hi,

I am trying to read temperature data from MCP9808 via I2C of F28069 MCU. But I could not. Please find the code below. Do you have any suggestion?

MCP9808

// I2C GPIO Configuration
/* Enable internal pull-up for the selected pins */
GpioCtrlRegs.GPBPUD.bit.GPIO32 = 0;    // Enable pull-up for GPIO32 (SDAA)
GpioCtrlRegs.GPBPUD.bit.GPIO33 = 0;    // Enable pull-up for GPIO33 (SCLA)
/* Set qualification for selected pins to asynch only */
GpioCtrlRegs.GPBQSEL1.bit.GPIO32 = 3;  // Asynch input GPIO32 (SDAA)
GpioCtrlRegs.GPBQSEL1.bit.GPIO33 = 3;  // Asynch input GPIO33 (SCLA)
/* Configure I2C pins using GPIO regs*/
GpioCtrlRegs.GPBMUX1.bit.GPIO32 = 1;   // Configure GPIO32 for SDAA operation
GpioCtrlRegs.GPBMUX1.bit.GPIO33 = 1;   // Configure GPIO33 for SCLA operation
void InitI2C()
{
   // Initialize I2C

	I2caRegs.I2CMDR.bit.IRS = 0;
	I2caRegs.I2CPSC.all = 8;		// Prescaler - need 7-12 Mhz on module clk
	I2caRegs.I2CCLKL = 10;			// NOTE: must be non zero
	I2caRegs.I2CCLKH = 5;			// NOTE: must be non zero
	I2caRegs.I2CIER.all = 0x24;		// Enable SCD & ARDY interrupts

	I2caRegs.I2CMDR.all = 0x0020;	// Take I2C out of reset
					// Stop I2C when suspended

	I2caRegs.I2CFFTX.all = 0x6000;	// Enable FIFO mode and TXFIFO
	I2caRegs.I2CFFRX.all = 0x2040;	// Enable RXFIFO, clear RXFFINT,

	return;
}
long GetTemperature(void)
{
	long Temperature;
	long TempUpperByte;
	long TempLowerByte;

	I2caRegs.I2CMDR.bit.IRS = 1;                // reset I2C

	// Make sure I2C is not busy and has stopped
	while (I2caRegs.I2CSTR.bit.BB == 1);        // busy loop
	I2caRegs.I2CSTR.bit.SCD = 1;                // Clear the SCD bit (stop condition bit)
	while(I2caRegs.I2CMDR.bit.STP == 1);        // stop bit loop

	//I2caRegs.I2CMDR.all = 0x6620;                 // start, stop, no rm, reset i2c  01101110 00100000
	I2caRegs.I2CMDR.bit.NACKMOD = 0;            // NACK mode bit
	I2caRegs.I2CMDR.bit.FREE = 1;               // Run free I2C when suspended
	I2caRegs.I2CMDR.bit.STT = 1;                // START condition bit
	I2caRegs.I2CMDR.bit.STP = 0;                // STOP condition bit
	I2caRegs.I2CMDR.bit.MST = 1;                // Master mode
	I2caRegs.I2CMDR.bit.TRX = 1;                // Transmitter mode
	I2caRegs.I2CMDR.bit.XA = 0;                 // 7-bit addressing mode
	I2caRegs.I2CMDR.bit.RM = 0;                 // Nonrepeat mode
	I2caRegs.I2CMDR.bit.DLB = 0;                // Digital loopback mode is disabled
	I2caRegs.I2CMDR.bit.IRS = 1;                // The I2C module is enabled
	I2caRegs.I2CMDR.bit.STB = 0;                // The I2C module is not in the START byte mode
	I2caRegs.I2CMDR.bit.FDF = 1;                // Free data format mode is disabled
	I2caRegs.I2CMDR.bit.BC = 0;                 // 8 bits per data byte

	while(I2caRegs.I2CSTR.bit.XRDY == 0);       // Do nothing till bus is free
	I2caRegs.I2CMDR.bit.STT = 1;                // START condition bit
	I2caRegs.I2CDXR = 0x32;
	while(I2caRegs.I2CSTR.bit.NACK == 1);
	I2caRegs.I2CDXR = 0x05;                      // register address of the sensor (1 byte)
	while(I2caRegs.I2CSTR.bit.NACK == 1);
	I2caRegs.I2CMDR.bit.STT = 1;                // START condition bit
	I2caRegs.I2CDXR = 0x33;
	while(I2caRegs.I2CSTR.bit.NACK == 1);
	TempUpperByte = I2caRegs.I2CDRR;
	while(I2caRegs.I2CSTR.bit.NACK == 1);
	I2caRegs.I2CMDR.bit.NACKMOD == 1;
	TempLowerByte = I2caRegs.I2CDRR;
	while(I2caRegs.I2CSTR.bit.NACK == 0);
	I2caRegs.I2CMDR.bit.STP = 1;

	Temperature = (TempUpperByte * 16 + TempLowerByte / 16);

	return Temperature;
}

UCD3138A: ADC12

$
0
0

Part Number:UCD3138A

Hi TI,

I have 2 question about adc mode of UCD3138A

1. In datesheet " NOTE: Even though the ADC12 sampling frequency is preset to 267 Ksps as default by setting the

ADC_SAMPLINGSEL to zero, in order to achieve the best measurement results it is
recommended to set the sampling rate to 267 Ksps by setting the ADC_SAMPLINGSEL to 6"

so do I have to configure this  ADC_SAMPLINGSEL ? What will happen if I  don't  configure, because in default it is 267 Ksps?

2. The ADC12 control provides capability for averaging of ADC results,  Set 100us to trigger adc mode in the code. If I choose 8-sample moving average, so 800us later I can get the averaging of ADC value at the beginning?

If the ADC conversion is complete, you check .ADC_INT? what is the different between ADC_INT_RAW and ADC_INT? 

If I used ADC averaging, must I use .ADC_INT ?

Best Wishes

ADS1263: Random offsets of readings

$
0
0

Part Number:ADS1263

Hi,

 

We have a product using the ADS1263.

 

This system measures temperature to 0.005c accuracy. We have had units in the field for a while but in the last month all the new units are having spikes / offsets.

 

We have spent a couple weeks on this both in hardware and firmware and we are now looking for some new ideas as to what could cause this. Can a TI expert on the ADS1263 take a look at the plot and schematic and give us some new ideas what could cause our A/D reading to be offset randomly?

 

It always happened on the sensor connected to P301, but every now and then has also shown up on P300.

 

Thanks,

 

Aaron

(Please visit the site to view this file)


RTOS/SIMPLELINK-CC2640R2-SDK: Measuring battery voltage

$
0
0

Part Number:SIMPLELINK-CC2640R2-SDK

Tool/software:TI-RTOS

Hi,

I need to measure battery voltage precisely for a test purpose. Because of that i could not use battery monitor. It has 50mv resolution. 
I think, i need to use ADC.

How can i direct to Vcc pin to ADC pin ? Is it possible ?

What are the alternatives ?

Thanks for your attention. 

Have a nice day

RTOS/CC2640R2F: Build error while compiling examples from CC2640R2 SDK ?

$
0
0

Part Number:CC2640R2F

Tool/software:TI-RTOS

Hi,

I'm getting build error while compiling the examples(SimplePeripheral) provided on cc2640r2 examples.

The package used is simplelink_cc2640r2_sdk_1_50_00_58 and the same error occurs in the example package , simplelink_cc2640r2_sdk_ble_example_pack_1_50_00_62 .

The error is as shown below. I have found similar questions in forum but there was no proper answer.  Please let me know what is the compiler version that must be used, I'm using import project option in CCS.  

Linux/66AK2G12: U-Boot NAND Boot

$
0
0

Part Number:66AK2G12

Tool/software: Linux

Hello,

I have a custom 66AK2G12 board where we are attempting to use the GPMC as the boot master for U-Boot and Linux.  Unfortunately, after we designed the board, we found this post https://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/615259?tisearch=e2e-sitesearch&keymatch=k2g%20u-boot%20nand%20boot that says that NAND boot is not supported.  The post mentioned a few points on which I would like some more information.

In the linked post, Rex Chang mentions that a U-Boot driver modification regarding ECC for the NAND may be the key to using the NAND device for boot, since the bootrom ECC scheme is different from the U-Boot driver.  Looking at the Davinci driver ECC scheme vs the OMAP ECC Scheme, it looks like this may be a straightforward fix.  Is there anyone who has attempted this and has any information they can share regarding how involved this may be?

Rex also mentioned an instability issue with the NAND in Linux.  Can anyone provide some more information regarding this?  We were hoping to use the NAND for the filesystem, but this seems to imply that the GMPC is useless in NAND configuration for the entire Linux SDK using this processor.  If we cannot boot from NAND or use it reliably from Linux, what alternatives should we consider?

Thank you,

Jeff

DAC38RF84: Serdes PLL calculation

$
0
0

Part Number:DAC38RF84

Hi,

looking at the GUI interface it seems that SERDES_REF=DAC_PLL output / (Prescalar*Divider).

In the datasheet i do not see the Prescaler which has a fixed value of 4.

Can you explain please?

Best Regards

ads131e06: tBG charge time when using external reference

$
0
0

Part Number:ads131e06

I'm trying to figure out what worst case tBG is to resolve a timing issue where tBG > tPOR, as described on page 61 of datasheet. From figure 28 on page 26 of datasheet, tBG is related to R1*22uF.

Which value is appropriate for R1 to use to calculate tBG when we're using an external voltage reference(REF5050)?

Is there any advantage to using 5RC as tBG? It seems that only 2.5 time constants is needed for the bandgap to reach 1.1V. I could see longer time constant being good for dealing with tolerance on the 22uF capacitor.

UCC28730-Q1: Rs1 setting at wide input voltage range

$
0
0

Part Number:UCC28730-Q1

Hi,

We got a question from the customer about UCC28730-Q1.
Could you help us?

[Question]
They are considering using the IC at DC30V to DC600V input voltage range.


So they are concerned about the setting of Rs1. They assume that Ivsl has to exceed 225uA at all over input voltage range. However, at high input voltage condition, Ivsl exceeds the maximum absolute rating due to the auxiliary winding voltage becomes higher. Are there any solution for this problem?

Best Regards,
tateo

CCS/EK-TM4C123GXL: Can't compile and debug any example for TM4C123GXL in CCS7

$
0
0

Part Number:EK-TM4C123GXL

Tool/software: Code Composer Studio

Hello ,

I use Code Composer Studion 7.4.0.00015 .

I bought evaluation board EK-TM4C123GXL to do the trainings labs about TI-RTOS here:

https://training.ti.com/ti-rtos-workshop-series

(I hope that are the good training video because they are quite old).

Well,  I used Ressource Explorer in CCS to install TI-RTOS Tiva-C and import  "qs-rgb" project as it is suggested in the Let's get Stared "out of box demo instruction" .

The problem is that the target_config.ccxml has an error:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configurations XML_version="1.2" id="configurations_0">
    <configuration XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0">
    <instance XML_version="1.2" desc="Stellaris In-Circuit Debug Interface_0" href="connections/Stellaris_ICDI_Connection.xml" id="Stellaris In-Circuit Debug Interface_0" xml="Stellaris_ICDI_Connection.xml" xmlpath="connections"/>
    <connection XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0">
      <instance XML_version="1.2" href="drivers/stellaris_cs_dap.xml" id="drivers" xml="stellaris_cs_dap.xml" xmlpath="drivers"/>
      <instance XML_version="1.2" href="drivers/stellaris_cortex_m4.xml" id="drivers" xml="stellaris_cortex_m4.xml" xmlpath="drivers"/>
      <platform XML_version="1.2" id="platform_0">
        <instance XML_version="1.2" desc="Stellaris TM4C123GH6PM_0" href="devices/tm4c123gh6pm.xml" id="Stellaris TM4C123GH6PM_0" xml="tm4c123gh6pm.xml" xmlpath="devices"/>
      </platform>
    </connection>
  </configuration>
</configurations>

and in qs-rgb properties , in General I've got this message:

"Device 'Cortex M.TM4C123GH6PM' is not reco... closest match from the supported devices."

I tried to change Variant to generic CortexM4, but it finished with an error when compiling.

Maybe I forgot to install something else?

if someone has a clue or know how I should configure the project and ccxml file?

Regards.


DAC38RF84: number of frames in a multi frames

$
0
0

Part Number:DAC38RF84

Hi,

I am looking at the SYSREF frequency and not sure what to use for K which is the number of frames in a multi frames.

My config is config: L-M-F-S-Hd 1 TX = 42111

Can you please provide some information regarding this parameter?

Thanks

Fabien

TS3A5223: If no power for TAS5223

$
0
0

Part Number:TS3A5223

Hi Expert,

If TAS5223 Vcc=0, SELx=0, does NC1=COM1 and NC2=COM2? Or other analog switch can support it. (headphone signal.) Thanks!

TMS320F28069: in search of signed usb_dev_bulk driver for Windows 10

$
0
0

Part Number:TMS320F28069

Hi,

I’m trying to install the usb_dev_bulk driver on my Windows 10 machine, so that I can do USB bulk transfer from/to our Piccolo device. I downloaded the latest C2000Ware (1_00_03_00) and the driver is still not signed. Do you have a signed driver readily available?

It’s very urgent. Your help would be greatly appreciated.

I saw the thread:  http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/619710

Unfortunately the secure boot installed on our Windows 10 PCs does not allow us to disable signature enforcement. That’s why I have to have a signed driver.

Best Regards, 

Blake

CC3220MOD: Does CC3200MODASF support down load to Flash w/o the UniFlash tool?

$
0
0

Part Number:CC3220MOD

Does CC3200MODASF support down load to Flash w/o the UniFlash tool?

Does the CC3220MODASF example firmware include the Serial WiFi example?

SN7534051: Input signal termination

$
0
0

Part Number:SN7534051

I have two systems that need access to the same RS422 signal source. So, I wish to split the RS422 signal (running at a maximum of 5 MHz) into two (2) branches, and feed each branch to a different system. I have selected the SN7534051 chip. I am looking for a simple circuit diagram that shows if and how the inputs to the SN7534051 should be terminated. Also, I need to know if the outputs need any form signal management, or can they just be connected directly to the destination device?

Thanks,

Mo

Viewing all 262198 articles
Browse latest View live


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