XMC™ Forum Discussions
XMC™
Hi,I want to use the trigger in the DSM App to integrate over a few values to eliminate noise.When I activate that function, DAVE adds a Event_Detecto...
Show More
Hi,
I want to use the trigger in the DSM App to integrate over a few values to eliminate noise.
When I activate that function, DAVE adds a Event_Detector and Event_Generator.
How can I use a Timer App to trigger instead?
Thanks!
Regards,
Raphael Show Less
I want to use the trigger in the DSM App to integrate over a few values to eliminate noise.
When I activate that function, DAVE adds a Event_Detector and Event_Generator.
How can I use a Timer App to trigger instead?
Thanks!
Regards,
Raphael Show Less
XMC™
Hello!First of all, sorry if I post in the wrong place, I didn't find an specific place for TLE Microcontrollers. I am facing a Problem, and maybe you...
Show More
Hello!
First of all, sorry if I post in the wrong place, I didn't find an specific place for TLE Microcontrollers. I am facing a Problem, and maybe you could help me.
I try to use LIN Communication, but it doesn't work correctly. I configured everything and I get to Interrupt when I receive Information via LIN. For understanding the different steps of the data I receive, I have to work with Flags (EOFSYN and BRK), but These Flags are never set. When I read them, they are always 0.
SYNEN Bit is also enabled. Where could be the Problem? If it is more complicated than a possible easy mistake, and you need the code I wrote, I will kindly update with it!.
UPDATE: The Problem is solved. The cause was a bad configuration of BGSEL for Synch detection!. But I have a question. When Flags SYNCH and BRK are set, it means that the next Byte is the id, but when I read it at SBUF Returns me 0. What could it be?
Thank you.
Kind Regards.
Mjag Show Less
First of all, sorry if I post in the wrong place, I didn't find an specific place for TLE Microcontrollers. I am facing a Problem, and maybe you could help me.
I try to use LIN Communication, but it doesn't work correctly. I configured everything and I get to Interrupt when I receive Information via LIN. For understanding the different steps of the data I receive, I have to work with Flags (EOFSYN and BRK), but These Flags are never set. When I read them, they are always 0.
SYNEN Bit is also enabled. Where could be the Problem? If it is more complicated than a possible easy mistake, and you need the code I wrote, I will kindly update with it!.
UPDATE: The Problem is solved. The cause was a bad configuration of BGSEL for Synch detection!. But I have a question. When Flags SYNCH and BRK are set, it means that the next Byte is the id, but when I read it at SBUF Returns me 0. What could it be?
Thank you.
Kind Regards.
Mjag Show Less
XMC™
I have 6 CAP Apps in Dave3 at my XMC4500, 4 of them are at CCU43 and 2 of them at CCU42. I am just using the period capture interrupt. All of them w...
Show More
I have 6 CAP Apps in Dave3 at my XMC4500, 4 of them are at CCU43 and 2 of them at CCU42. I am just using the period capture interrupt.
All of them works fine, except, that the CCU42-Slice 2 at generating the interrupt will generate an interrupt on CCU42_1_IRQHandler (IRQ_Hdlr_53) and CCU42_0_IRQHandler. (IRQ_Hdlr_52)
The another CAP at CCU42 is using Slice 3 and generates the interrupt at CCU42_0_IRQHandler (IRQ_Hdlr_52).
If i dont start the NVIC on NodeID 53 (for Slice 2), i will still receive the interrupt of Slice 2 at NodeID 52.
If i dont start the NodeID 52,but will start NodeID 53, i will receive the Slice 2 interrupt only on Node 53.
Starting both NVICs, i will receive interrupts from Slice 2 on both interrupt handler.
Is this a bug from the XMC4500?
Is there any solution, that i will not receive 2 different interrupts form 1 CAP ? Show Less
All of them works fine, except, that the CCU42-Slice 2 at generating the interrupt will generate an interrupt on CCU42_1_IRQHandler (IRQ_Hdlr_53) and CCU42_0_IRQHandler. (IRQ_Hdlr_52)
The another CAP at CCU42 is using Slice 3 and generates the interrupt at CCU42_0_IRQHandler (IRQ_Hdlr_52).
If i dont start the NVIC on NodeID 53 (for Slice 2), i will still receive the interrupt of Slice 2 at NodeID 52.
If i dont start the NodeID 52,but will start NodeID 53, i will receive the Slice 2 interrupt only on Node 53.
Starting both NVICs, i will receive interrupts from Slice 2 on both interrupt handler.
Is this a bug from the XMC4500?
Is there any solution, that i will not receive 2 different interrupts form 1 CAP ? Show Less
XMC™
Hi,I have bought the XMC4800 relax kit and I get the RAMCode never stops error when I try to erase the chip. Erasing XMC4800-2048 via SWD-Interface@10...
Show More
Hi,
I have bought the XMC4800 relax kit and I get the RAMCode never stops error when I try to erase the chip.
I was able to test the XMC4800_Relax_EtherCat_APP_Slave_SSC example with TwinCAT
Thank you Show Less
I have bought the XMC4800 relax kit and I get the RAMCode never stops error when I try to erase the chip.
Erasing XMC4800-2048 via SWD-Interface@1000kHz
Erase Thread started.
Could not save file [Sample_DebugFlash.jlink]
Access is denied!
Device "XMC4800-2048" selected.
Performing XMC4500 connection sequence.
AP-IDR: 0x24770011, Type: AHB-AP
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl 0 @ E00FF000
ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
Debugger initialized successfully.
Performing XMC4500 reset
Timeout while erasing chip, RAMCode did not respond in time
J-Link: Flash download: Total time needed: 10.411s (Prepare: 0.053s, Compare: 0.000s, Erase: 10.247s, Program: 0.000s, Verify: 0.000s, Restore: 0.110s)
Failed to restore target. RAMCode never stops
Erase Thread exited
Erase failed.
I was able to test the XMC4800_Relax_EtherCat_APP_Slave_SSC example with TwinCAT
Thank you Show Less
XMC™
Hi,I am trying to read two analog channels using the ADC_Measurements APP in my H-Bridge 2 Go kit and send it via UART to my PC to debug the data. How...
Show More
Hi,
I am trying to read two analog channels using the ADC_Measurements APP in my H-Bridge 2 Go kit and send it via UART to my PC to debug the data. However, the ADC App seems to throw the following error when I build the project
- "GLOBAL_ADC requires XMC Peripheral Library v2.0.0 or higher"
I am using Dave Version: 4.3.2. The XMC library I am using seems to be v2.0.0 or higher as the the same check is performed in the UART app and this performs just fine . The error pops up only when I add the ADC app.
Is there an example code to read Analog channels without using Apps?
Thanks!
Rinya Show Less
I am trying to read two analog channels using the ADC_Measurements APP in my H-Bridge 2 Go kit and send it via UART to my PC to debug the data. However, the ADC App seems to throw the following error when I build the project
- "GLOBAL_ADC requires XMC Peripheral Library v2.0.0 or higher"
I am using Dave Version: 4.3.2. The XMC library I am using seems to be v2.0.0 or higher as the the same check is performed in the UART app and this performs just fine . The error pops up only when I add the ADC app.
Is there an example code to read Analog channels without using Apps?
Thanks!
Rinya Show Less
XMC™
Hello, I am using DAVE 4.3.2 and trying to use IO001 APP to just turn on the LED or IO port. But i cannot find the DAVE APP neither software control I...
Show More
Hello, I am using DAVE 4.3.2 and trying to use IO001 APP to just turn on the LED or IO port. But i cannot find the DAVE APP neither software control IO category in the DAVE APP library. How can I get it included ?
Show Less
XMC™
Hello,i want to sent 3 messages via SPI without reception.After that i want to send messages and use the recepted Data.My idea is, to implement the SP...
Show More
Hello,
i want to sent 3 messages via SPI without reception.
After that i want to send messages and use the recepted Data.
My idea is, to implement the SPI without Fifo receive interrupt first.
After that i Flush the RX-FIFO an activate the interrupt.
Now the problem:
Is there any flag, which indicates the running of the SPI transmit?
I have no interrupt to reset the standard events.
After the RX-flush, it is possible that the SPI get new Data, which are just shifting out.
Best regards Show Less
i want to sent 3 messages via SPI without reception.
After that i want to send messages and use the recepted Data.
My idea is, to implement the SPI without Fifo receive interrupt first.
After that i Flush the RX-FIFO an activate the interrupt.
Now the problem:
Is there any flag, which indicates the running of the SPI transmit?
I have no interrupt to reset the standard events.
After the RX-flush, it is possible that the SPI get new Data, which are just shifting out.
Best regards Show Less
XMC™
Hi all,I am now using Dave 4.2.3 with 64Bit and Distance2Go development board based on the XMC4200. I try to use sample code from "Dave Help --> USBD_...
Show More
Hi all,
I am now using Dave 4.2.3 with 64Bit and Distance2Go development board based on the XMC4200. I try to use sample code from "Dave Help --> USBD_VCOM" to enable the USB port and send the data out from USB.
For the current project, I've created the "USBD_VCOM" APP.
However, I meet the problem. When I execute the sample code step by step, and then enter into "while(!USBD_VCOM_IsEnumDone()); , it goes under the infinite loop condition and no longer can not trace the code..
On the other hand, when I connect the debug port to PC and also connect main port to the same/other PC, only debug port can be recognized. I am not sure if PC could recognize two ports from development board at the same time.
Can anybody share some advices that where the problem is or what have I to do to over USB to get the basic functionality??
Thanks for you helps,
Paul Show Less
I am now using Dave 4.2.3 with 64Bit and Distance2Go development board based on the XMC4200. I try to use sample code from "Dave Help --> USBD_VCOM" to enable the USB port and send the data out from USB.
For the current project, I've created the "USBD_VCOM" APP.
However, I meet the problem. When I execute the sample code step by step, and then enter into "while(!USBD_VCOM_IsEnumDone()); , it goes under the infinite loop condition and no longer can not trace the code..
On the other hand, when I connect the debug port to PC and also connect main port to the same/other PC, only debug port can be recognized. I am not sure if PC could recognize two ports from development board at the same time.
Can anybody share some advices that where the problem is or what have I to do to over USB to get the basic functionality??
Thanks for you helps,
Paul Show Less
XMC™
Hi.I've problems to remove a installed global read an Sector wrrite protection.What is the correct sequence to remove the protection?If i install only...
Show More
Hi.
I've problems to remove a installed global read an Sector wrrite protection.
What is the correct sequence to remove the protection?
If i install only a write protection (for example on S2) with:
The protection is there.
If i try to remove the protection with:
i get a PROER in FLASH0->FSR.
If i try to remove the protection with:
the protection war removed. That's easy if you know, that you have to disable the write protection first, and than remove the protection.
But how to do this, if i have both protections activ (Read AND Write)?
If i try to disable the write protection, it works
If i than try erase the UCB, i get a PROER.
If i try to disable the read protection, i get a PROER. After this i can't erase the UCB.
Do you have a idea why XMC_FLASH_lDisableSectorReadProtectionCommand isn't working?
The Password's are correct! I've checked the password's with Memtool BSL/ASC: Memtool can disable the protection!
It does not matter if i first try to disable Read- and than Write-Protection or in the other way around.
How can i disable and remove the combined read/write protection?
??? Show Less
I've problems to remove a installed global read an Sector wrrite protection.
What is the correct sequence to remove the protection?
If i install only a write protection (for example on S2) with:
XMC_FLASH_InstallProtection( 0, 0x0004, (uint32_t) PW1 , (uint32_t) PW2 ); // Write protect on sector 2.
// all Parameter are direct (not as pointer)
XMC_FLASH_ConfirmProtection(0);
The protection is there.
If i try to remove the protection with:
XMC_FLASH_EraseUCB( (uint32_t*) XMC_FLASH_UNCACHED_BASE );
i get a PROER in FLASH0->FSR.
If i try to remove the protection with:
XMC_FLASH_lDisableSectorWriteProtectionCommand(0 , (uint32_t) PW1 , (uint32_t) PW2 );
XMC_FLASH_EraseUCB( (uint32_t*) XMC_FLASH_UNCACHED_BASE );
the protection war removed. That's easy if you know, that you have to disable the write protection first, and than remove the protection.
But how to do this, if i have both protections activ (Read AND Write)?
If i try to disable the write protection, it works
If i than try erase the UCB, i get a PROER.
If i try to disable the read protection, i get a PROER. After this i can't erase the UCB.
XMC_FLASH_lDisableSectorWriteProtectionCommand(0 , (uint32_t) PW1 , (uint32_t) PW2 ); // FSR: 0x02250000 -> ok
XMC_FLASH_lDisableSectorReadProtectionCommand( (uint32_t) PW1, (uint32_t) PW2); //FSR: 0x02250800 -> Error: PROER set
XMC_FLASH_EraseUCB( (uint32_t*) XMC_FLASH_UNCACHED_BASE ); // not working....
Do you have a idea why XMC_FLASH_lDisableSectorReadProtectionCommand isn't working?
The Password's are correct! I've checked the password's with Memtool BSL/ASC: Memtool can disable the protection!
It does not matter if i first try to disable Read- and than Write-Protection or in the other way around.
How can i disable and remove the combined read/write protection?
??? Show Less
XMC™
Hello everybody,I'm trying to receive data with the Ethernet-Interface and I'm searching for an example code becauce I don't really know which methods...
Show More
Hello everybody,
I'm trying to receive data with the Ethernet-Interface and I'm searching for an example code becauce I don't really know which methods I should use. Does anyone know one? Because the example on the Infineon-page didn't helped me out.
Best regards
Marc Show Less
I'm trying to receive data with the Ethernet-Interface and I'm searching for an example code becauce I don't really know which methods I should use. Does anyone know one? Because the example on the Infineon-page didn't helped me out.
Best regards
Marc Show Less