Quantcast
Channel: Tools
Viewing all 95862 articles
Browse latest View live

Forum Post: CCS/OMAP-L138: Unable to configure 'GPIO as an Input' for specific pins.

$
0
0
Part Number: OMAP-L138 Tool/software: Code Composer Studio hello, I referred the code for configuring GPIO as an Input using Interrupt. https://e2e.ti.com/support/processors/f/791/t/384704 I am using OMAP-L138 DSP+ARM9 Development Kit, with Starterware, I can read status of SD card(pin 65(GP4[0]) as input.), User button 1 (pin 38GP2(5)as input.) User button 2 (pin 37GP2(4)as input.) but unable to read pin61GP3[12] PIN62GP3[13] pin44GP2[11] AND few more. Could plz help to resolve? My code is: /** * \file gpioCardDetect.c * * \brief This is a sample application file demonstrating the use of * a GPIO pin to generate an interrupt whenever an MMC/SD card * is inserted or ejected from the Evaluation Module(EVM). */ /* * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the * distribution. * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "interrupt.h" //#include "uartStdio.h" #include "gpio.h" #include "psc.h" #include "soc_OMAPL138.h" #include "evmOMAPL138.h" #include "gpio_1.h" #include /** * \file Titus : Modified from gpioCardDetect.c * * \brief This is a sample application file demonstrating the use of * a GPIO pin to generate an interrupt whenever a Switch S2 is pressed * or released from the LCDK board. */ /* * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the * distribution. * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /****************************************************************************/ /* LOCAL FUNCTION PROTOTYPES */ /****************************************************************************/ static void Delay(volatile unsigned int delay); static void ConfigureIntGPIO(void); static void CheckCardStatus(void); static void SetupInt(void); static void GPIOIsr(void); /****************************************************************************/ /* GLOBAL VARIABLES */ /****************************************************************************/ volatile unsigned char flag = 0; /****************************************************************************/ /* LOCAL FUNCTION DEFINITIONS */ /****************************************************************************/ int main(void) { /* The Local PSC number for GPIO is 3. GPIO belongs to PSC1 module.*/ PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE); /* Initializes the UART instance.*/ //UARTStdioInit(); /* Pin Multiplexing of pin 4 of GPIO Bank 2.*/ GPIOBank2Pin11PinMuxSetup(); /* Sets the pin 37(GP2[4]) as input.*/ GPIODirModeSet(SOC_GPIO_0_REGS, 44, GPIO_DIR_INPUT); /* ** Configure rising edge and falling edge triggers on pin 37 to generate ** an interrupt */ //GPIOIntTypeSet(SOC_GPIO_0_REGS, 37, GPIO_INT_TYPE_FALLEDGE); //Switch release interrupt //GPIOIntTypeSet(SOC_GPIO_0_REGS, 37, GPIO_INT_TYPE_RISEDGE); //Switch press interrupt GPIOIntTypeSet(SOC_GPIO_0_REGS, 44, GPIO_INT_TYPE_BOTHEDGE); //Switch release & press interrupt /* Enable interrupts for Bank 2.*/ GPIOBankIntEnable(SOC_GPIO_0_REGS, 2); /* Configuring the AINTC to handle interrupts.*/ SetupInt(); /* Configure GPIO interrupts */ ConfigureIntGPIO(); printf("Configured.....Done!\n"); while(1) { if(flag == 1) { CheckCardStatus(); } } } /* ** \brief This function invokes necessary functions to configure the DSP ** processor and DSP Interrupt Controller(DINTC) to receive and ** handle interrupts. */ static void SetupInt(void) { // Setup DSP interrupt controller // Initialize the DSP Interrupt Controller IntDSPINTCInit(); // Enable DSP Interrupts Globally IntGlobalEnable(); } /* ** \brief This function configures the AINTC to receive the GPIO interrupt. */ static void ConfigureIntGPIO(void) { // Configure GPIO interrupts for DSP // Register the ISR in the Interrupt Vector Table IntRegister(C674X_MASK_INT4, GPIOIsr); // Map the system interrupt to the DSP maskable interrupt IntEventMap(C674X_MASK_INT4, SYS_INT_GPIO_B2INT); // Enable DSP maskable interrupt IntEnable(C674X_MASK_INT4); } /* ** \brief Interrupt Service Routine to be executed on GPIO interrupts. ** This disables the bank interrupts, clears the system interrupt ** status and pin interrupt status. This also sets flag as 1. */ static void GPIOIsr(void) { /* Disable the interrupts for pins of bank 2 in GPIO.*/ GPIOBankIntDisable(SOC_GPIO_0_REGS, 2); // Clear the system interrupt status in the DSPINTC IntEventClear(SYS_INT_GPIO_B2INT); /* Clears the Interrupt Status of GP2[4] in GPIO.*/ GPIOPinIntClear(SOC_GPIO_0_REGS, 44); flag = 1; } /* ** \brief This function checks the status of the Switch S2 ** in the device and prints related statements on the serial ** communication console of the external device. ** */ static void CheckCardStatus(void) { Delay(0x1FFF); // Clear the system interrupt status in the DSPINTC IntEventClear(SYS_INT_GPIO_B2INT); /* Clears the Interrupt Status of GP2[4] in GPIO.*/ GPIOPinIntClear(SOC_GPIO_0_REGS, 44); /* ** 'GPIOPinRead' here returns the value on the GP2[4]. ** If value returned is 1, it implies the Switch S2 is released. ** If value returned is 0, it implies the Switch S2 is pressed. */ if (GPIOPinRead(SOC_GPIO_0_REGS, 44)) { printf("Switch S2 is released.\n"); } else { printf("Switch S2 is pressed.\n"); } flag = 0; /* Enable interrupts for pins of bank 2.*/ GPIOBankIntEnable(SOC_GPIO_0_REGS, 2); } /* ** \brief This function can be called to generate a delay. */ static void Delay(volatile unsigned int delay) { while(delay--); } /*****************************END OF FILE************************************/ Regards, Kshitika.

