XMC™ Forum Discussions
text.format{('custom.tabs.no.results')}
Sort by:
XMC™
Hello guys,I'm trying to get information from a Infineon magnetic sensor using a XMC 2Go and DAVE 4.The I2C Transmitt function is working (reggarding ...
Show More
Hello guys,
I'm trying to get information from a Infineon magnetic sensor using a XMC 2Go and DAVE 4.
The I2C Transmitt function is working (reggarding the bug mentioned at the topic: https://www.infineonforums.com/threads/5379-XMC-2Go) and now I'm trying to find a way to use the Receive function because it's not exactly as I need.
To receive data from this specific sensor (also a Infineon sensor), I should send the sensor address, desired register address and then the master is ready to receive data. I can do it using an Arduino by a bit bang i2C communication as shown in the picture:
When I try to receive data using DAVE 4 and XMC 2Go, I can't send the second information (desired register address) and then I start receiving data since the sensor address is sent, as shown in the picture:
I searched for a function to do that and tried to combine transmitt and receive functions but I'm not having success on it. The main code is attached.
Does anybody have any idea on how can I do it?
Show Less
I'm trying to get information from a Infineon magnetic sensor using a XMC 2Go and DAVE 4.
The I2C Transmitt function is working (reggarding the bug mentioned at the topic: https://www.infineonforums.com/threads/5379-XMC-2Go) and now I'm trying to find a way to use the Receive function because it's not exactly as I need.
To receive data from this specific sensor (also a Infineon sensor), I should send the sensor address, desired register address and then the master is ready to receive data. I can do it using an Arduino by a bit bang i2C communication as shown in the picture:
When I try to receive data using DAVE 4 and XMC 2Go, I can't send the second information (desired register address) and then I start receiving data since the sensor address is sent, as shown in the picture:
I searched for a function to do that and tried to combine transmitt and receive functions but I'm not having success on it. The main code is attached.
Does anybody have any idea on how can I do it?
Show Less
XMC™
Hello,I've been trying to use an I2C sensor on XMC 2Go board but I'm having difficult to do it. It stucks on a while that means nothing happened (no e...
Show More
Hello,
I've been trying to use an I2C sensor on XMC 2Go board but I'm having difficult to do it. It stucks on a while that means nothing happened (no end of transmission, receive, nack or some error).
The I2C App is configured as the following (I'm using DAVE 4):
The main code can be seen below:
Does anybody have idea of what's happening?
Thanks in advance,
Best regards. Show Less
I've been trying to use an I2C sensor on XMC 2Go board but I'm having difficult to do it. It stucks on a while that means nothing happened (no end of transmission, receive, nack or some error).
The I2C App is configured as the following (I'm using DAVE 4):
The main code can be seen below:
Does anybody have idea of what's happening?
Thanks in advance,
Best regards. Show Less
XMC™
Hello,In looking through the reference manual, I couldn't find enough information on the Power Management system regarding the VDESR flag outputs.I ha...
Show More
Hello,
In looking through the reference manual, I couldn't find enough information on the Power Management system regarding the VDESR flag outputs.
I have tried the following for checking the voltage:
https://www.infineonforums.com/threads/2441-XMC1000-TIP-of-the-day-Monitor-the-supply-voltage
as well as the following code:
to try to determine whether the power supply is providing 3.3 or 5 volts. Unfortunately, I always get 0 as the voltageLevelFlag which unfortunately does not tell me if the problem is that the power monitoring was not set up properly or there is some other problem. Based on my readings, I would expect that operating with 3.3 volts would give an output of 2 and operating with 5 volts would give an output of 0.
Are any steps missing because the need to set the password was not in the manual? So it is not entirely clear if other steps may be required.
Thanks,
Jason Show Less
In looking through the reference manual, I couldn't find enough information on the Power Management system regarding the VDESR flag outputs.
I have tried the following for checking the voltage:
https://www.infineonforums.com/threads/2441-XMC1000-TIP-of-the-day-Monitor-the-supply-voltage
as well as the following code:
SCU_GENERAL->PASSWD = 0x000000C0UL;
WR_REG( SCU_ANALOG->ANAVDEL, 0xFFFF, 0, 0x0012 ); // enable voltage detector with 4.4V threshold
SCU_GENERAL->PASSWD = 0x000000C3UL;
voltageLevelFlag = (uint8_t)RD_REG( SCU_POWER->VDESR, SCU_POWER_VDESR_VDDPPW_Msk, SCU_POWER_VDESR_VDDPPW_Pos);
to try to determine whether the power supply is providing 3.3 or 5 volts. Unfortunately, I always get 0 as the voltageLevelFlag which unfortunately does not tell me if the problem is that the power monitoring was not set up properly or there is some other problem. Based on my readings, I would expect that operating with 3.3 volts would give an output of 2 and operating with 5 volts would give an output of 0.
Are any steps missing because the need to set the password was not in the manual? So it is not entirely clear if other steps may be required.
Thanks,
Jason Show Less
XMC™
I want to use the XMC1400's PRNG in my application but I need to get a unique seed value for every power up.Has anyone found a good way to seed the PR...
Show More
I want to use the XMC1400's PRNG in my application but I need to get a unique seed value for every power up.
Has anyone found a good way to seed the PRNG?
I briefly looked at using the VADC. I'm using the xmc1400 boot kit and the example program using p2.5 connected to a pot works fine.
However trying to change it to use an unconnected channel was daunting. I simply wanted to read the ADC connected to a different pin.
It seems like the peripheral can do all kinds of complex operations, but just a simple read ??? I could not find a good example.
I also considered using the on board temperature sensor, but have not attempted it yet/ Show Less
Has anyone found a good way to seed the PRNG?
I briefly looked at using the VADC. I'm using the xmc1400 boot kit and the example program using p2.5 connected to a pot works fine.
However trying to change it to use an unconnected channel was daunting. I simply wanted to read the ADC connected to a different pin.
It seems like the peripheral can do all kinds of complex operations, but just a simple read ??? I could not find a good example.
I also considered using the on board temperature sensor, but have not attempted it yet/ Show Less
XMC™
Hey guys,I'm trying to read the data coming from the Infineon 3D magnetic sensor in C#/C++.Currently I'm sucesssfully connecting to the COM Port using...
Show More
Hey guys,
I'm trying to read the data coming from the Infineon 3D magnetic sensor in C#/C++.
Currently I'm sucesssfully connecting to the COM Port using the C# SerialPort class but I don't know how to exchange data between the c#-application and the sensor.
Does someone have an example or can guide me into the right direction for the way of achieving this?
Thanks in advance
Tim Show Less
I'm trying to read the data coming from the Infineon 3D magnetic sensor in C#/C++.
Currently I'm sucesssfully connecting to the COM Port using the C# SerialPort class but I don't know how to exchange data between the c#-application and the sensor.
Does someone have an example or can guide me into the right direction for the way of achieving this?
Thanks in advance
Tim Show Less
XMC™
Hi everybody,I will read the AD-data from ADS131A04 like this> see the page 36 of datasheet. texasInstruments it should be 16+4*24 bits, what is 112 ...
Show More
Hi everybody,
I will read the AD-data from ADS131A04 like this> see the page 36 of datasheet. texasInstruments
it should be 16+4*24 bits, what is 112 pulses of SCLK. SCLK should be very quick / min 25 MHz
.
But the CS/ signal have to be only during reading obligatory Low. / without the moving to Hi, what is the effect of use two frames....
I did not find similary application
zbyno Show Less
I will read the AD-data from ADS131A04 like this> see the page 36 of datasheet. texasInstruments
it should be 16+4*24 bits, what is 112 pulses of SCLK. SCLK should be very quick / min 25 MHz
.
But the CS/ signal have to be only during reading obligatory Low. / without the moving to Hi, what is the effect of use two frames....
I did not find similary application
zbyno Show Less
XMC™
Hello,I am new to Infineon Forum, so feel free to correct me if I violate any forum rules 🙂I am using the XMC4800 Relax EtherCAT Kit with DAVE (4.3.2...
Show More
Hello,
I am new to Infineon Forum, so feel free to correct me if I violate any forum rules 🙂
I am using the XMC4800 Relax EtherCAT Kit with DAVE (4.3.2) and Beckhoff SSC.
I was going through the "Getting Started _XMC4800_Relax_EtherCat_APP_Slave" document and could setup the DAVE project.
Even flashing is working, but then the debugging interrupts with the error:
"WARNING: Failed to read memory @ address 0xE884CB0E".
I double checked the debug configurations to make sure the correct microcontroller is selected.
But now I have no more idea what to do.
I've done only the steps as described in the "Getting Started", so I didn't change anything else in the code.
Here the log file:
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
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: XMC4800-F144x2048
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Lite-XMC4200 Rev.1 compiled Jan 14 2016 11:19:27
Hardware: V1.00
S/N: 591046057
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x2000FF3C)
Read 2 bytes @ address 0x00000000 (Data = 0xFF3C)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0xE884CB0E)
R0 = E000ED08, R1 = 00000263, R2 = 3C13D281, R3 = D04F4A05
R4 = 00000536, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 0C000004, R10= 00000000, R11= 00000000
R12= 00000000, R13= AF00B558, MSP= AF00B558, PSP= 00000000
R14(LR) = FFFFFFF1, R15(PC) = E884CB0E
XPSR 01000003, APSR 00000000, EPSR 01000000, IPSR 00000003
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
WARNING: Failed to read memory @ address 0xE884CB0E
Select auto target interface speed (1875 kHz)
Flash breakpoints enabled
WARNING: Failed to read memory @ address 0xE884CB0E
Would be great if someone can help me, thanks! Show Less
I am new to Infineon Forum, so feel free to correct me if I violate any forum rules 🙂
I am using the XMC4800 Relax EtherCAT Kit with DAVE (4.3.2) and Beckhoff SSC.
I was going through the "Getting Started _XMC4800_Relax_EtherCat_APP_Slave" document and could setup the DAVE project.
Even flashing is working, but then the debugging interrupts with the error:
"WARNING: Failed to read memory @ address 0xE884CB0E".
I double checked the debug configurations to make sure the correct microcontroller is selected.
But now I have no more idea what to do.
I've done only the steps as described in the "Getting Started", so I didn't change anything else in the code.
Here the log file:
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
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: XMC4800-F144x2048
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Lite-XMC4200 Rev.1 compiled Jan 14 2016 11:19:27
Hardware: V1.00
S/N: 591046057
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x2000FF3C)
Read 2 bytes @ address 0x00000000 (Data = 0xFF3C)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0xE884CB0E)
R0 = E000ED08, R1 = 00000263, R2 = 3C13D281, R3 = D04F4A05
R4 = 00000536, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 0C000004, R10= 00000000, R11= 00000000
R12= 00000000, R13= AF00B558, MSP= AF00B558, PSP= 00000000
R14(LR) = FFFFFFF1, R15(PC) = E884CB0E
XPSR 01000003, APSR 00000000, EPSR 01000000, IPSR 00000003
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
WARNING: Failed to read memory @ address 0xE884CB0E
Select auto target interface speed (1875 kHz)
Flash breakpoints enabled
WARNING: Failed to read memory @ address 0xE884CB0E
Would be great if someone can help me, thanks! Show Less
XMC™
Hallo Forum,ich habe das Beispiel: xmc4500_relaxkit_lwip_httpserver_netconnheruntergeladen, um eine Ethernet Verbindung zu testen. In einen späteren P...
Show More
Hallo Forum,
ich habe das Beispiel: xmc4500_relaxkit_lwip_httpserver_netconn
heruntergeladen, um eine Ethernet Verbindung zu testen. In einen späteren Projekt möchte ich Variablen übergeben können.
Das Beispiel tut was es soll und zeigt mir bei 192.168.0.10 HTML Code an. Jetzt habe ich einen Button hinzugebaut und dieser soll mir gerne eine LED auf Port 1.0 oder 1.1 toggeln.
Wie kann ich dem µC nun sagen, das dort etwas geschieht. Ich habe ja kein JavaScript für einen callback oder ähnliches.
Die HTML Seite wird wie folgt im Code aufgerufen:
(Zu finden in httpserver/httpserver-netconn.c)
Mit einen "netconn_write" Befehl wird es ausgeführt.
In der main.c gibt es dann einen "osThreadCreate" Befehl der aufgerufen werden kann, aber wie ich Variablen und Parameter verteilen kann, versteh ich nicht ganz.
Kann mir da jemand helfen bitte?
Hello Forum,
I've downloaded an example: xmc4500_relaxkit_lwip_httpserver_netconn
to test the Ethernet Connection. Later I want to be able to declare variables on my µC.
That example works fine. I added a button on this html site. This button should toggle my LED on Port 1.0 or 1.1.
How can I implement this?
The httpserver-netconn.c do it like this
but there is no callback function or similar.
This char will executed by a "netconn_write" order.
There is an "osThreadCreate" order in my main.c, but I have no clue how to solve my Problem.
Any suggestions here?
Thanks in advance. Show Less
ich habe das Beispiel: xmc4500_relaxkit_lwip_httpserver_netconn
heruntergeladen, um eine Ethernet Verbindung zu testen. In einen späteren Projekt möchte ich Variablen übergeben können.
Das Beispiel tut was es soll und zeigt mir bei 192.168.0.10 HTML Code an. Jetzt habe ich einen Button hinzugebaut und dieser soll mir gerne eine LED auf Port 1.0 oder 1.1 toggeln.
Wie kann ich dem µC nun sagen, das dort etwas geschieht. Ich habe ja kein JavaScript für einen callback oder ähnliches.
Die HTML Seite wird wie folgt im Code aufgerufen:
const static char http_html_hdr[] = "HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n";
const static char http_index_html[] = "Congrats! Welcome to our lwIP HTTP server!
This is a small test page, served by httpserver-netconn.";
const static char http_index_html2[] ="";
(Zu finden in httpserver/httpserver-netconn.c)
Mit einen "netconn_write" Befehl wird es ausgeführt.
In der main.c gibt es dann einen "osThreadCreate" Befehl der aufgerufen werden kann, aber wie ich Variablen und Parameter verteilen kann, versteh ich nicht ganz.
Kann mir da jemand helfen bitte?
Hello Forum,
I've downloaded an example: xmc4500_relaxkit_lwip_httpserver_netconn
to test the Ethernet Connection. Later I want to be able to declare variables on my µC.
That example works fine. I added a button on this html site. This button should toggle my LED on Port 1.0 or 1.1.
How can I implement this?
The httpserver-netconn.c do it like this
const static char http_html_hdr[] = "HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n";
const static char http_index_html[] = "Congrats! Welcome to our lwIP HTTP server!
This is a small test page, served by httpserver-netconn.";
const static char http_index_html2[] ="";
but there is no callback function or similar.
This char will executed by a "netconn_write" order.
There is an "osThreadCreate" order in my main.c, but I have no clue how to solve my Problem.
Any suggestions here?
Thanks in advance. Show Less
XMC™
Do i understand it right, that if i want to update my application in the flash using the ASC BSL, i have first have to load a loader software into the...
Show More
Do i understand it right, that if i want to update my application in the flash using the ASC BSL, i have first have to load a loader software into the RAM via ASC BSL. And after that loader software started, the loader software should be able to receive the application data and write it into the flash ?
If yes, does there already exist an example SW for such a loader SW?
It would be quite bad,that i need 2 different binaries to update the application.
And is it also possible on a XMC1200, to have different applications already in the flash like at a XMC4500 to start one of the application (at a certain address) at program start? Show Less
If yes, does there already exist an example SW for such a loader SW?
It would be quite bad,that i need 2 different binaries to update the application.
And is it also possible on a XMC1200, to have different applications already in the flash like at a XMC4500 to start one of the application (at a certain address) at program start? Show Less
XMC™
I was trying to use flash to simulate eeprom and get an example from keil examples.but the examle didn't work.I look into the debug and find out that ...
Show More
I was trying to use flash to simulate eeprom and get an example from keil examples.
but the examle didn't work.
I look into the debug and find out that whenever operate with the flash address ,the program goes into HardFault_Handler.
since i didn't change anything in the examle ,i wonder why it happens and how can i solve it? Show Less
but the examle didn't work.
I look into the debug and find out that whenever operate with the flash address ,the program goes into HardFault_Handler.
since i didn't change anything in the examle ,i wonder why it happens and how can i solve it? Show Less
Trending discussions