Quantcast
Channel: Microcontrollers
Viewing all 232335 articles
Browse latest View live

Forum Post: RE: LAUNCHXL-F280049C: Error while uploading ending in process terminated.

$
0
0
Darryl, The error seems to indicate what Marlyn mentioned: a faulty install. However, since you showed the files present on the CCS install directory, I have another suspicion. If you are using the built-in debug probe of the The LAUNCHXL-F280049C, its model is the XDS110 Debug Probe, not the XDS100v2. This is a common occurrence if you created/imported a project from the C2000Ware, since all the current projects seem misconfigured and point to the XDS100v2. Please check the short clip below to learn how to proceed to change this: https://youtu.be/4ZoXwM3-Szw Hope this helps, Rafael

Forum Post: RE: CCS/RM46L850: RM4

$
0
0
Hello Rakesh, The EMAC internal logic is clocked synchronously on the VCLKA4. The MDIO clock is based on a divide-down of the VCL3. VCLK3 is the peripheral clock divided down from HCLK which is from PLL1 or PLL2 VCLKA4 can be from VCLK or from PLL1 or PLL2. You can use only PLL1 for this example. PLL2 is the 2nd option for tis example.

Forum Post: RE: MSP430G2553: MSP430G2553 & TLIN1029DRQ1

$
0
0
Hi Ling, Thanks a lot for your feedback. The application code hasn't been developed yet since I'm just starting to develop the hardware, but I believe LIN transceiver generally require at least 128KB hence the need to confirm the MCU memory bandwidth. I appreciate that MSP430 family support up to 256KB program memory. But when I look at the datasheet for MSP430G2553 and MSP430F2272 (which were previously recommended by TI's FAE), I only see 16KB and 32KB, respectively. Question I have is that does MSP430G2553 have program memory required for a LIN transceiver or should I look at other MCU's within MSP430 family? If so, which ones do you recommend? Thanks, John

Forum Post: CCS/TM4C123GH6PM: TI RTOS Runtime Object Viewer CCSv9

$
0
0
Part Number: TM4C123GH6PM Tool/software: Code Composer Studio I have recently upgraded from CCSv8 to CCSv9. This has caused some issues when trying to launch ROV (Runtime Object Viewer) during a debug session: I have followed the system paths and all necessary components are installed where expected. Is there another path setting that needs to be changed? Perhaps as a result of moving from CCSv8 to CCSv9? Many Thanks, Tom

Forum Post: CCS/LAUNCHXL-F28377S: ADC read in EPWM interrupt

$
0
0
Part Number: LAUNCHXL-F28377S Tool/software: Code Composer Studio Hi everyone, I have a LAUNCHXL-F28377S. In my project, I need 100kHz PWM signal and four (4) channels ADC port. I use EPWM intrrupt with 100 kHz. And I want to read the ADC channels in each EPWM interrup. So, I use the A0 - A1 - B0 - B1 ADC channels with SOC0 and SOC1. Each SOCs are triggered by EPWM interrupt. But, I have problems reading ADCs. If one channel conneted, ADC read the correct value. But,, if two or more channel connected, ADC have read wrong value. Where is the mistake? Thank you. All of the my code is here; (please disregard comment lines) #include "F28x_Project.h" #include "math.h" #define EPWM7_TIMER_TBPRD 1000 // 100kHz PWM Period register 100Mhz clock #define PI 3.14159265358979323846 #define _LAUNCHXL_F28377S 1 void ConfigureADC(void); void InitEPwm7Example(void); void SetupADCEpwm(void); void poweroff(void); void poweron(void); __interrupt void epwm7_isr(void); unsigned int start_button=0,stop_button=0; Uint16 adcread=0,adcread1=0,duty=0,adcread2=0,adcread3=0; float a=0; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void main(void) { InitSysCtrl(); CpuSysRegs.PCLKCR2.bit.EPWM7=1; //InitGpio(); GPIO_SetupPinMux(14, GPIO_MUX_CPU1, 0); GPIO_SetupPinOptions(14, GPIO_OUTPUT, GPIO_PUSHPULL); EALLOW; poweroff(); EDIS; DINT; InitPieCtrl(); IER = 0x0000; IFR = 0x0000; InitPieVectTable(); EALLOW; PieVectTable.EPWM7_INT = &epwm7_isr; EDIS; EALLOW; CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 0; EDIS; ConfigureADC(); InitEPwm7Example(); SetupADCEpwm(); EALLOW; CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1; EDIS; IER |= M_INT3; PieCtrlRegs.PIEIER3.bit.INTx7 = 1; EINT; // Enable Global interrupt INTM ERTM; // Enable Global realtime interrupt DBGM //adulhocadan aldım!!!!!!!! git01: if (GpioDataRegs.GPCDAT.bit.GPIO78 == 1 && start_button == 100) {poweron(); } if (stop_button == 100) {poweroff(); } goto git01; //buraya kadar!!!!!!! } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// __interrupt void epwm7_isr(void) { if (GpioDataRegs.GPCDAT.bit.GPIO78 == 1) {if(start_button<100) start_button++; stop_button=0;} else {if(stop_button<100) stop_button++; start_button=0;} GpioDataRegs.GPASET.bit.GPIO14=1; adcread=AdcaResultRegs.ADCRESULT0; adcread1=AdcaResultRegs.ADCRESULT1; adcread2=AdcbResultRegs.ADCRESULT0; adcread3=AdcbResultRegs.ADCRESULT1; duty=(2000*adcread)/4096; EPwm7Regs.CMPA.bit.CMPA =500;//adcread/3 ;//800;//AdcaResultRegs.ADCRESULT0;//500; EPwm7Regs.CMPB.bit.CMPB =500;//adcread/3; //2000*(adcread/4096); GpioDataRegs.GPACLEAR.bit.GPIO14=1; EPwm7Regs.ETCLR.bit.INT = 1; PieCtrlRegs.PIEACK.all = PIEACK_GROUP3; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void poweroff() { EALLOW; GpioCtrlRegs.GPAPUD.bit.GPIO12 = 1; // Disable pull-up on GPIO13 (EPWM7B) GpioCtrlRegs.GPAMUX1.bit.GPIO12 = 0; // Configure GPIO13 as GPIO PIN 39 GpioCtrlRegs.GPADIR.bit.GPIO12 = 1; //Configure GPIO78 as output GpioDataRegs.GPACLEAR.bit.GPIO12=1; //set 0 GpioCtrlRegs.GPAPUD.bit.GPIO13 = 1; // Disable pull-up on GPIO13 (EPWM7B) GpioCtrlRegs.GPAMUX1.bit.GPIO13 = 0; // Configure GPIO13 as GPIO PIN 39 GpioCtrlRegs.GPADIR.bit.GPIO13 = 1; //Configure GPIO78 as Input GpioDataRegs.GPACLEAR.bit.GPIO13=1; GpioCtrlRegs.GPCPUD.bit.GPIO78 = 1; //Disable pull-up on GPIO71 PIN11 GpioCtrlRegs.GPCMUX1.bit.GPIO78= 0; //Configure GPIO2 as GPIO PIN11 GpioCtrlRegs.GPCDIR.bit.GPIO78 = 0; //Configure GPIO78 as Input EDIS; } void poweron() {EALLOW; GpioCtrlRegs.GPAPUD.bit.GPIO12 = 1; // Disable pull-up on GPIO12 (EPWM7A) GpioCtrlRegs.GPAMUX1.bit.GPIO12 = 1; // Configure GPIO12 as EPWM7A PIN 40 GpioCtrlRegs.GPAPUD.bit.GPIO13 = 1; // Disable pull-up on GPIO13 (EPWM7B) GpioCtrlRegs.GPAMUX1.bit.GPIO13 = 1; // Configure GPIO13 as EPWM7B PIN 39 GpioCtrlRegs.GPCPUD.bit.GPIO78 = 1; //Disable pull-up on GPIO71 PIN11 GpioCtrlRegs.GPCMUX1.bit.GPIO78= 0; //Configure GPIO2 as GPIO PIN11 GpioCtrlRegs.GPCDIR.bit.GPIO78 = 0; //Configure GPIO78 as Input start_button++; EPwm7Regs.ETSEL.bit.SOCAEN = 1; EPwm7Regs.ETSEL.bit.SOCBEN=1; EDIS; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void ConfigureADC(void) { EALLOW; //write configurations AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4 AdcbRegs.ADCCTL2.bit.PRESCALE= 6; AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE); AdcSetMode(ADC_ADCB, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE); //Set pulse positions to late //AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1; //AdcbRegs.ADCCTL1.bit.INTPULSEPOS = 1; //power up the ADC AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1; AdcbRegs.ADCCTL1.bit.ADCPWDNZ = 1; //delay for 1ms to allow ADC time to power up DELAY_US(1000); DELAY_US(1000); EDIS; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void InitEPwm7Example() { EPwm7Regs.ETSEL.bit.INTSEL = ET_CTR_ZERO; // hem zero hemde TBPRD zamanında intrrupt alıyo. EPwm7Regs.ETSEL.bit.INTEN = 1; // Enable INT EPwm7Regs.ETPS.bit.INTPRD = ET_1ST; // Generate INT on 1st event //PWM clock normaly 100MHz, EPwm7Regs.TBCTL.bit.CTRMODE = TB_COUNT_UP;// TB_FREEZE EPwm7Regs.TBCTL.bit.PHSEN = TB_DISABLE; // Disable phase loading EPwm7Regs.TBCTL.bit.HSPCLKDIV = TB_DIV1; // Clock ratio to SYSCLKOUT EPwm7Regs.TBCTL.bit.CLKDIV = TB_DIV1; EPwm7Regs.TBCTL.bit.SYNCOSEL = TB_CTR_ZERO; EPwm7Regs.CMPCTL.bit.SHDWAMODE = CC_IMMEDIATE; EPwm7Regs.CMPCTL.bit.SHDWBMODE = CC_IMMEDIATE; EPwm7Regs.AQCTL.bit.SHDWAQAMODE=0; EPwm7Regs.AQCTL.bit.SHDWAQBMODE=0; EPwm7Regs.DBCTL.bit.OUT_MODE = DB_FULL_ENABLE; EPwm7Regs.DBCTL.bit.POLSEL = DB_ACTV_HIC; EPwm7Regs.DBCTL.bit.IN_MODE = DBA_RED_DBB_FED; EPwm7Regs.DBRED.bit.DBRED = 10; EPwm7Regs.DBFED.bit.DBFED = 10; EPwm7Regs.AQCTLA.bit.CAU = AQ_CLEAR; EPwm7Regs.AQCTLA.bit.ZRO = AQ_SET; EPwm7Regs.AQCTLB.bit.CBU = AQ_CLEAR; EPwm7Regs.AQCTLB.bit.ZRO = AQ_SET; EPwm7Regs.TBPRD = EPWM7_TIMER_TBPRD; // Set timer period 801 TBCLKs EPwm7Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0 EPwm7Regs.TBCTR = 0x0000; // Clear counter EPwm7Regs.ETSEL.bit.SOCAEN = 0; // SOC on A group EPwm7Regs.ETSEL.bit.SOCASEL = 1; // Enable event time-base counter equal to zero. EPwm7Regs.ETPS.bit.SOCAPRD = 1; // Generate pulse on 1st event EPwm7Regs.ETSEL.bit.SOCBEN = 0; // SOC on B group EPwm7Regs.ETSEL.bit.SOCBSEL = 1; // Enable event time-base counter equal to zero. EPwm7Regs.ETPS.bit.SOCBPRD = 1; // Generate pulse on 1st event } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void SetupADCEpwm() { Uint16 acqps; // //determine minimum acquisition window (in SYSCLKS) based on resolution // /* if(ADC_RESOLUTION_12BIT == AdcaRegs.ADCCTL2.bit.RESOLUTION) { acqps = 59; //75ns } else //resolution is 16-bit { acqps = 63; //320ns } if(ADC_RESOLUTION_12BIT == AdcbRegs.ADCCTL2.bit.RESOLUTION) { acqps = 59; //75ns } else //resolution is 16-bit { acqps = 63; //320ns }*/ // //Select the channels to convert and setup the end of conversion flag //ADCA // acqps=90; EALLOW; AdcaRegs.ADCSOC0CTL.bit.CHSEL = 0; //SOC0 will convert pin A0 AdcaRegs.ADCSOC0CTL.bit.ACQPS = acqps;//acqps;//acqps; //sample window is 100 SYSCLK cycles AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 17;//0x01011;; //trigger on ePWM7 SOCA/C AdcbRegs.ADCSOC0CTL.bit.CHSEL = 0; //SOC0 will convert pin B0 AdcbRegs.ADCSOC0CTL.bit.ACQPS = acqps;//acqps;//acqps; //sample window is 100 SYSCLK cycles AdcbRegs.ADCSOC0CTL.bit.TRIGSEL = 17;//0x01011;; //trigger on ePWM7 SOCB/C AdcaRegs.ADCSOC1CTL.bit.CHSEL = 1; //SOC1 will convert pin A1 AdcaRegs.ADCSOC1CTL.bit.ACQPS = acqps;//acqps;//acqps; //sample window is 100 SYSCLK cycles AdcaRegs.ADCSOC1CTL.bit.TRIGSEL =17;// 0x01011; //trigger on ePWM7 SOCA/C AdcbRegs.ADCSOC1CTL.bit.CHSEL = 1; //SOC1 will convert pin B1 AdcbRegs.ADCSOC1CTL.bit.ACQPS = acqps;//acqps;//acqps; //sample window is 100 SYSCLK cycles AdcbRegs.ADCSOC1CTL.bit.TRIGSEL =17;// 0x01011; //trigger on ePWM7 SOCB/C EDIS; }

Forum Post: MSP430FR6989: Please help me to choose a Low power MCU for Gas Meter application

$
0
0
Part Number: MSP430FR6989 Please help me find an MCU chip. The following are our functional requirements for this MCU: low power 80PIN MCU, packaged as QFN12mmX12mm, touch function pin, 8COM LCD driver, regular function UART, I2C, SPI, ADC, interrupt, 128~256flash, can refer to STM32L073, and have better infrared function. Thank you!

Forum Post: TIDM-1003: Error when building TIDM-1003 projects

$
0
0
Part Number: TIDM-1003 Dear TI Experts: I really need your help to run TIDM-1003 projects. According to the steps in the section 3.2.2 in application notes, we will get the error message "#20 Identifier "CTRL_Mode_e" is undefined" when building the project. So I follow Expert Luo's instruction to unzip the compressive file "TIDM_1003_sw.zip", and import the CCS project in CCS 9, as shown below. (0_2019_07_04_Final_Fight is a directory made by myself.) But it seems that the files are incomplete, causing a lot of source files not found. Did I import the project in the wrong way? Could you kindly show me how to correctly run the projects? Or show me how to solve the error message "#20 Identifier "CTRL_Mode_e" is undefined", as mentioned above. I am so eager to hear from you~ Wish you the best!!! Tang Han

Forum Post: TMS320F28388D: NMI and Missing Clock Detect and Boot ROM

$
0
0
Part Number: TMS320F28388D Hi, I'm reading the TRM about the Missing Clock Detection logic and the associated NMI mechanism. Could you help me with these few questions? In the example sysctl_ex1_missing_clock_detection in driverlib it is explained that INTOSC1 can be used after a MCD as OSCCLK to restart the PLL and generate SYSCLK at 200MHz. Does it mean INTOSC1 can be used for 200MHz and it is only INTOSC2 that is limited to 194MHz (see datasheet)? In order to know if a Missing Clock Detect has occurred is it better to check the MCDR[MCDSTS] flag or the NMIFLG[CLOCKFAIL] flag? As far as I can understand the boot ROM clears the NMIFLG[CLOCKFAIL] flag and updates the "CPU1 Boot ROM Status" so does it mean that it's pointless to read NMIFLG in my application? The CLOCKFAIL signal is shown entering the Trip Zone submodule of the ePWM peripherals on the TZ5 input. Can someone confirm that it can then be configured like any other trip source during ePWM initialization, so that we can decide whether the PWM outputs should be driven high or low upon a CLOCKFAIL event? Kind Regards, Pierre

Forum Post: INSTASPINFOCMOTORWAREGUI: INSTASPINFOCMOTORWAREGUI

$
0
0
Part Number: INSTASPINFOCMOTORWAREGUI I cannot seem to get InstaSpin-FOC working off-line (no internet connection). I see at the bottom of the InstaSpin GUI "Hardware not Connected". When I'm on the internet, I see "Connected to TI Cloud Agent" and it connects to the Hardware and I am able to use InstaSpin-FOC. I will be in a location with no internet access. How can I successfully launch, connect to hardware, and use InstaSpin-FOC locally without an internet connection?

Forum Post: Compiler/MSP430FR5994: triggering Interrupt without using __bis_SR_register(LPM0_bits + GIE);

$
0
0
Part Number: MSP430FR5994 Tool/software: TI C/C++ Compiler Hi there, Does anyone have any idea, how to shift the Control to ISR. I am unsing I2c example Code from TI. While reading or writing, the Control is Transfer to ISR by "__bis_SR_register(LPM0_bits + GIE)". Is there another way through which I can jump from my function to my ISR. I am enabeling GIE globally. Entring low power mode "LPM0_bits" doesn't seem to work reliable. It goes to low power mode, making other peripherals disfunctional as Long as the it don'T receive answer from Slave. If my slave by any reasong doesn't respond. My program gets hang. thanks, Jahangir I2C_Mode I2C_Master_ReadReg(uint8_t slave_addr, uint8_t reg_addr, uint8_t count) { /* Initialize state machine */ MasterModeI2C = TX_REG_ADDRESS_MODE; TransmitRegAddr = reg_addr; RXByteCtrI2C = count; TXByteCtrI2C = 0; ReceiveIndexI2C = 0; TransmitIndexI2C = 0; /* Initialize slave address and interrupts */ UCB2I2CSA = slave_addr; UCB2IFG &= ~(UCTXIFG + UCRXIFG); // Clear any pending interrupts UCB2IE &= ~UCRXIE; // Disable RX interrupt UCB2IE |= UCTXIE; // Enable TX interrupt UCB2CTLW0 |= UCTR + UCTXSTT; // I2C TX, start condition __bis_SR_register(LPM0_bits + GIE); // Enter LPM0 w/ interrupts return MasterModeI2C; } #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__) #pragma vector = USCI_B2_VECTOR __interrupt void USCI_B2_ISR(void) #elif defined(__GNUC__) void __attribute__ ((interrupt(USCI_B2_VECTOR))) USCI_B2_ISR (void) #else #error Compiler not supported! #endif { //Must read from UCB2RXBUF uint8_t rx_val = 0; switch(__even_in_range(UCB2IV, USCI_I2C_UCBIT9IFG)) { case USCI_NONE: break; // Vector 0: No interrupts case USCI_I2C_UCALIFG: break; // Vector 2: ALIFG case USCI_I2C_UCNACKIFG: // Vector 4: NACKIFG UCB2CTLW0 |= UCTXSTP; // stop I2C UCB2CTLW0 &= ~UCTXNACK; // clear interrupt flag // UCB2IFG &= ~UCNACKIFG; // clear interrupt flag. // UCB2CTLW0 |= UCTXSTT; // start after stop break; case USCI_I2C_UCSTTIFG: break; // Vector 6: STTIFG case USCI_I2C_UCSTPIFG: break; // Vector 8: STPIFG case USCI_I2C_UCRXIFG3: break; // Vector 10: RXIFG3 case USCI_I2C_UCTXIFG3: break; // Vector 12: TXIFG3 case USCI_I2C_UCRXIFG2: break; // Vector 14: RXIFG2 case USCI_I2C_UCTXIFG2: break; // Vector 16: TXIFG2 case USCI_I2C_UCRXIFG1: break; // Vector 18: RXIFG1 case USCI_I2C_UCTXIFG1: break; // Vector 20: TXIFG1 case USCI_I2C_UCRXIFG0: // Vector 22: RXIFG0 rx_val = UCB2RXBUF; if (RXByteCtrI2C) { ReceiveBufferI2C[ReceiveIndexI2C++] = rx_val; RXByteCtrI2C--; } if (RXByteCtrI2C == 1) { UCB2CTLW0 |= UCTXSTP; } else if (RXByteCtrI2C == 0) { UCB2IE &= ~UCRXIE; // UCB2CTLW0 |= UCTXSTP; // Send stop condition MasterModeI2C = IDLE_MODE; __bic_SR_register_on_exit(LPM0_bits); // Exit LPM0 } break; case USCI_I2C_UCTXIFG0: // Vector 24: TXIFG0 switch (MasterModeI2C) { case TX_REG_ADDRESS_MODE: UCB2TXBUF = TransmitRegAddr; // UCB2TXBUF = SLAVE_ADDR; if (RXByteCtrI2C) MasterModeI2C = SWITCH_TO_RX_MODE; // Need to start receiving now else MasterModeI2C = TX_DATA_MODE; // Continue to transmision with the data in Transmit Buffer break; case SWITCH_TO_RX_MODE: UCB2IE |= UCRXIE; // Enable RX interrupt UCB2IE &= ~UCTXIE; // Disable TX interrupt UCB2CTLW0 &= ~UCTR; // Switch to receiver MasterModeI2C = RX_DATA_MODE; // State state is to receive data UCB2CTLW0 |= UCTXSTT; // Send repeated start if (RXByteCtrI2C == 1) { //Must send stop since this is the N-1 byte while((UCB2CTLW0 & UCTXSTT)); UCB2CTLW0 |= UCTXSTP; // Send stop condition } break; case TX_DATA_MODE: if (TXByteCtrI2C) { UCB2TXBUF = TransmitBufferI2C[TransmitIndexI2C++]; TXByteCtrI2C--; } else { //Done with transmission UCB2CTLW0 |= UCTXSTP; // Send stop condition MasterModeI2C = IDLE_MODE; UCB2IE &= ~UCTXIE; // disable TX interrupt __bic_SR_register_on_exit(CPUOFF); // Exit LPM0 } break; default: __no_operation(); break; } break; default: break; } }

Forum Post: TMS570LC4357: EMIF Self testing

$
0
0
Part Number: TMS570LC4357 Hi Team, I wanted to use the Emif by using Chip Select 2. For the self testing, I have provided its address(0x60000000) and writing the data at that address. To check whether it is working i connected the CRO probes to one of the address lines, but i could not able to see anything on it. I am configuring the CE2CFG register as 0x083441A9 for the emif clk to be operated at 90MHz. Can anyone please suggest me any method to check the working of the Emif. Regards, Shivam Kakad

Forum Post: MSP432P401R: running the out-of-box demo from CCS Resource Explorer (not happening on either board)

$
0
0
Part Number: MSP432P401R Hi, I have an MSP-EXP432P401R, rev. 2.0, board in front of me (two of them, in fact) with the MSP432P401R MCU. After downloading everything I could find instructions about, I typed the device name into the "Select a Device or Board" field on the top left of Resource Explorer and found "MSP432P401R LaunchPad Rev. 2.x (Red)". (There is no "MSP-EXP432..." so I figure I've got the right thing.) I expanded the tree for 'Software' and then 'SimpleLink MSP432P4 SDK - v:3.20.00.06', then 'Examples', then 'Demos', then 'outofbox_msp432p401r', and then double-clicked on the "Out of Box Experience GUI" item. The text says: MSP-EXP432P401R Out Of Box Demo Target Status: Disconnected. When I click "Connect", it just sits there saying "Connecting..." seemingly forever. There is power to the board. This is supposed to be the out-of-the-box easy blink demo. What could I be missing? (I read two similar-sounding posts, but I'm not at the point of using a probe or anything. I'm just taking the thing out of the box, literally, and trying to see the demo.) Thanks

Forum Post: EK-TM4C123GXL: Connecting one EK-TM4C123GX board GPIO Output Pin to another EK-TM4C123GX GPIO Input Pin to read for interrupt

$
0
0
Part Number: EK-TM4C123GXL Hi, I will like ask a question more towards GPIO/Hardware while using the TI EK-TM4C123GX Launchpad board. I am wondering if it's possible to have a EK-TM4C123GX (Board A) with a GPIO pin set to output with a high voltage level setting in code composer and then link this pin to another TI TM4 Launchpad EK-TM4C123GX (Board B) set with a GPIO Input pin to read a interrupt based on a "high voltage" trigger. Do i need to short both TI board gnd together? Wondering if the above works hoping if someone can point to me, how does a TI Launchpad EK-TM4C123GX GPIO port reads the voltage level if both boards are supplied from different power source? Regards Sherwin

Forum Post: Compiler/TMS320F28335: Error 0x20000024/-1135

$
0
0
Part Number: TMS320F28335 Tool/software: TI C/C++ Compiler Dear Sir. I have work on C:\ti\ controlSUITE \development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless_2833x When I read the current with ADC, if the result value is higher than 0.01, I get the error. İf the result value less than 0.01, no problem everything is good. how can ı solve it. Conection: Spectrum Digital C2000 XDS510LC Emulator Error: Error 0x20000024/-1135 Severe Error during: Register, Execution, Unrecoverable emulation error

Forum Post: MSP432E411Y: Best way to store MAC address

$
0
0
Part Number: MSP432E411Y Hi, Is there a recommended practice for storing the MAC address in the MSP432E411Y? Ideally we would like to store the MAC address so that it can never be changed once it is written. Thanks! Joe

Forum Post: CCS/TMS320F28379D: http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/496778?TMS320F2837xD-programming-CPU2-flash-from-RAM

$
0
0
Part Number: TMS320F28379D Tool/software: Code Composer Studio Hello, I would like to program Flash-1 and Flash-2 of TMS320F28379D device directly from CC studio without going into the Flashpump semaphores Is there any way I can do this? As an first time user I would like to program Flash-1 and Flash-2. Please help in letting me know on this can be done from CC studio. Thanks, Phani.M

Forum Post: TMDXRM46HDK: For RM HDK Devices; Is there a better option.

$
0
0
Part Number: TMDXRM46HDK There are examples on how to use TI_FEE_ libraries. What I am trying to accomplish is small, so I was wondering if there was an easier way. I have a four byte value that holds hours of operation. I have a one byte value that holds a Node ID. Am I stuck using TI_FEE_ to do this? Is there a better way?

Forum Post: CCS/MSP432P4111: MSP432 BSL Software Invocation Documentation Is Lacking

$
0
0
Part Number: MSP432P4111 Tool/software: Code Composer Studio Hello, I have seen some other posts in the forum where users have trouble with the software invocation of the MSP432 BSL. The symptom is that the BSL works fine when invoked via hardware invocation or the lack of a main program (0xFF in first 8bytes of main memory). I ran into the very same problem as mentioned here(), but the solution there was not complete. I have found that the software invocation should look like the following: Interrupt_disableMaster(); for (int i=0; i IP[i] = 0; // This is critical! However SLAU622H does not mention this for SW invocation. NVIC->ICER[0] = 0xFFFF; NVIC->ICER[1] = 0xFFFF; NVIC->ICPR[0] = 0xFFFF; NVIC->ICPR[1] = 0xFFFF; BSL_INVOKE(BSL_UART_INTERFACE); My key finding was that the interrupt priorities MUST be reset to zero. I also reset the Systick (BSL uses to find the baud), Timer A0 (BSL uses for 10 second timeout), and USCI A0 (UART used to program). So I add the following code prior to entering the BSL: /* Make sure our MPU settings don't cause problems in the BSL. */ MPU_disableModule(); /* The BSL does not initialize some hardware it uses. It requires * the Systick (to determine UART baud rate) and Timer A0 (to set * the 10-second timeout). Prepare these for use by BSL. */ SysTick_disableInterrupt(); SysTick_disableModule(); Timer_A_stopTimer(TIMER_A0_BASE); /* Need to reset UART A0 for firmware update. Be sure to make the * corresponding GPIOs input pins. */ UART_disableModule(EUSCI_A0_BASE); GPIO_setAsInputPin(GPIO_PORT_P1, GPIO_PIN2); GPIO_setAsInputPin(GPIO_PORT_P1, GPIO_PIN3); I hope this helps someone. You may want to update SLAU622H with the interrupt lines above. I was going nuts trying to figure out how to invoke the BSL for firmware updates in the field! Best, Mike

Forum Post: TMS570LC4357: Is it possible to write to peripheral registers with the HTU?

$
0
0
Part Number: TMS570LC4357 Hello, I'm trying to configure a peripheral register using the the N2HET by passing data using the HTU. I have the N2HET and HTU working well(I'm able to read/write from the RAM (512kB) portion of memory). However, I can't seem to write to peripheral registers. I'm specifically talking about this region here: Is it possible to write to the peripheral registers using the HTU? Am I missing something? Thanks.

Forum Post: MSP430FR5989: UBDIFG and UBDRSTEN; GC5 Errata

$
0
0
Part Number: MSP430FR5989 Hi, if I have GCCTL0.UBDIE = 0, GCCTL0.UBDRSTEN=0 and GCCTL0.CBDIE = 0, is it possible to have UBDIFG bit set by HW while the error reporting is turned OFF and later on when SW enables the Error reporting, for ex: sets GCCCTL0.UBDRSTEN = 1, then I get a PUC immediately. If so, it is safer to clear the UBDIFG before I turn ON the error reporting (PUC or NMI) right? This in relation to the GC5 Errata, does it make sense to include clear the UBDIFG flag (any other FRAM error detection flags) before re-initializing the GCCTL0 to enable PUC generation? W.r.t GC5 errata work around how is it guaranteed that the first access to FRAM after wake up doesn't set the UBDIFG? Best Regards Santosh Athuru
Viewing all 232335 articles
Browse latest View live


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