Forum Post: CCS/TMDXLCDK6748: TMDXLCDK6748

$
0
0
Part Number: TMDXLCDK6748 Tool/software: Code Composer Studio Dear TI, I recently started working on tmdxlcdk6748, using ccs. I want to pass a summed signal of two sine waves and eliminate one of it using fir filter. I produced the sample values of the summed signal in matlab. I have written the code but Im unable to get an output. I added the right files and included the right paths too. The build is fine, so is the debug session. Once I get the output in console, it is wrong when I compare it to the answer in matlab. My frequency spectrums of, the matlab and ccs ouput are different. Here is the code and the console. CODE: #include "L138_LCDK_aic3106_init.h" #define N 48 float h[N] = {0.0010, -0.0149, -0.0074, -0.0061, -0.0033, 0.0010, 0.0061, 0.0109, 0.0138, 0.0136, 0.0096, 0.0019, -0.0083, -0.0189, -0.0272, -0.0303, -0.0258, -0.0123, 0.0099, 0.0390, 0.0719, 0.1043, 0.1316, 0.1498, 0.1562, 0.1498, 0.1316, 0.1043, 0.0719, 0.0390, 0.0099, -0.0123, -0.0258, -0.0303, -0.0272, -0.0189, -0.0083, 0.0019, 0.0096, 0.0136, 0.0138, 0.0109, 0.0061, 0.0010, -0.0033, -0.0061, -0.0074, -0.0149};// FILTER CO-EFFICIENTS int16_t sine_table[N] ={0, 1.0898, 1.7071, 1.6310, 1.0000, 0.2168, -0.2929, -0.3244, -0.0000, 0.3244, 0.2929, -0.2168, -1.0000, -1.6310, -1.7071, -1.0898, -0.0000, 1.0898, 1.7071, 1.6310, 1.0000, 0.2168, -0.2929, -0.3244, -0.0000, 0.3244, 0.2929, -0.2168, -1.0000, -1.6310, -1.7071, -1.0898, -0.0000, 1.0898, 1.7071, 1.6310, 1.0000, 0.2168, -0.2929, -0.3244, -0.0000, 0.3244, 0.2929, -0.2168, -1.000, -1.6310, -1.7071, -1.0898}; int sine_ptr = 0; // pointer into lookup table float x[N]; // filter delay line float y[N]; // filter delay line interrupt void interrupt4(void) // interrupt service routine { int i; float yn = 0.0; x[i] = sine_table[sine_ptr]; sine_ptr = (sine_ptr+1)%N; for (i=0 ; i 0 ; i--) // shift delay line x[i] = x[i-1]; output_left_sample((uint16_t)(yn)); return; } int main(void) //interrupt void interrupt4(void) interrupt service routine { L138_initialise_intr(FS_16000_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,LCDK_LINE_INPUT); while(1); } CONSOLE: [C674X_0] yn=-0.000000 yn=-0.000000 yn=-0.000000 yn=-0.000000 yn=-0.000000 yn=-0.000000 yn=-0.000000 yn=3681929415830794572830.200195 yn=3681929415830794572830.200195 yn=3681929415830794572830.200195 yn=-363324968346958816051483154.296875 yn=-363324968346958816051483154.296875 yn=-363324488731613039970397949.218750 yn=-363324488731613039970397949.218750 yn=-480375831387631058692932128.906250 yn=-480373728458806812763214111.328125 yn=-480370740086266696453094482.421875 yn=-480370740086266696453094482.421875 yn=-478134810237092375755310058.593750 yn=-478134810237092375755310058.593750 yn=-478134810237092375755310058.593750 yn=-478134810237092375755310058.593750 yn=-478134810237092375755310058.593750 yn=-478134810237092375755310058.593750 yn=-478134810237092375755310058.593750 yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan yn=Nan This is my matlab output : y = Columns 1 through 9 0 0.0011 -0.0145 -0.0319 -0.0426 -0.0408 -0.0254 -0.0007 0.0263 Columns 10 through 18 0.0484 0.0609 0.0622 0.0528 0.0333 0.0040 -0.0344 -0.0782 -0.1183 Columns 19 through 27 -0.1402 -0.1270 -0.0641 0.0545 0.2230 0.4228 0.6261 0.8016 0.9207 Columns 28 through 36 0.9617 0.9122 0.7698 0.5427 0.2501 -0.0514 -0.3608 -0.6389 -0.8389 Columns 37 through 45 -0.9182 -0.8522 -0.6448 -0.3304 0.0343 0.3853 0.6670 0.8418 0.8936 Columns 46 through 48 0.8229 0.6416 0.3695 Any help will be highly appreciated. Thank you, Ria.

