XMC™ Forum Discussions
Hi,
I used the library provided for the TLx493d sensors in DAVE and managed to create a BUS communication with 2 sensors there.
Library-Name: "Infineon-3D_Magnetic_Sensors_TLx493D_Library-Software-v01_3-EN" and in there i use the files from the
"TLx_generic_lib_xmc1100_drivers-v1.3"
I now tried to include the library in Keil uVision5 (the rest of the project is done there) and, after setting the include paths correctly, I´m being left with multiple errors in cmsis_gcc:
C:/Users/Alex/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include\cmsis_gcc.h(258): error: too many arguments provided to function-like macro invocation
C:/Users/Alex/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include\cmsis_gcc.h(258): error: 'inline' can only appear on functions
C:/Users/Alex/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include\cmsis_gcc.h(258): error: variable has incomplete type 'void'
C:/Users/Alex/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include\cmsis_gcc.h(258): error: expected ';' after top level declarator
C:/Users/Alex/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include\cmsis_gcc.h(269): error: too many arguments provided to function-like macro invocation
C:/Users/Alex/AppData/Local/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Core/Include\cmsis_gcc.h(280): error: too many arguments provided to function-like macro invocation
Which are all erors that didnt show up before with our project and the other features we have already implemented.
It looks to me as if the is some sort of version-difference causing the error, but my understanding of this cmsis-libraries and what is used in DAVE doesnt go far enought(yet) to understand what the issue might be..
Any hints to what is needed to be set up with using this library?
BR
Alex
Hi all,
I need to control an ADC with the XMC4700 by SPI. My requierements are:
- Mode = Dual SPI
- Fs SCLK = 15 MHz
- Frame periodicity = 1.75 us
Therefore, I need to send consecutive frames every each 1.75 us. The issue that I have found is that I am not able to reduce the time between consecutive SPI frames.
What I need to achieve:
I am using the XMC Lib and DMA mode. I attach de DAVE project used for the XMC4700 evaluation board. What I actually achieve:
I would like to higlight that using the SPI_CONFIG app or the SPI_MASTER app I do not achieve what I need neither. This is why I use the low level XMC Lib.
Could anyone help me to improve my code and get the frame rate that I need?
Thank you very much in advance.
Victor
Show LessHello,
I'm working with XMC4500 and trying to understand why randomly the system gets to a state where it's lockup and only works again after a power reset.
I have a couple of questions:
1 - When a non-configurable fault is active, will the watchdog still work and reset the XMC?
2 - Is it possible to force a hard fault, mem fault, or bus fault to test the system's behavior when they occur? How can I do it?
3 - What is the good way to treat such faults? It is safe to ignore the faults with just a return; or keep it there with a while(1) in the fault's handler?
3.1 - In this case the watchdog will reset the XMC?
The system can work for days before it gets irresponsive which does not help to find the cause of the lockup.
4 - If there is a fail while loading the apps with the DAVE_Init(), it is safe to keep executing the code and start the watchdog?
Thank you for your help!
Daniel
Show LessEVAL_3K3W_TP_PFC_SIC 测试环境:
1、demo切至逆变模式;
2、AC端接阻性负载(不接ac并网模拟器);
3、DC端输入DC400V电源;
测试结果:AC端无 AC230V 电压输出;
问题:当前demo板的默认软件是否不支持上述的测试环境? 是否可以提供支持上述测试环境的软件版本?
Show LessI have an old project created by DAVE for XMC 4400. Now, I want to move on Eclipse and my microcontroller is XMC 4700.
I have a couple of varibales and defintions based on DAVE.h. what should I do ? Please let me know.
Hi, I'm having problems with programming a custom XMC7200D-F176K8384AA board.
I created a custom BSP in modustoolbox and am trying to blink an LED. I opened an example project for the XMC7200 evaluation kit and reworked my code based on that example. I am using a j-link pro as the debugger.
The build seems successful , there seems to be a warning that the linker script can't be found but the build succeeds in the end. After the build the programming log shows one error: "ERROR: Timeout while preparing target, core does not stop."
I'm posting the build log and the programming log if someone can spot if I'm doing something wrong, I'm also attaching the BSP.
I am also getting a new tab opened in the editor with the following: Break at address "0x0" with no debug information available, or outside of program code.
Here is the build log:
01:56:54 **** Incremental Build of configuration Debug for project LED_blink_1 ****
"C:\\Infineon\\Tools\\ModusToolbox\\tools_3.1\\modus-shell\\bin\\make" CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/Infineon/Tools/ModusToolbox/tools_3.1 CY_IDE_BT_TOOLS_DIR= --output-sync -j16 all
Tools Directory: C:/Infineon/Tools/ModusToolbox/tools_3.1
Removing .mtbqueryapi file...
Searching installed tools in progress...
Searching installed tools complete
"Using linker bsps/TARGET_XMC7200D-F176K8384/TOOLCHAIN_GCC_ARM/linker_d.ld"
WARNING: Unable to find linker script 'bsps/TARGET_XMC7200D-F176K8384/TOOLCHAIN_GCC_ARM/linker_d.ld'.
Initializing build: mtb-example-empty-app Debug XMC7200D-F176K8384 GCC_ARM
Prebuild operations complete
Auto-discovery in progress...
Auto-discovery complete
Commencing build operations...
Tools Directory: C:/Infineon/Tools/ModusToolbox/tools_3.1
"Using linker bsps/TARGET_XMC7200D-F176K8384/TOOLCHAIN_GCC_ARM/linker_d.ld"
WARNING: Unable to find linker script 'bsps/TARGET_XMC7200D-F176K8384/TOOLCHAIN_GCC_ARM/linker_d.ld'.
Constructing build rules...
Build rules construction complete
==============================================================================
= Building application =
==============================================================================
Generating compilation database file...
-> ./build/compile_commands.json
Compilation database file generation complete
Building 184 file(s)
==============================================================================
= Build complete =
==============================================================================
Calculating memory consumption: XMC7200D-F176K8384 GCC_ARM
----------------------------------------------------
| Section Name | Address | Size |
----------------------------------------------------
| .text | 0x10080000 | 6096 |
| .ARM.exidx | 0x100817d0 | 8 |
| .copy.table | 0x100817d8 | 36 |
| .zero.table | 0x100817fc | 8 |
| .cy_itcm | 0x00000000 | 152 |
| .ramVectors | 0x28004000 | 128 |
| .data | 0x28004080 | 64 |
| .noinit | 0x280040c0 | 2604 |
| .bss | 0x28004aec | 276 |
| .heap | 0x28004c00 | 1025024 |
----------------------------------------------------
Total Internal Flash (Available) 8585216
Total Internal Flash (Utilized) 6372
01:56:59 Build Finished. 0 errors, 0 warnings. (took 4s.932ms)
Here is the programming log:
SEGGER J-Link GDB Server V7.92o Command Line Version
JLinkARM.dll V7.92o (DLL compiled Nov 8 2023 15:46:12)
Command line: -if jtag -device XMC7200-8384_CM7_0_tm -endian little -speed 1000 -port 2337 -swoport 2338 -telnetport 2339 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2337
SWO raw output listening port: 2338
Terminal I/O port: 2339
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: on
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: XMC7200-8384_CM7_0_tm
Target device parameters: none
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Pro V6 compiled Sep 7 2023 13:16:43
Hardware: V6.00
S/N: 176000743
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 4.97 V
Listening on TCP/IP port 2337
Connecting to target...
J-Link found 2 JTAG devices, Total IRLen = 8
JTAG ID: 0x6BA00477 (Cortex-M7)
Halting core...
Initializing CPU registers...Connected to target
Waiting for GDB connection...Connected to 0000:0000:0000:0000:0000:0000:0000:0001
GDB client (conn. 852) requested target.xml from GDB Server
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0x00000000
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0x00000000
Read register 'lr' (4 bytes) from hardware: 0x00000000
Read register 'pc' (4 bytes) from hardware: 0x00000000
Read register 'xpsr' (4 bytes) from hardware: 0x00000001
Read 4 bytes @ address 0x00000000 (Data = 0x280FF800)
Read 2 bytes @ address 0x00000000 (Data = 0xF800)
Received monitor command: speed 1000
Target interface speed set to 1000 kHz
Received monitor command: clrbp
Received monitor command: reset 0
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x280009FC)
Received monitor command: regs
R0 = 00000662, R1 = 28003E34, R2 = 40220000, R3 = 40220020
R4 = 00000001, R5 = 00008000, R6 = 00000F5C, R7 = 00000E23
R8 = 00001080, R9 = 28003E34, R10= 80010000, R11= 00000000
R12= 00000000, R13= 280009F8, MSP= 280009F8, PSP= 10000000
R14(LR) = 280016AD, R15(PC) = 280009FC
XPSR 21000000, APSR 20000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Security extension regs:
MSP_S = 00000000, MSPLIM_S = 00000000
PSP_S = 00000000, PSPLIM_S = 00000000
MSP_NS = 280009F8, MSPLIM_NS = 00000000
PSP_NS = 10000000, PSPLIM_NS = 00000000
CONTROL_S 00, FAULTMASK_S 00, BASEPRI_S 00, PRIMASK_S 00
CONTROL_NS 00, FAULTMASK_NS 00, BASEPRI_NS 00, PRIMASK_NS 00
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x62060000
Read register 'r1' (4 bytes) from hardware: 0x343E0028
Read register 'r2' (4 bytes) from hardware: 0x00002240
Read register 'r3' (4 bytes) from hardware: 0x20002240
Read register 'r4' (4 bytes) from hardware: 0x01000000
Read register 'r5' (4 bytes) from hardware: 0x00800000
Read register 'r6' (4 bytes) from hardware: 0x5C0F0000
Read register 'r7' (4 bytes) from hardware: 0x230E0000
Read register 'r8' (4 bytes) from hardware: 0x80100000
Read register 'r9' (4 bytes) from hardware: 0x343E0028
Read register 'r10' (4 bytes) from hardware: 0x00000180
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0xF8090028
Read register 'lr' (4 bytes) from hardware: 0xAD160028
Read register 'pc' (4 bytes) from hardware: 0xFC090028
Read register 'xpsr' (4 bytes) from hardware: 0x00000021
Received monitor command: speed 12000
Target interface speed set to 11941 kHz
Received monitor command: flash breakpoints 1
Flash breakpoints enabled
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on breakpoint instruction hit)
Received monitor command: semihosting IOClient 1
Semihosting I/O set to TELNET Client
Downloading 6364 bytes @ address 0x10080000 - Verified OK
Writing register 'pc' = 0x100801D0
ERROR: Timeout while preparing target, core does not stop. (PC = 0x28001666, XPSR = 0x21000000, SP = 0x28004AE0)!
Failed to perform RAMCode-sided Prepare()
Read 4 bytes @ address 0x100801D0 (Data = 0xB672B510)
Read 2 bytes @ address 0x100801D0 (Data = 0xB510)
Read 4 bytes @ address 0x280016AC (Data = 0xA3732319)
Read 2 bytes @ address 0x280016AC (Data = 0x2319)
Read 4 bytes @ address 0x280016AC (Data = 0xA3732319)
Read 2 bytes @ address 0x280016AC (Data = 0x2319)
Received monitor command: clrbp
Received monitor command: reset 2
Resets core & peripherals using RESET pin.
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x280009FC)
Received monitor command: reset 0
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Received monitor command: go
Starting target CPU...
GDB closed TCP/IP connection (Socket 852)
hello,
I am working on XMC4800 IoT Amazon FreeRTOS connectivity kit with EtherCAT Connectivity board v 1.1 (image of board is attached). it doesnot have any dedicated Ethernet port.
my question: Is Ethercat Port0 or port1 can be used as normal Ethernet port for tcp and udp communication?
Show LessHi
I need to add new variables to my project to use it in uC Probe. I want to see some parameters like speed in rpm but this variables are not defined yet. I'm using the example project BLDC_SCALAR_HALL_XMC13.
How can I create a new variable and introduce it into the ELF file, and then use it in the uC Probe program to visualize its changes?
Best Regards, Pablo.
Show LessWhen the XMC4800 Relax EtherCAT® Kit-V1 development board we purchased was debugging the Flash read/write protection function, we encountered a situation where the chip was completely locked and unusable. It could not be connected to the device using J-Link. The oscilloscope measured that the crystal pin had no signal and the voltage was 0. Is there any solution?
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/XMC/XMC4800-Relax-EtherCAT-Kit-V1%E6%9C%AA%E5%90%AF%E5%8A%A8/td-p/646642
Show LessHello,
I got the EVAL_3K3W_BIDI_PSFB and the EVAL_3K3W_TP_PFC_SIC, in the documentation of both boards a GUI is mentioned but I can not find where to download the software. Could some one point me out where to get it?
Thanks!
Show Less