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

CCS/TM4C123GH6PM: MPU6050Callback state machine - IDLE state

$
0
0

Part Number:TM4C123GH6PM

Tool/software: Code Composer Studio

Hello, 

I'm trying to analyze the MPU6050Callback code in mpu6050.c from sensorlib.

The state machine in the code is neatly written with a "case" statement describing what happens in every state.

Only one state isn't described with a "case" statement: MPU6050_STATE_IDLE

Why is the idle case an exception ?


CCS/CC2640R2F: CCS/CC2640R2F:

$
0
0

Part Number:CC2640R2F

Tool/software: Code Composer Studio

Hello,

I have done a XDS110 conection test with the following results:

-------------------------------------------------------------------------------------------------------------------------------------------

[Start]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity

[Result]


-----[Print the board config pathname(s)]------------------------------------

C:\Users\croat\AppData\Local\TEXASI~1\CCS\
ti\0\0\BrdDat\testBoard.dat

-----[Print the reset-command software log-file]-----------------------------

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioxds110.dll'.
The library build date was 'May 30 2018'.
The library build time was '23:03:35'.
The library package version is '8.0.27.9'.
The library component version is '35.35.0.0'.
The controller does not use a programmable FPGA.
The controller has a version number of '5' (0x00000005).
The controller has an insertion length of '0' (0x00000000).
This utility will attempt to reset the controller.
This utility has successfully reset the controller.

-----[Print the reset-command hardware log-file]-----------------------------

The scan-path will be reset by toggling the JTAG TRST signal.
The controller is the XDS110 with USB interface.
The link from controller to target is direct (without cable).
The software is configured for XDS110 features.
The controller cannot monitor the value on the EMU[0] pin.
The controller cannot monitor the value on the EMU[1] pin.
The controller cannot control the timing on output pins.
The controller cannot control the timing on input pins.
The scan-path link-delay has been set to exactly '0' (0x0000).

-----[Perform the Integrity scan-test on the JTAG IR]------------------------

This test will use blocks of 64 32-bit words.
This test will be applied just once.

Do a test using 0xFFFFFFFF.
Scan tests: 1, skipped: 0, failed: 0
Do a test using 0x00000000.
Scan tests: 2, skipped: 0, failed: 0
Do a test using 0xFE03E0E2.
Scan tests: 3, skipped: 0, failed: 0
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 0
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 0
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 0
All of the values were scanned correctly.

The JTAG IR Integrity scan-test has succeeded.

-----[Perform the Integrity scan-test on the JTAG DR]------------------------

This test will use blocks of 64 32-bit words.
This test will be applied just once.

Do a test using 0xFFFFFFFF.
Scan tests: 1, skipped: 0, failed: 0
Do a test using 0x00000000.
Scan tests: 2, skipped: 0, failed: 0
Do a test using 0xFE03E0E2.
Scan tests: 3, skipped: 0, failed: 0
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 0
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 0
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 0
All of the values were scanned correctly.

The JTAG DR Integrity scan-test has succeeded.

[End]

-------------------------------------------------------------------------------------------------------

It does not seem to me to be all right.

Regards 

Alen

CCS/CC2640R2F: SaBLE-x-R2/CC2640R2F: preprocessor define

$
0
0

Part Number:CC2640R2F

Tool/software: Code Composer Studio

Hello,

I have ported my SaBLE-x-R2 development board and built it and debugged it. When I start the debugging sequence and the stop it, i find out that the program is using the CC2640R2_LAUNCHXL.c  board file, and not my SABLEXR2_DEV_BOARD.c . What could be the problem? The path in the main board.c file is well defined:

------------------------------------------------------------

#if defined(CC2640R2DK_CXS) || defined (CC2640R2DK_4XS) \
|| defined (CC2640R2DK_5XD) || defined (CC2640R2DK_7ID)
#include "./cc2640r2em/cc2640r2em_board.c"
#elif defined(CC2640R2_LAUNCHXL)
#include "./cc2640r2lp/cc2640r2lp_board.c"
#elif defined(CC2640R2_RC)
#include "./cc2640r2rc/cc2640r2rc_board.c"
#elif defined(CC26X2R1_LAUNCHXL)
#include "./cc2652r1lp/cc2642r1lp_board.c"
#elif defined(CC13X2R1_LAUNCHXL)
#include "./cc1352r1lp/cc1352r1lp_board.c"
#elif defined(SABLEXR2_DEV_BOARD)
#include "./sablexr2_module/sablexr2_module_board.c"
#else // unknown board
#error "***ERROR*** Invalid Board Specified! Please see board.h for options."
#endif

-------------------------------------------------------

Regards,

Alen

CC2530: At 2v, CC2530 factory resets

$
0
0

Part Number:CC2530

Hi,

Since there hasn't been a Z-Stack 3.0.2 release yet, I wanted to ask what working code I could add to resolve the below issue:

There is a bug where some items in NV memory are deleted and set to their default value if the device is booted or running at a voltage close to VDD_MIN_NV. This is because there was no check done to confirm that the NV Item needed to be initialized to the default value. A fix is being formulated to add an NV check during initialization to set the NV item to the default value only if it was actually initialized and did not exist previously.