Forum Post: CCS/TMDXLCDK6748: TMDXLCDK6748

$
0
0
Part Number: TMDXLCDK6748 Tool/software: Code Composer Studio I want to execute a linear convolution program in ccs. There is not error in build. But when I debug, I get the following result. (I will be putting down the code along with the console too as I new to this course) CODE : #include #define LENGTH1 6//length of input samples sequence #define LENGTH2 4//length of impulse response coefficients int x[2*LENGTH1-1]={1,2,3,4,5,6,0,0,0,0,0};//input signal samples int h[2*LENGTH1-1]={1,2,3,4,0,0,0,0,0,0,0};//impulse response coefficients int y[LENGTH1+LENGTH2-1]; void main() { int i=0,j; for(i=0;i<(LENGTH1+LENGTH2-1);i++) { y[i]=0; for(j=0;j<=i;j++) y[i]+=x[j]*h[i-j]; } for(i=0;i<(LENGTH1+LENGTH2-1);i++) printf("%d\n",y[i]); } CONSOLE: C674X_0: Output: Target Connected. C674X_0: Output: --------------------------------------------- C674X_0: Output: Memory Map Cleared. C674X_0: Output: --------------------------------------------- C674X_0: Output: Memory Map Setup Complete. C674X_0: Output: --------------------------------------------- C674X_0: Output: PSC Enable Complete. C674X_0: Output: --------------------------------------------- C674X_0: Output: PLL0 init done for Core:300MHz, EMIFA:25MHz C674X_0: Output: DDR initialization is in progress.... C674X_0: Output: PLL1 init done for DDR:150MHz C674X_0: Output: Using DDR2 settings C674X_0: Output: DDR2 init for 150 MHz is done C674X_0: Output: --------------------------------------------- C674X_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map. C674X_0: Trouble Writing Register PC: (Error -1176 @ 0xD7C0) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 7.0.100.0)

