Part Number: EK-TM4C129EXL Tool/software: Compiling the example project with MSYS2 gcc results in the following error: $ gcc tcpSendReceive.c -o tcpSendReceive -lws2_32 In file included from tcpSendReceive.c:54: sockets.h:55:21: error: static declaration of 'inet_pton' follows non-static declaration 55 | static __inline int inet_pton(int af, const char * src, void * dst) | ^~~~~~~~~ In file included from sockets.h:36: C:/msys64/ucrt64/include/ws2tcpip.h:431:32: note: previous declaration of 'inet_pton' with type 'INT (INT, const CHAR *, void *)' {aka 'int(int, const char *, void *)'} 431 | WINSOCK_API_LINKAGE INT WSAAPI InetPtonA(INT Family, LPCSTR pStringBuf, PVOID pAddr); When I comment out the inet_pton function in sockets.h, the program builds. However I would prefer not to need to do this.
↧
Forum Post: EK-TM4C129EXL: Compling tirtos_tivac_2_16_01_14\packages\examples\tools for Windows with MSYS2
↧
Forum Post: RE: TMS320F2800157: Not able to achieve the torque at higher RPM of the motor
[quote userid="578806" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1478444/tms320f2800157-not-able-to-achieve-the-torque-at-higher-rpm-of-the-motor/5710026#5710026"]However, the only problem is that, as I indicated previously, we are unable to operate the motor with real encoder feedback. The motor will continue to operate even if I remove the encoder feedback while it is operating.[/quote] Make sure that the project build configuration is for encoder based sensoed-FOC. Please take a look the lab user's guide and follow the operation instruction to select the right definition symbols. [quote userid="578806" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1478444/tms320f2800157-not-able-to-achieve-the-torque-at-higher-rpm-of-the-motor/5710026#5710026"]Above, you instructed me to turn off the speed close loop. How can I operate my motor with feedback in torque control mode if I turn off this closed loop?[/quote] What do you mean this feedback?
↧
↧
Forum Post: RE: TMS320F28379S: C28xx_CPU1: Error during Flash verification. Address of failure: 0x000C0000
It looks only ZoneSelectBlock1 has configured bank1 to be inaccessible. Should I set all three link pointers to 0x1FFFFFFE, which would be ZoneSelectBlock2? Where do I get the on-chip flash tool?
↧
Forum Post: RE: TM4C1294NCPDT: Which Programming Method / Tool supports faster Programming speed of MCU - TM4C1294NCPDTT3
Hi Charles sir, Thanks for your valuable feedback, Our program code is 800KB and we are using .bin file only. As per our rough calculation: => 300ms (for erasing the flash) + (100us* 6400000/64) => around 10.3 seconds 800KB = 6400000 bits, in formula added in bits Also the debugger we use is XDS110 debug and programmer. But we couldn't extend the watchdog reset time beyond 3seconds, Is there any other tool options for faster programming before 3seconds/ debugger options. please suggest
↧
Forum Post: RE: TMS320F280049C: TMS320F280049C-56RSH
Can you send me your code on ADC channel, SOC config etc? Thanks, Susmitha
↧
↧
Forum Post: RE: AM263P4: EPWMs out of sync by 1 clock cycle
Hello Huey, I was able to confer with another EPWM expert who is familiar with the behavior you are seeing. As Kier was mentioning, this is a known issue, and you should use a TBPHS value of 1 or 2 depending on the SYSCLK speed. Based on the delay here, probably a TBPHS value of 1 would work for this. Alternatively, another solution is not using the SYNC feature at all. The PWMs should start simultaneously after TBCLKSYNC is enabled. Best Regards, Ralph Jacobi
↧
Forum Post: MSPM0G3507: how to create secondary BSL at location 0x00000000 and Jump to APP
Part Number: MSPM0G3507 Other Parts Discussed in Thread: MSPM0C1104 Tool/software: Have a nice day experts, I want to do a custom secondary bootloader on the MSPM0G3057 to suit my project, which involves FOTA updates using a single MCU (non-model Host vs Target). I have two problems about the sample project secondary_bsl_uart_LP_MSPM0G3507_nortos_ticlang : Problem 1: I don't want to place the bootloader at the address range 0x1000–0x3000 because if the MCU is reset while programming, it could lead to an unrecoverable error. This is because the vector SCB jumps to at address 0x00000000, which would have been erased to the reset. Problem 2: I am also concerned about the need to modify the NONMAIN memory region for the BCR and BSL, as well as tcalculate the correct CRC values for these configurations. Do you agree with my problems ? I also have the following questions: How can I configure the bootloader to reside at address 0x00000000, to avoid registering a new secondary BSL and allowing easy invocation of the BSL upon every reset? How can I jump to the application starting at address 0x00002000? Please provide detailed steps and documentation or code examples related to these questions . (I have only briefly reviewed the flash_bsl_LP_MSPM0C1104_nortos_ticlang example and am not yet familiar with the method for jumping to the application.) Please help me with my problems and questions. Thanks and Best Regards, Son
↧
Forum Post: RE: TMS320F28P550SJ: Question about Optimizing Interrupt Routine Code for Time Consumption Reduction
For the source file that contains the ISR routine, please follow the directions in the article How to Submit a Compiler Test Case . But please do it two times. Once when the code is written to use statements similar to ... [quote userid="628261" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1487161/tms320f28p550sj-urgent-question-about-optimizing-interrupt-routine-code-for-time-consumption-reduction"]float result = variable * CONSTANT_ONE * CONSTANT_TWO; [/quote] And a second time when there are statements similar to ... [quote userid="628261" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1487161/tms320f28p550sj-urgent-question-about-optimizing-interrupt-routine-code-for-time-consumption-reduction"]float result = variable * CONSTANT_THREE;[/quote] Thanks and regards, -George
↧
Forum Post: TMS320F2800156-Q1: Attach to a running target
Part Number: TMS320F2800156-Q1 Tool/software: Hello: I am trying to attach the debugger to a running F2800156 microcontroller without loading the program or resetting it. I am using the latest version of the Code Composer ( 20.1.0.6 ) and the XDS110 Debug. I have tried to modify the GEL file and the debug options inside the project's properties but I can't achieve it. Is there any step-by-step guide to do this? Regards, Fernando
↧
↧
Forum Post: RE: TMS320F28379S: C28xx_CPU1: Error during Flash verification. Address of failure: 0x000C0000
Would it be enough to add the following to the linker cmd file MEMORY { PAGE 0 : /* Program Memory */ /* Z1 OTP. LinkPointers */ DCSM_OTP_Z1_LINKPOINTER : origin = 0x78000, length = 0x00000C /* Z2 OTP. LinkPointers */ DCSM_OTP_Z2_LINKPOINTER : origin = 0x78200, length = 0x00000C } SECTIONS { dcsm_otp_z1_linkpointer : > DCSM_OTP_Z1_LINKPOINTER PAGE = 0, type = DSECT dcsm_otp_z2_linkpointer : > DCSM_OTP_Z2_LINKPOINTER PAGE = 0, type = DSECT } and then add the following files to my project: e2e.ti.com/.../3531.DCSM_5F00_Z1_5F00_ZoneSelectBlock.asm e2e.ti.com/.../3531.DCSM_5F00_Z2_5F00_ZoneSelectBlock.asm
↧
Forum Post: TMS320F280025C: F280025C + DRV8329A EVM | Universal Motor Control | Hall Sensor Feedback | Current Waveform Not Sine & Motor Not Rotating Properly
Part Number: TMS320F280025C Tool/software: I am using the F280025C with the DRV8329A EVM inverter board and working with the Universal Motor Control Lab (DMC Level 4) for Hall sensor feedback. I need to configure a new motor that is not pre-configured in the Universal Motor Control project. How should I correctly add the motor parameters and adapt the control algorithm for Hall sensor-based FOC? Additionally, I am facing the following issues: The current waveform is not sinusoidal ; instead, it resembles a six-step control waveform . According to the user guide , the current should be sinusoidal in FOC mode . How can I resolve this issue? The motor does not rotate properly with the electrical angles calculated using HAL_CAL . What could be the cause of this, and how can I fix it? Any guidance on correctly configuring Hall sensor-based FOC and debugging these issues would be greatly appreciated. Thanks!
↧
Forum Post: LAUNCHXL-F28379D: Request for Access to Material on Tuning PI Controllers
Part Number: LAUNCHXL-F28379D Tool/software: Dear TI Support Team, I hope this message finds you well. I am an Electronics Engineering student, and I am currently working on my thesis. While researching, I came across the material titled "Tuning PI Controllers" by Mr. Dave Wilson on the following website: Tuning PI Controllers - By Dave Wilson - C2000 microcontrollers forum - C2000 ︎ microcontrollers - TI E2E support forums Unfortunately, it seems that some parts of the content are blocked or inaccessible. I would greatly appreciate your assistance in gaining access to this valuable information, as it is crucial for my research. Thank you very much for your time and support. I look forward to your response. Best regards, Javier A. Martín Delgado javier.martin@usantotomas.edu.co
↧
Forum Post: RE: AM2612: Motor control SDK docu
Hi Holger, AM261x motor control sdk is available through the ti drive release
↧
↧
Forum Post: RE: AM2612: Motor control SDK docu
Please send an email to am261_support@list.ti.com - Use this list to ask any questions regarding AM261
↧
Forum Post: RE: TMS320F2800137: F2800137 Global load of AQCTLA
Hi, I am using global loading a lot already without any issue with most CMP/TPRD registers. But due to some new requirement for PWM, I need to change also AQCTLA but need to be loaded at 0 after I do set OSHTL. From the example 14, 1- why do you not set Shadow mode for Action Qualifier for ePWM2 and 3 but only on ePWM1? Should I do that for Global load? 2- Why do you also need to set "Force Load Event" in Global Load setting for PWM2 and 3? (I also do use link with ePWM1 for global load) Thanks,
↧
Forum Post: RE: AM2434: am2434
Dear Paula, I'm currently attempting to activate the LWIP receiver callback similarly to how I've successfully done it on the TMS320F28388D. However, upon implementing this approach using a callback function on the LP-AM243, I encountered an issue when creating a PCB with udp_new() . Specifically, the following error message was triggered: Function called without core lockASSERT: 5.115172s:/nightlybuilds/mcupsdk_internal/jenkins/mcu_plus_sdk_am243x_10_01_00_32/source/networking/lwip/lwip-port/freertos/src/sys_arch.c:sys_check_core_locking:614: 0 failed My current constraint is the extremely limited memory available—just 2MB RAM shared across all cores in my initial software deployment on the LP-AM243. Could you please provide guidance or suggest solutions to resolve this issue? Thank you very much for your assistance. Best regards, Baruch
↧
Forum Post: RE: TMS320F28388D: Error #71 incomplete type is not allowed, Type #237 variable "AdcaRegs" was declared with a never-completed type, external location: C:\ti\c2000\C2000Ware_5_00_00_00\device_support\f2838x\headers\include\f2838x_adc.h C/C++ Prob
Hi Will, Understood, the same principles should apply. Have you tried to rerun the installer and double check that C2000 support is selected when installing? Do you see F2838x device support in your CCS download (there are several locations within the ccs_base folder that need to be populated with the device support files. For example, the XMLs in ccs1240\ccs\ccs_base\common\targetdb\devices\) Best Regards, Allison
↧
↧
Forum Post: RE: TMS320F2800137: F2800137 Global load of AQCTLA
Hi, The problem may be related to question below. https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1057414/tms320f280049-how-to-clear-gldctl2-oshtld The issue that I have is when using OSHTLD when the control loop (fixe frequency, NOT PWM ISR) is running close too the same frequency as the PWMs and the OSHTLD is set very close to or around counter 0. It seems that when I set OSHTLD, it is possible that at the next control calculation, I update shadow register even before the OSHTLD was executed making only next PWM cycle to be not as expected (only half updated). Can it be a valid cause? I suppose that there is nothing to prevent updates of shadow registers if OSHTLD was set but not executed as it seems that we can only read OSHTLD as 0. In this case, what do you propose as a solution to make sure that we do not update shadow registers until the reload was effectively executed in Global Load Mode? Thanks, Arnaud
↧
Forum Post: RE: LAUNCHXL-F28379D: Request for Access to Material on Tuning PI Controllers
you can see this thread for information (2) TMS320F28375S: Where to find "Teaching Your PI Controller to Behave" blog series? - C2000 microcontrollers forum - C2000 ︎ microcontrollers - TI E2E support forums
↧
Forum Post: RE: AM2432: Power Ramp and Initialization Sequence,CKE has a pluse about 10us
Can you send the DDR configuration file that you are using (*.dtsi or *.h and *.syscfg)? Regards, James
↧