Is there any code that would serve as a quick fix for this problem?

MSP430FR2111: Error message when programming with a43 file "Failed to load debugee:"

$
0
0

Part Number:MSP430FR2111

Hi,

I'm putting together instructions to the production on how to program the target devices, a target running a MSP430FR2111. When i program the target from source code it works fine, but when i try to program using the output file (.430) i get the error code "Failed to load debugee: C:\Users\user\ProductionFirmware\project.a43". 

My setup is FET debugger on IAR Embedded Workbench 7.12.1.

Do you know what fails? Is there a smarter way to program the devices?

Regards Klas

CCS/MSP430I2040: MSP430i2040 Embedded Metering EVM convert IAR example code to CCS

$
0
0

Part Number:MSP430I2040

Tool/software: Code Composer Studio

Hi TI Team,

The EVM ships IAR sample code only.

Please help to convert to CCS.

Regards,

Walter

CCS/MSP430F148: The Debug Interface to the device has been secured

$
0
0

Part Number:MSP430F148

Tool/software: Code Composer Studio

The prototypes were working quite well.  Stopped for a couiple of weeks to develop a PC program to test all the command to the unit.

When I went back to run both the CCS (Ver8) for the project and my PC program, I suddenly had the error "The Debug Interface to the device has been secured."  (Never had seen this before!!)  I can assure you I did not intentionally blow any fuses (I'm not even sure I know how without looking it up). Went to a second unit which had been working perfectly and had the same error trying to go do Debug. 

This is like hitting a brick wall at 30 mph face first!!!  I need help!!  What do I do???   BSLDEMO2.exe.  But I am not certain what to do with it!!

SO HELP PLEASE!!

regards bob scott

ADC32RF80: Resolution

$
0
0

Part Number:ADC32RF80

Hello,

I have a question about ADC32RF80.

[Q]

Is my understanding correct ?

<My understanding>

The resolution of the ADC core is 14 bits.

The resolution of the Digital Signal Processing Block (DDC and Decimation Filter) is 16bits.

The resolution of the output is 16bits.

Best Regards,

Hiroshi Katsunaga


PCI1510: Question about Operation of PCI1510

$
0
0

Part Number:PCI1510

Hi,

I'm familiar with ISA but new to PCI. So please forgive a dumb question. Is this correct. The software drivers provided with the peripheral when installed on the host,  on host boot up tell the host how many memory and / or I/O addresses the peripheral needs. The host assigns them to the PCI1510. Then when the peripheral software runs, the PCI1510 handles decoding these addresses. If I use the PC card option, then the "other side" of the PCI1510 is essentially an ISA buss with address latch. So if the drivers had requested 64 memory addresses, then on the PC card side, they come out as 00 to 63 (DEC) so then I can decode them to individual parts on the peripheral board with simple 74xx138 chips?

Is that how it works?

Marty 

BQ40Z60EVM-578: Eligible battery chemical list

TDC1000-Q1: LNA max. input signal level

$
0
0

Part Number:TDC1000-Q1

Hi all.

The following waveform is RX1.

It appears that datasheet is larger than the LNA input level.

what is the maximum value of an LNA input?

or is there any problem with the waveform values below?

and I would like to know why I have to set the mode in different configurations of Rx/Tx.

That is,why use mode 1, 2 and 3 separately?

Thanks.

CC2652R: When will new SIMPLELINK-ZIGBEE-SDK-PLUGIN release for CC26x2, CC13x2, and CC13x2P?

$
0
0

Part Number:CC2652R

I saw latest Z-Stack 3.0.2 has been released on last week and when will new SIMPLELINK-ZIGBEE-SDK-PLUGIN release for CC26x2, CC13x2, and CC13x2P?

Linux/AM5728: How to bring up the RTOS DSP program from the linux ARM?

$
0
0

Part Number:AM5728

Tool/software: Linux

1.My board is evmAM5728,the vision of the CCS is 7.4, the vision of SDK is 0403

2.Now I want to  bring up the RTOS DSP program from the linux ARM ,is there any example about it? Or some explain about it ?

CSD95492QVM: Rlset resistor equation, and high value inductors

$
0
0

Part Number:CSD95492QVM

Hi,

Similar to the question in: https://e2e.ti.com/support/power-management/f/196/t/663588 

1. I'm looking for the Rlset equation for CSD95492QVM, does it match the equation in the link above for CSD95490Q5MC?

2. Our design uses 330nH for a main power rail (278kOhm from above equation), and 4700nH for a lower current auxiliary rail (both using CSD95492QVM for part reuse). For the larger value inductor, the calculated Rlset is >700MOhm, I assume open circuit is the correct solution here?

Thanks for your help!

Regards,

Cam.

BQ24090: BQ24090 Charging current is small.

$
0
0

Part Number:BQ24090

hi Engineer:

My circuit diagram is shown in the figure above.

USB plug in to charge the battery.Testing 5V current is only 20mA.The battery is charging at a very slow rate.The current battery voltage is 3.8V.

ISET2 is connected to BATT through 10K resistor. The current is about 20mA.

Is this normal?Or is there any problem with my circuit?

Thanks!!!

 


CCS/TMS320F28335: cannot get into ISR by keeping pressing F5

$
0
0

Part Number:TMS320F28335

Tool/software: Code Composer Studio

Hi,

I have a ADCISR, triggered by ePWM counter = 0, then ADC sequence, and then ADC interrupt.

When I am debugging ADCISR, I find that if I put a break point within ADCISR by double clicking on the left of the code, it stops at the break point as expected. 

However, if I keep pressing F5 to execute the code line by line, after finishing the ADCISR, it never goes back to the ISR. The programme always runs within the following function in the main file.

while(1) SCH_runEvents();

void SCH_runEvents(void)
{
Uint16 schTime, elTime;
Uint16 i;
int (*eventFunc)(Uint64);
Uint16 elNewLastTime;

schTime = msecs;
elTime = schTime - lastSchTime;

eventFunc = NULL;
elNewLastTime = elTime; // assume only one event will need processing
for (i = 0; i < schLen; i++)
{
// find which event should be processed
if ((event[i].fireTime - lastSchTime) < elTime)
{
// find any starving events, defined as still waiting after one period
// if ( (schTime - event[i].fireTime) > event[i].period ) return (-((int)i+1));
// process the first event that has an elapased firetime
if (eventFunc == NULL)
{
event[i].fireTime += event[i].period;
eventFunc = event[i].func;
}
// find the new lastSchTime, the smaller of elTime, (event[i].fireTime - lastSchTime) for all i
if ((event[i].fireTime - lastSchTime) < elNewLastTime)
{
elNewLastTime = event[i].fireTime - lastSchTime;
}
}
}

// update lastSchTime
lastSchTime += elNewLastTime;

// call event handler function, should deal with the return value at some point
if (eventFunc != NULL) eventFunc(time);
}

Question 1:

In theory, if I keep pressing F5 for long enough time, when the next ADC interrupt comes, it should be able to get into the ADCISR. But it does not.

The strange thing is that if I click the green run button on the menu, the programmes runs into the ISR and stops at the break point.

Do I miss something, or F5 should not be used in this way?

Question 2:

The reason why I want to use F5 to step through the whole code is that I find that if I put a break point at the beginning at the ADCISR, the ePWM counter is already 900. According to my setting, ADC sequence is triggered by ePWM counter = 0, and the ADC sequence is start/stop one which only has 10 channels to sample. I do not understand why it takes so long to enter the ADCISR.

The clock frequency is 120MHz, and I set the ePWM clock the same as the high-frequency peripheral clock. How do I check why it is taking 900 cycles to enter the ADCISR?

Please help me.

Thank you in advance.

CC2640: What Does "Internal. Only To Be Used Through TI provided API" mean?

$
0
0

Part Number:CC2640

Hello,

I am currently working on a c program that will be able to initialize properties for the clocks on the TI CC2640 MCUs by using the PRCM registers. I am currently looking at the CC13x0 + CC26x0 reference manual. For some of a bit fields in the CTL0 Register for the PRCM it says "Internal. Only to be used through TI provided API." in the description. I was wondering what that means. 

Thanks.

AM5726: About slew rate setting of Pad Configuration Registers

$
0
0

Part Number:AM5726

Hi,

I have question about Slew Rate control for DDR3.

Q1: What is the SR control register prepared for the purpose?
What effect does this register have?

Q2: If it is set to Fastest (SR [2:0] = 0x0) on my customer board, the signal quality deteriorated and failed the DDR3 compliance test.
Although it is stated that the default setting (Fastest) is used for the data sheet, can we change this according to customer's use?

Q3: The SR[2:0] registers can be changed, why is not it guaranteed except the default setting?


Best Regards,
H.U

TMS320F28335: F28335 eZdsp™ and Simulink

$
0
0

Part Number:TMS320F28335

Hi,

I designed a SPWM model in simulink. Then i interfaced matlab with code composed studio 3.3. Then I downloaded the simulink model to f28335. The f28335 is controlling my inverter. This part is fine. Now I want to monitor the inverter output signal in simulink. How i can interface the inverter analog output signal to f28335? Then how can i monitor this anaolg signal in simulink. Please advise me.

WEBENCH® Tools/ADS1298: ADS1298 SPI set up using stm32f429-discovery board

$
0
0

Part Number:ADS1298

Tool/software: WEBENCH® Design Tools

Hello,

I am try to set up my ADS1298 via SPI through a STM32F429-Discovery board.  I am using the external clock and clksel tied ground. I wrote the code according to the chip operation sequence in Figure 93, but in the process opcode creation and data transmission were not confirmed through MOSI pin and MISO pin.

This SPI communication was confirmed using saleae logic pro 8.

The circuit configuration was done by connecting the ads1298-evm board to the stm32f429-discovery board, and I would like to ask for help to see why this problem occurs.


Also, if you let me know what things I need to check, I'll check it and pass on the status.


I would be grateful if anybody could give me any answers that would be helpful.

Thanks,

Hojun

Viewing all 262198 articles
Browse latest View live


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