Part Number: TMS320F28069 Dear sir, I have to spin and control the BLDC motor usoing launch pad and drv 8302 boosterxl driver . Actually I have taken the PMSM example in control suit development studio and then tried to understand PMSM example . But i dont understand the programming method using lot of macros and state machine method of implementation. can you make to understand the program? i dont know how to change the PWM frequency in that program. Kindly thorw some light. I will be able to solve the problem. Thanking you , Warm regards sundari
↧
Forum Post: TMS320F28069: Tms329f 28069
↧
Forum Post: TMS320F28375D: Building a JTAG flash programmer H/W and S/W of their own design.
Part Number: TMS320F28375D Hello, My customer requested me a sufficient information to build a JTAG flash programmer H/W and S/W of their own design. Do you agree that? If no problem, could you please suggest reference materials to develop it? The following materials are expected: - JTAG register info - Procedure to program/erase/verify the flash The target part# is F28375D and some other F2837xy. The usage is their production line. Thank you for your cooperation. With your answer I would show other solutions: - TI's faster items like XDS560 and C2000-GANG . Now they have XDS200. - \..\serial_flash_programmer, usb_flash_programmer
↧
↧
Forum Post: MSP430FR2355: Spy-By-Wire
Part Number: MSP430FR2355 Trying to use the LaunchPad for programming a new design which is setup for programming via Spy-By-Wire. Four wires, 3.3V, GND, TCLK, and DIO. Followed all the recommendation for the reset for the Spy-By-Wire. 47k pullup resistor and 1nF capacitor. Resistor and cap are located right next to the programming connector and the programming connector is located right near the MSP430FR2355 embedded controller. Using UniFlash for programming. Issue is that UniFlash sometimes recognizes the target device but most of the time doesn't. Powering target device from the LaunchPad board, 3.3V looks fine. Wires from the Launchpad to the target device are only about 4" long. Checked connections from connector to MSP430 and they are fine. Does anyone have an idea of whats going on. Used multiple different Launchpads and same issue. Used these launchpads on an older design (different MSP430) but uses the same resistor capacitor values and it works fine on the older design. Any suggestions/recommendations to resolve this issue would be greatly appreciated. Trying to get some prototypes up and running for a demo.
↧
Forum Post: TMS320F280049: how to configure ADC Trigger
Part Number: TMS320F280049 Dears, COPMB is configured as shadow mode, updating by downflow and peroid. SOCB trigger ADCA ADCB ADCC in increment mode.SOCA trigger ADCA ADCB ADCC in decrement mode. The value and triggering mode of COMPB are changed in the PWM interruption by peroid and downflow. ADDC is working, but ADCA and ADCB is not working? below is my code. // Disable SOCA EPWM_disableADCTrigger(EPWM1_BASE, EPWM_SOC_A); EPWM_setADCTriggerSource(EPWM1_BASE,EPWM_SOC_A,EPWM_SOC_TBCTR_D_CMPB); EPWM_setADCTriggerEventPrescale(EPWM1_BASE,EPWM_SOC_A,1); EPWM_enableADCTrigger(EPWM1_BASE,EPWM_SOC_A); // Disable SOCB EPWM_disableADCTrigger(EPWM1_BASE, EPWM_SOC_B); EPWM_setADCTriggerSource(EPWM1_BASE,EPWM_SOC_B,EPWM_SOC_TBCTR_U_CMPB); EPWM_setADCTriggerEventPrescale(EPWM1_BASE,EPWM_SOC_B,1); EPWM_enableADCTrigger(EPWM1_BASE,EPWM_SOC_B); void InitADCSOC(void) { // Configure SOC of ADCA/ADCB/ADCC, The EPWM1SOCA signal will be the trigger. ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN10, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER1, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN3, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER2, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN6, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN8, 10U); ADC_setupSOC(ADCB_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN14, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER1, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER2, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN1, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN2, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN3, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER5, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN5, 10U); // Set SOC5 to set the interrupt 1 flag. Enable the interrupt and make sure its flag is cleared. ADC_setInterruptSource(ADCC_BASE, ADC_INT_NUMBER1, ADC_SOC_NUMBER5); ADC_enableInterrupt(ADCC_BASE, ADC_INT_NUMBER1); ADC_clearInterruptStatus(ADCC_BASE, ADC_INT_NUMBER1); } interrupt void EPWM1TBIsr(void) { if((*gEPwmURegs).TBSTS.bit.CTRDIR == 1) { EALLOW; (*gEPwmURegs).CMPB.bit.CMPB = (*gEPwmURegs).TBPRD - ADC_SAMP_DELAY; EDIS; ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN10, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER1, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN3, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER2, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN6, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN8, 10U); ADC_setupSOC(ADCB_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN14, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER1, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER2, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN1, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN2, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN3, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER5, ADC_TRIGGER_EPWM1_SOCA, ADC_CH_ADCIN5, 10U); } else { EALLOW; (*gEPwmURegs).CMPB.bit.CMPB = ADC_SAMP_DELAY; EDIS; ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN10, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER1, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN3, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER2, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN6, 10U); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN8, 10U); ADC_setupSOC(ADCB_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN14, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER1, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN0, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER2, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN1, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN2, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN3, 10U); ADC_setupSOC(ADCC_BASE, ADC_SOC_NUMBER5, ADC_TRIGGER_EPWM1_SOCB, ADC_CH_ADCIN5, 10U); } // Clear INT flag for this timer EPWM_clearEventTriggerInterruptFlag(EPWM1_BASE); // Acknowledge interrupt group Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP3); }
↧
Forum Post: CCS/TMS320F28379D: Linking libraries from C2000, Unresolved symbol remains
Part Number: TMS320F28379D Tool/software: Code Composer Studio Hello, I am trying to use some of the C2000 files to instantiate some peripherals in my sys/bios program. I believe I have included the correct directories C:/ti/ C2000Ware _2_00_00_02_Software/Driverlib/F2837xD/driverlib as well as the correct library files, C:\ti\ C2000Ware _2_00_00_02_Software\driverlib\f2837xd\driverlib\ccs\Debug I am including the header #include I am calling the function EPWM_isBaseValid(0); I am getting the error function EPWM_isBaseValid is declared implicitly - so my include doesn't work undefined first referenced symbol in file --------- ---------------- _EPWM_isBaseValid ./main.obj error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "Capstone.out" not built I can't seem to figure this issue out, any guidance would be appreciated. Thanks
↧
↧
Forum Post: CCS/MSP432P401Y: MSP low-power microcontroller forum
Part Number: MSP432P401Y Tool/software: Code Composer Studio Our product will use a MSP432P401Y and the MSP432P401Y will connect with a segment LCD module. The segment LCD controller is ST7026(COG) and MSP432P401Y use the SPI for the LCD connection. However, the SPI data width of the ST7026 is 9-bit and the SPI data width of MSP432P401Y is 7-bit or 8-bit. Can't MSP432P401Y control the LCD module? Can MSP432P401Y support the SPI 9-bit data width?
↧
Forum Post: MSP430F5342: MSP-EXP430G2 LaunchPad debug in IAR For MSP430 7.12.1
Part Number: MSP430F5342 Debug Software:IAR For MSP430 V7.12.1 Debug Tool: MSP-EXP430G2 LaunchPad Debug Platform:Self-Designed MSP430F5342 Circuit There is something wrong with my Debug.The program download and verify successfully.However,it cannot debug correctly and with these errors as follow: Thu Jun 27, 2019 11:56:22: Loaded debugee: C:\Users\Administrator.USER-20190403YJ\Desktop\MSP430Solution\Output\Exe\MSP430Solution.d43 Thu Jun 27, 2019 11:56:22: Target reset Thu Jun 27, 2019 11:56:22: (1,44): [syntax error, unexpected TYPE_NAME, expecting IDENTIFIER] Thu Jun 27, 2019 11:56:22: Error when defining macro Thu Jun 27, 2019 11:56:22: There were 2 errors during the initialization of the debugging session.
↧
Forum Post: TINA/Spice/TMS570LS1227: filter
Part Number: TMS570LS1227 Tool/software: TINA-TI or Spice Models Hi, I am new to message filtering in can protocol. please guide me to write program for tms570ls1227 to receive messages from 8 ecus one by one with message filtering. i am sending rtr with message id. in my receiving code, where and how to use message filtering. thanks and regards, K Subrahmaniam
↧
Forum Post: Linux/EK-TM4C1294XL: Porting MODBUS TCP/IP on TIVA C with LWIP and MODBUS github stack
Part Number: EK-TM4C1294XL Tool/software: Linux Hey, We are trying to port a modbus tcp/ip application on the TIVA C. We have modified the enet_lwip example code by adding functions from the raw tcp echo code from the LWIP stack on github. We are therefore able to receive TCP/IP packets when we use a packet sender, and are able to echo it back. We need to now port it with the Modbus tcp/ip stack from github so as to configure the tiva c as a client (master). Could you please help us? Also: a) Should we use an OS such as Contiki, because as of now we are using the tiva-c repository available on github. b) Since the modbus tcp/ip stack using files such as arpainet and netinet which are for linux, how do we change this for the tiva c board. Thanks Some aforementioned github stacks and repositories: github.com/.../lwip.git
↧
↧
Forum Post: CCS/TMS570LS0432: TI FEE read-write
Part Number: TMS570LS0432 Tool/software: Code Composer Studio I used halcogen example it works fine and used the api fuction given in main application in following scenario:- scenario 1). first call Ti_Fee_Init();> then TI_Fee_WriteAsync;->ti_fee_main function- then TI_Fee_Read function->ti_fee_main function - ->>>> the code works fine. scenario 2). step 1) -> first call Ti_Fee_Init(); then TI_Fee_WriteAsync>ti_fee_main function; basically, I am just writing the data, and when i see the data on memory browser then i conclude that the code is working fine as I can see the data written at location (memory browser) step 2)-> I changed the flash settings and not programming bank 7 flash. and re flashed the program with only TI_Fee_Read function-> ->ti_fee_main function call ->>>>then this function doesn't return any value and the code just stucks as while(TI_Fee_GetStatus(0)!=IDLE) holds true. ** basically when i try to only read the data it doesnt works, and when i call Ti_Fee_Init(); and then read function the data gets erased in memory locations (I can see that in memory browser) Please help me with this: as in the application firstly I will read the fee content i written previously and then proceed (requirement of the application)
↧
Forum Post: TMS570LS3137: MCAL ICU & GPIO pin is not working as configured
Part Number: TMS570LS3137 I am facing below issues related to ICU module & GPIO. Please support in resolving these, I have configured the PINs 23, 36, 38 as ICU input pins. I am testing these pins using signal generator but could not see the signal changes getting reflected when reading the pin values. I have configured Pin 97 as digital output and trying to set this pin high and low, but could not observe any state changes in the pin.
↧
Forum Post: TMS570LS3137: Questions on ICU and GPIO
Part Number: TMS570LS3137 I am facing below issues related to ICU module & GPIO . I have configured the PINs 23, 36, 38 as input ICU and testing with signal generators. I could not observe any changes in the pins while reading. I have configured Pin 97 as GPIO output and trying to set the pin to high and low. But, no changes are observed in the output pin. Please support me in resolving the issue.
↧
Forum Post: CCS/LAUNCHXL-F28069M: Rs Identification current spike
Part Number: LAUNCHXL-F28069M Tool/software: Code Composer Studio I am trying to do ID run for a PMSM on a custom board. Hardware is verified as induction motor runs fine in V/f mode. Current,Voltage and Angle graphs are ok and match with readings from external sensors. ID run starts and completes RoverL stage (Rhf and Lhf values are ok) but as soon as Rs stage starts, current suddenly spikes to ~22 A. This triggers overcurrent protection in my high voltage DC supply and it cuts power to the circuit. Instaspin FOC guide says: Section 6.5.4 A DC current is injected into the D-axis with the amplitude defined in user.h as follows: #define USER_MOTOR_RES_EST_CURRENT (1.0) Does this mean that Id PI controller gets a ref value ? Or is actual DC current applied to the motor ? Will the PWM waveforms be a simple square wave at 50% duty cycle similar to offset estimation stage or will they be normal SVPWM type waveforms with varying duty cycle ? Any help is appreciated.
↧
↧
Forum Post: TMS320F28069F: InstaSPIN Projects and Labs: the file of proj_lab10a.c
Part Number: TMS320F28069F Hello, I have a question on the InstaSPIN Projects and Labs. Specifically it is on the file of proj_lab10a.c. On the code line 112, the global variable of gCmpOffset is declared and initialized as follows: // set the offset, default value of 1 microsecond int16_t gCmpOffset = (int16_t)(1.0 * USER_SYSTEM_FREQ_MHz); However I am not able to find any place where the global variable of gCmpOffset is used. Is this variable being used in the scope of the project? Thank you for your guidance. With regards, G. Kim
↧
Forum Post: CCS/TMS320F280049C: Please help: How many were the ADC input resistance of 280049C?
Part Number: TMS320F280049C Tool/software: Code Composer Studio Hi, I want to how many were the ADC input resistance of 280049C. And was it consistent when different batches?
↧
Forum Post: MSP430FR2522: MSP430FR2522: Timer_A1.2 repeatedly phantom captures at 45C and above
Part Number: MSP430FR2522 In my application Timer_A1.2 capture on the external capture pin, running at 16MHz TA1 CLK with external source, works fine at room temperature. Above 45C, what happens is that the interrupt handler is repeatedly called with COV bit set. Clearing this bit seems to make no difference. Upon cooling, the normal behaviour resumes. (This temperature is taken using the internal ADC on the chip, using the temperature sensor. Uncalibrated, but the value agrees with external temperature measurements).
↧
Forum Post: Linux/MSP430G2553: Does anyone has experience with MSP430G2ET and linux mspdebug
Part Number: MSP430G2553 Tool/software: Linux I am thinking of buying MSP430G2ET board but I would like to use it on Linux with mspdebug and msp-430gcc?
↧
↧
Forum Post: MSP430FR2353: Sample code location: "Application Configuration" in FRAM-Utilities-UsersGuide.pdf
Part Number: MSP430FR2353 Hello, Could you please tell me the location of the titled sample code? Somewhere close to [C:\ti\msp\MSP430Ware_3_80_07_00\fram_utilities] ? I would like to suggest this to my customer that is better than EEPROMs:
↧
Forum Post: CCS/MSP430F5342: MSP430f5342
Part Number: MSP430F5342 Tool/software: Code Composer Studio hi, i want to store 4 different types of arrays in the info B memory of msp430f5342 , but every time to write a data i have to erase the info B totally and write the new data according to the example given in family user guide. This way im unable to erase the particular bytes of the info B. is there any way to erase the particular data of the info memory or any new approach?
↧
Forum Post: CCS/TMS320F28377D: FATFS error
Part Number: TMS320F28377D Tool/software: Code Composer Studio Hello, I have question about FATFS in F28377D. I want input the text file to USB memory card. I connected USB module. (5V to VBUS, V- to 130pin& V+ 131pin(standard PTP pin no.), GND to GND) and code use 'usb_host_msc', but it is set by UART command. I want input the text file immediately, So I made code like this.. > int main(void) { ... // // Initialize the file system. // f_mount(0, &g_sFatFs); // under the this point, I made it. I refer to other location function 'f_open() and f_write()' // // Open the file for reading. // fresult = f_open(&g_sFileObject, g_cTmpBuf, FA_WRITE); // // If there was some problem opening the file, then return an error. // if(fresult != FR_OK) { return(fresult); } ... end but, I didn't go next line. It went abort function. At that time fresult state is 'FR_NOT_READY'. How should I modify this code? please let me know. Thank you.
↧