XMC™ Forum Discussions
Problem Statment:
I am trying to verify whether the XMC4700s ADC diagnostic tests are working. There are two tests I am trying to verify:
- Pull Down Diagnostics
- Pull Up Diagnostics
Procedure:
For testing the pull down test,
- Connect a 7 kOhm resistor between 3V3 and the adc pin under question.
- Datasheet says pull up/down tests are under port logic. Therefore, I instruct the internal pull down device to go active.
- I monitor the ADC pin with a scope.
Expectations:
Expectation is that I see a voltage dip on scope from 3V3 to a lower voltage when pull down device goes active because a potential divider forms between the pull down resistor and the resistor I connected externally. For pull up diagnostic verification, I connect the resistor to ground and expect the voltage to rise from 0 V.
Question:
I don't see anything like this happening. The voltage is at a solid 3V3 for pull down and 0V for pull up and nothing actually happens. What am I doing wrong?
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 LessHi.
Based on the application note of XMC 4800 relax kit, we can control the led of the slave board which is rewrite the digital variable of slave via TwinCAT3.
May i know is it possible we rewrite and read the slave variable parameter (decimal or hex) via TwinCAT3?
If Yes, may i know how to do that set up? is there any application note for this?
Hope to hear you soon.
Thx
Show Less
Hi, I am using XMC4800 for the control of PMSM,and now I have a question, the question is how to quick response to large load variation using PMSM when speed is very low?
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 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