Forum Post: CCS/CC2640R2F: How to set output hex file path or directory for all compiled and linked files in CCS9

$
0
0
Part Number: CC2640R2F Tool/software: Code Composer Studio Hello, I'm using CCS v9.0.0.00018 and having trouble to getting the output files(.hex .out, .map) into customized directory(user defined path). I've been able to get some compiled files (.OUT, .HEX, .MAP, .TXT, and OBJ) into the build directory(workspace). I want to change the path to generate the output directory files. it is like in IAR (options->General Options->Output) similarly needed in CCS. Is there any options like that in CCS? Thank you! Best regards, Harish.

Forum Post: CCS/CC2538-SW: CC2538

$
0
0
Part Number: CC2538-SW Tool/software: Code Composer Studio I am new to CC2538 . I downloaded the CC2538 Foundation Firmware to access the driverlib example codes but i didnt find the example files for CCS ..there are only IAR files available .. Someone please suggest the reason with solution..??

Forum Post: Compiler/TMS320F28075: Defined bool type in one file, undefined in another file

$
0
0
Part Number: TMS320F28075 Tool/software: TI C/C++ Compiler Hello, We have a problem with includes: We have HeaderFile1 that only includes and and uses “bool” type. Everything compile. We add in the same folder a new HeaderFile2 that also includes and . This header file uses “bool” type too, but it doesn’t compile (#20 identifier "bool" is undefined). Besides, CCS recognize “bool” definition in this HeaderFile2, and I can go to its definition (F3). This definition is in stdbool.h, same place where bool definition is in HeaderFile1. I can’t solve it and I can’t understand it. Pleae, can you help me? I am using CCSv8 and compiler version TI v18.1.2.LTS. Thank you very much. Best regards, Paloma

Forum Post: CCS/LAUNCHXL-F28377S: Application code

$
0
0
Part Number: LAUNCHXL-F28377S Tool/software: Code Composer Studio TI CCS support, I'm going to compile a source code and two header code from What is the better solution to compile those codes in CCS? Best regards, Jingtai

Forum Post: CCS: Energy Trace delay

$
0
0
Tool/software: Code Composer Studio Hi, Is there a way to delay the beginning of the measurements for the EnergyTrace? I would like to start monitoring after 1 second of the circuit running (to skip the initialisation consumption of my project).

Forum Post: CCS/LAUNCHXL-F280049C: Configuring frequency on desired value

$
0
0
Part Number: LAUNCHXL-F280049C Tool/software: Code Composer Studio Hi, I'm practising on example code buffdac_ex1_enable.c . I figured out how to change the offset and amplitude but I'm stuck at configuring the frequency. I can provide what I've done on request. Hope you can help me out. Regards, Anıl

Forum Post: CCS/MSP-EXP430F5529LP: Problems reading RX UART data by interrupt

$
0
0
Part Number: MSP-EXP430F5529LP Tool/software: Code Composer Studio Hello, I am working in a project in an enterprise and I have the TI launchPad Kit with MSP430 MCU and an analog evaluation module - BOOSTXL-PGA460. I communicate with the PGA460 with a program made in code compose studio. To develop a program fastly I used a program in Software MSP430ware in the driver library and adapt it to my case. The microcontroller in use is the MSP430F5529. Here is the code I used for my program: //****************************************************************************** //! This example shows how to configure the UART module as the loopback to //! verify that received data is sent data. //! //! MSP430F5438A //! ----------------- //! RST -| P3.4/UCA0TXD|----| //! | | | //! | | | //! | P3.5/UCA0RXD|----| //! | | //! //! //! This example uses the following peripherals and I/O signals. You must //! review these and change as needed for your own board: //! - UART peripheral //! - GPIO Port peripheral (for UART pins) //! - UCA0TXD //! - UCA0RXD //! //! This example uses the following interrupt handlers. To use this example //! in your own application you must add these interrupt handlers to your //! vector table. //! - USCI_A0_VECTOR. //****************************************************************************** #include "driverlib.h" //***************************************************************************** // //Select Baud rate // //***************************************************************************** #define BAUD_RATE 9600 //JS-- //#define BAUD_RATE 2400 //JS++ // nota: se eu alterar esta variável // o débito binário observado no osciloscópio é sempre 9600 bps - para já vou deixar como está //***************************************************************************** // //Initialize received data // //***************************************************************************** uint8_t receivedData = 0x00; //***************************************************************************** // //Initialize trasnmit data // //***************************************************************************** uint8_t transmitData = 0x00; uint8_t check = 0; uint8_t i1 = 0 ; //JS++ uint8_t i2 = 0 ; //JS++ uint8_t i3 = 0 ; //JS++ void main (void) { //Stop WDT WDT_A_hold(WDT_A_BASE); GPIO_setAsOutputPin (GPIO_PORT_P2, GPIO_PIN2); //\ PD como saída GPIO_setAsOutputPin (GPIO_PORT_P7, GPIO_PIN4); //porto SEL como saída GPIO_setOutputLowOnPin (GPIO_PORT_P2, GPIO_PIN2 ); //coloca pino a zero GPIO_setOutputLowOnPin (GPIO_PORT_P7, GPIO_PIN4 ); //coloca pino a zero // Fim JS++ //JS-- GPIO_setAsPeripheralModuleFunctionInputPin( GPIO_PORT_P3, GPIO_PIN3 + GPIO_PIN4 ); //Fim JS++ //Fim JS++ // Pull-up resistor in P3.4 //JS++ GPIO_setAsInputPinWithPullUpResistor(GPIO_PORT_P3, GPIO_PIN4); //JS++ USCI_A_UART_initParam param = {0}; param.selectClockSource = USCI_A_UART_CLOCKSOURCE_SMCLK; param.clockPrescalar = 109; param.firstModReg = 0; param.secondModReg = 2; param.parity = USCI_A_UART_NO_PARITY; param.msborLsbFirst = USCI_A_UART_LSB_FIRST; // param.numberofStopBits = USCI_A_UART_ONE_STOP_BIT; //JS-- param.numberofStopBits = USCI_A_UART_TWO_STOP_BITS; //JS-- param.uartMode = USCI_A_UART_MODE; param.overSampling = USCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION; if (STATUS_FAIL == USCI_A_UART_init(USCI_A0_BASE, &param)){ return; } //Enable UART module for operation USCI_A_UART_enable(USCI_A0_BASE); //Enable Receive Interrupt USCI_A_UART_clearInterrupt(USCI_A0_BASE, USCI_A_UART_RECEIVE_INTERRUPT); USCI_A_UART_enableInterrupt(USCI_A0_BASE, USCI_A_UART_RECEIVE_INTERRUPT); __enable_interrupt(); //JS-- transmitData = 0x55; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x0A; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x68; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x42; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x4B; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); for(i2=0; i2<20;i2++) { // for(i3=0;i3<255;i3++) // { for (i1=0; i1<255;i1++); //JS++ // } } transmitData = 0x55; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x09; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x68; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x8E; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); USCI_A_UART_clearInterrupt(USCI_A0_BASE, USCI_A_UART_RECEIVE_INTERRUPT_FLAG); while (1) { transmitData = 0x55; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x09; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x68; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); transmitData = 0x8E; // Load data onto buffer USCI_A_UART_transmitData(USCI_A0_BASE, transmitData); for(i2=0; i2<20;i2++) { // for(i3=0;i3<255;i3++) // { for (i1=0; i1<255;i1++); //JS++ // } } } } #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__) #pragma vector=USCI_A0_VECTOR __interrupt void USCI_A0_ISR(void) #elif defined(__GNUC__) void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void) #else #error Compiler not supported! #endif { i3=0; switch (__even_in_range(UCA0IV,4)){ //Vector 2 - RXIFG case 2: receivedData = USCI_A_UART_receiveData(USCI_A0_BASE); // if(!(receivedData == transmitData)) // Check value //JS-- // { //JS-- // while(1); //JS-- // } //JS-- check =1; break; default: break; } } // -------End of my program I put a breakpoint inside the __interrupt void USCI_A0_ISR(void) rotine (in the instruction i3=0), in debug mode, and the program never stops here. I send the signal that I see in RXD and TXD (on the PGA460) respectively: The last signal is the signal sent by the UART of the PGA to the MSP430, composed of 3 bytes that I never detect in my microcontroller. Why? Please Help me, Jose Simoes

Forum Post: RE: TINA/Spice/OPA375: Using TINA to simulate the influence of CMRR and PSRR of OPA735

$
0
0
Hi, None of your attachments/figures are visible. Kindly reattach and resend this else we are not able to understand the issue.

Forum Post: RE: CCS/MSP430FR5969: Why was MSP430Ware ‘products’ support in CCS dropped?

$
0
0
Thank you. I had used the standalone installer, and I wanted to post an update, but my post was in moderation queue, and couldn't even see it in my activity on my profile page. After installing MSPWare 3_30_00_18 it showed up in Products. So, it seems that it’s not a CSS version, but an MSPWare issue. In eclipse/CCS on the update URL ( http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430ware/update/latest/ ) 3.50.0.04 is the latest version, so I guessed that that might be the last version with CCS product support. After the site URL was added I was able to install this version as well from the repository inside CSS (Help - Install New Software...). Though only the MSP430Ware showed up as new version, the driverlib did not (MSP430Ware_3_50_00_04 folder has MSP430 DriverLib 2.80.00.01) But for me this seems to be more like a bug than dropped support to reduce download sizes, because the driver lib plugins are still there in all versions: MSP430Ware_3_50_00_04\driverlib\eclipse\plugins\com.ti.mcu.msp430.driverlib.product.ui_2.80.0.01 MSP430Ware_3_50_00_04\driverlib\eclipse\plugins\com.ti.mcu.msp430.driverlib.product_2.80.0.01 MSP430Ware_3_50_00_04\driverlib\eclipse\features\com.ti.mcu.msp430.driverlib.product.ui_2.80.0.01 MSP430Ware_3_50_00_04\driverlib\eclipse\features\com.ti.mcu.msp430.driverlib.product_2.80.0.01 msp430ware_3_80_03_07\driverlib\eclipse\plugins\com.ti.mcu.msp430.driverlib.product.ui_2.91.05.02 msp430ware_3_80_03_07\driverlib\eclipse\plugins\com.ti.mcu.msp430.driverlib.product.ui_2.91.5.02 msp430ware_3_80_03_07\driverlib\eclipse\plugins\com.ti.mcu.msp430.driverlib.product_2.91.5.02 msp430ware_3_80_03_07\driverlib\eclipse\features\com.ti.mcu.msp430.driverlib.product.ui_2.91.5.02 msp430ware_3_80_03_07\driverlib\eclipse\features\com.ti.mcu.msp430.driverlib.product_2.91.5.02 msp430ware_3_80_07_00\driverlib\eclipse\plugins\com.ti.mcu.msp430.driverlib.product.ui_2.91.11.01 msp430ware_3_80_07_00\driverlib\eclipse\plugins\com.ti.mcu.msp430.driverlib.product_2.91.11.01 msp430ware_3_80_07_00\driverlib\eclipse\features\com.ti.mcu.msp430.driverlib.product.ui_2.91.11.01 msp430ware_3_80_07_00\driverlib\eclipse\features\com.ti.mcu.msp430.driverlib.product_2.91.11.01 What is missing is the eclipse folder (MSP430Ware_3_80_07_00\eclipse) which is 8725 bytes uncompressed, the products folder (MSP430Ware_3_80_07_00\products) with its huge 153 bytes. So, to my understanding, removing these features saved less than 9 kB total… but still kept megabytes of unused plugins… not just unused, but updated new versions of plugins (meaning engineering effort, time)… Nice! ...but maybe I’m just missing something… (The MSP430Ware_3_50_00_04 actually has the eclipse folder only the 153 byte products\manifest.xml file is missing.) After investigating further, I installed the standalone MSP430Ware_3_80_07_00_setup.exe, and it does still support these plugins! And the standalone installed version is around 500 MB smaller than the one Resource explorer installed. (The Resource explorer version has files like msp430ware_3_80_07_00\apps\MSP-EXP432P401R_Software_Examples_linux.tar.gz Maybe it couldn’t detect that I was running windows, or just thought that I still needed the Mac and Linux examples... But it sure saved at least 9 kB by removing these features and not having the manifests for the plugins… and wasted hours of my time.) I guess my advice is that (if you want this feature) don’t use resource explorer to install MSP430Ware, instead use the standalone installer! Or just save this to MSP430Ware_*\products\manifest.xml Now I have all my driver lib versions:

Forum Post: Compiler/TMS320C6713B: c67xmathlib compile redefine

$
0
0
Part Number: TMS320C6713B Tool/software: TI C/C++ Compiler I use c67xmathlib in my project to complie ,but it display _actandp redefine in c67xmathlib actan2dp and c67xmathlib actandp,please tell me why???

Forum Post: RE: CCS/CODECOMPOSER: Help setting Project Setting to include the CSL directory

$
0
0
Which CCS, SDK, compiler, etc. versions? Please, post a full console log.

Forum Post: RE: CCS/LAUNCHXL-F28377S: Application code

$
0
0
Jingtai, In general you add .c files to your project and then for .h files you setup the search path in your project options so that the compiler can find the header files. The location in the project options to specify the search path is here (if you are using a C2000 device it will say C2000 Compiler instead of MSP430 Compiler): Regards, John

Forum Post: RE: CCS/TMS320F28335: ADC SOC Example not reading full range of Values

$
0
0
Hi Kyle, If you cannot connect ADCLO to one of the input channels then you can just connect 0V instead. Once you have made this connection then you can follow the flow chart (Figure 1-12) essentially taking multiple ADC conversions, averaging them out, subtracting the average from the value in the OFFTRIM register, and then writing that result back to the OFFTRIM register. What is meant by "a centered zero code" is that after the offset error correction process there should be a half bell curve distribution (Figure 1-13). When sampling a 0V reference, the largest majority of output code readings should be zero, and then tempering off as the output code value increases until reaching 4095. Best Regards, Marlyn

Forum Post: RE: CCS: CAN communication between TM4C123G and doit esp32 devkit v1

$
0
0
Hi Tuyen, You have a duplicated question at https://e2e.ti.com/support/wireless-connectivity/wifi/f/968/p/823429/3046936#3046936 for which I answered. Please refer to the answer in that post.

Forum Post: RE: CCS: Using System analyzer (UIA target) Speed ​​measurement question.

$
0
0
JunYoung, I am not familiar with the lab manual you are referring to. Here is some general information you will need to figure out the time: A cycle generally refers to a clock cycle (a single tick of the internal clock.) Cycles per second are also called Hertz, or Hz, thus a 2 GHz CPU (two gigahertz) goes through 2,000,000,000 cycles every second. Thus if you know the frequency that your CPU core is running at you can calculate the time. Regards, John

Forum Post: RE: CCS: CCS ISSUE

$
0
0
Hello Jinwook, The basic methodology is laid out in the app note. You will need to make a custom calculation for your sensor though. As far as the NFC part goes, I have provided all I can on that front. If you have further MSP430 specific questions, then please make a post to the MSP430 forums on the topic about how to use the device to do calculations. I am not an expert to support the MSP430 MCU so the information in the app note is the most I can offer on that front.

Forum Post: RE: help locating file/function in the Vision SDK (VSDK) containing the scheduler which calls the FFT and Angle_Find function, etc…

$
0
0
Hi, Its been long since any update on this thread. I hope the issue is resolved. Regards, Anuj
Viewing all 95862 articles
Browse latest View live


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