XMC™ Forum Discussions
Sort by:
XMC™
Hi all,void XMC_SCU_UnlockProtectedBits(void){ SCU_GENERAL->PASSWD = SCU_GCU_PASSWD_PROT_DISABLE; while(((SCU_GENERAL->PASSWD) & SCU_GENERAL_PASSWD_...
Show More
Hi all,
IMO checking PROTS after unlocking is useless and dangerous: If an interrupt (taking more than 32 MCLK cycles) happens after unlocking, the funcion will wait forever.
Any idea what the author wanted to achieve with the PROTS query?
Oliver Show Less
void XMC_SCU_UnlockProtectedBits(void)
{
SCU_GENERAL->PASSWD = SCU_GCU_PASSWD_PROT_DISABLE;
while(((SCU_GENERAL->PASSWD) & SCU_GENERAL_PASSWD_PROTS_Msk))
{
/* Loop until the lock is removed */
}
}
IMO checking PROTS after unlocking is useless and dangerous: If an interrupt (taking more than 32 MCLK cycles) happens after unlocking, the funcion will wait forever.
Any idea what the author wanted to achieve with the PROTS query?
Oliver Show Less
XMC™
Hi there, I have done a number of project with DAVE 3 (and I am quite pleased with the IDE) and wonder if I should move to DAVE 4. Still I am hesitati...
Show More
Hi there,
I have done a number of project with DAVE 3 (and I am quite pleased with the IDE) and wonder if I should move to DAVE 4. Still I am hesitating a bit, because I am not sure if my projects will seemingless work with DAVE 4.
I do not use the inbuilt apps, though I start new projects as DAVE CE Projects run "Generate Code" and copy as necessary my own .h an.c files to the new project. This works fine.
My questions is, are there any problems or particular things to consider if I replace DAVE3 by DAVE4. Alternatively, is it possible to run both versions in parallel for "just in case" reasons.
thanks for your input, Show Less
I have done a number of project with DAVE 3 (and I am quite pleased with the IDE) and wonder if I should move to DAVE 4. Still I am hesitating a bit, because I am not sure if my projects will seemingless work with DAVE 4.
I do not use the inbuilt apps, though I start new projects as DAVE CE Projects run "Generate Code" and copy as necessary my own .h an.c files to the new project. This works fine.
My questions is, are there any problems or particular things to consider if I replace DAVE3 by DAVE4. Alternatively, is it possible to run both versions in parallel for "just in case" reasons.
thanks for your input, Show Less
XMC™
Hi All - First Post here - hope its the right place...!Trying to import the XMC_2Go_Initial_Start code into DAVE 4 but get this message :-XMC_2Go_Init...
Show More
Hi All - First Post here - hope its the right place...!
Trying to import the XMC_2Go_Initial_Start code into DAVE 4 but get this message :-
XMC_2Go_Initial_Start project has been created with older DAVE version (< 4.0.0).It cannot be imported in current version of DAVE
Do I need DAVE3? Seems a retrograde step....or is there a version of XMC_2Go_Initial_Start compatible with DAVE4....or some workaround?
Thanks Show Less
Trying to import the XMC_2Go_Initial_Start code into DAVE 4 but get this message :-
XMC_2Go_Initial_Start project has been created with older DAVE version (< 4.0.0).It cannot be imported in current version of DAVE
Do I need DAVE3? Seems a retrograde step....or is there a version of XMC_2Go_Initial_Start compatible with DAVE4....or some workaround?
Thanks Show Less
XMC™
Hi there,I am pretty much through with the development of the first application which was done using DAVE and the XMC1100 for arduino evaluation board...
Show More
Hi there,
I am pretty much through with the development of the first application which was done using DAVE and the XMC1100 for arduino evaluation board.
In the next step the controller should go onto its own board and be tested with other hardware.
Preferrably I would like to add a connector for Jlink, so that DAVE can still be used to download the program and for debugging if needed.
Is there any documentation available that tells which Pins to use and other requrements. From the manual it looks like either P0.14/P0.15 or P1.2/P1.3 must be used.
thanks for your advice. Show Less
I am pretty much through with the development of the first application which was done using DAVE and the XMC1100 for arduino evaluation board.
In the next step the controller should go onto its own board and be tested with other hardware.
Preferrably I would like to add a connector for Jlink, so that DAVE can still be used to download the program and for debugging if needed.
Is there any documentation available that tells which Pins to use and other requrements. From the manual it looks like either P0.14/P0.15 or P1.2/P1.3 must be used.
thanks for your advice. Show Less
XMC™
Hi All,I am trying to set up a CCU8 unit in single shot mode being triggered from the ERU unit without using the DAVE 4 apps. I can regenerate interru...
Show More
Hi All,
I am trying to set up a CCU8 unit in single shot mode being triggered from the ERU unit without using the DAVE 4 apps. I can regenerate interrupts an, but I can not get events working. Can someone please help here. I can post my project I currently have, but it does not do anything useful even to start debugging.
Regards
Enigma Show Less
I am trying to set up a CCU8 unit in single shot mode being triggered from the ERU unit without using the DAVE 4 apps. I can regenerate interrupts an, but I can not get events working. Can someone please help here. I can post my project I currently have, but it does not do anything useful even to start debugging.
Regards
Enigma Show Less
XMC™
Good Evening every one!!! I am working with XMC4500 Controller for Clocks, in this I have seen that Low Speed Internal Clock and high seed inter...
Show More
Good Evening every one!!!
I am working with XMC4500 Controller for Clocks, in this I have seen that Low Speed Internal Clock and high seed internal clocks
what are those?
why they given these Two internal clock, Can any one Please explain these.......
Best Regards
Srikanth. Show Less
I am working with XMC4500 Controller for Clocks, in this I have seen that Low Speed Internal Clock and high seed internal clocks
what are those?
why they given these Two internal clock, Can any one Please explain these.......
Best Regards
Srikanth. Show Less
XMC™
Hi All,First off attached is code that works, there are two modes. Mode 0 shows how well the CCU8 works with the documentation. Mode 1 shows that ther...
Show More
Hi All,
First off attached is code that works, there are two modes. Mode 0 shows how well the CCU8 works with the documentation. Mode 1 shows that there must be a mistake in the XMC1300 reference manual.
Setup : XMC1300 boot kit, DAVE 4
Within the code
you can change the value to 0. This allows you to have the code work with SLICE 0 of the CCU8 and a value 1 with slice 2. The code is exactly the same, except that another SLICE is being used. Care has been taken to check that the ooutput and inputs correspond to the correct pins, from the datasheet.
To test - Attach scope to P0.0 and P0.8. Supply digital signal to P0.12. Run the code in mode 0 (TEST_SETUP=0) and mode 1 and see how the documentation must be wrong regarding the output and inputs for the CCU8 slices.
I would appreciate if a Infineon employee could comment on this mistake and just at least share the correct setting needed to correct this.
Regards
Enigma Show Less
First off attached is code that works, there are two modes. Mode 0 shows how well the CCU8 works with the documentation. Mode 1 shows that there must be a mistake in the XMC1300 reference manual.
Setup : XMC1300 boot kit, DAVE 4
Within the code
#define TEST_SETUP 1 // 0 -WORKING , 1 -NON-WORKING
you can change the value to 0. This allows you to have the code work with SLICE 0 of the CCU8 and a value 1 with slice 2. The code is exactly the same, except that another SLICE is being used. Care has been taken to check that the ooutput and inputs correspond to the correct pins, from the datasheet.
To test - Attach scope to P0.0 and P0.8. Supply digital signal to P0.12. Run the code in mode 0 (TEST_SETUP=0) and mode 1 and see how the documentation must be wrong regarding the output and inputs for the CCU8 slices.
I would appreciate if a Infineon employee could comment on this mistake and just at least share the correct setting needed to correct this.
Regards
Enigma Show Less
XMC™
Hi there,I have tried to follow the errata sheet but can't get passed the "Wait until calibration is finished" loop.Here is the code so far:I use the ...
Show More
Hi there,
I have tried to follow the errata sheet but can't get passed the "Wait until calibration is finished" loop.Here is the code so far:
I use the XMC1100 for Arduino Evaluation Board.
//Startup Calibration
switch_on(vadc);
VADC->GLOBCFG=1<<31; //Initiate start up calibration, GLOBCFG.SUCAL = 1
VADC->GLOBCFG|=1<<16; //Disable Post calibration, GLOBCFG.DPCAL0 = 1
*((uint32_t*)0x480340E0) = 0x8000; //clear Offset calibration by writing value 00008000H to register
*((uint32_t*)0x480340E4) = 0x8000; //addresses 0x480340E0 and 0x480340E4.
while ((SHS0->SHSCFG & SHS_SHSCFG_STATE_Msk) != 0); // Wait until calibration is finished
this loop never seems to end. If I skip this loop SHS0->SHSCFG shows 0xffffffff.
Does somebody have a working startup routine?
thanks for your help. Show Less
I have tried to follow the errata sheet but can't get passed the "Wait until calibration is finished" loop.Here is the code so far:
I use the XMC1100 for Arduino Evaluation Board.
//Startup Calibration
switch_on(vadc);
VADC->GLOBCFG=1<<31; //Initiate start up calibration, GLOBCFG.SUCAL = 1
VADC->GLOBCFG|=1<<16; //Disable Post calibration, GLOBCFG.DPCAL0 = 1
*((uint32_t*)0x480340E0) = 0x8000; //clear Offset calibration by writing value 00008000H to register
*((uint32_t*)0x480340E4) = 0x8000; //addresses 0x480340E0 and 0x480340E4.
while ((SHS0->SHSCFG & SHS_SHSCFG_STATE_Msk) != 0); // Wait until calibration is finished
this loop never seems to end. If I skip this loop SHS0->SHSCFG shows 0xffffffff.
Does somebody have a working startup routine?
thanks for your help. Show Less
XMC™
Hi,I am working on qSPI flash(S25FLO32P) available on-board using example code “SPI001_Example2 – qSPI mode”. The code is failing while setting the sp...
Show More
Hi,
I am working on qSPI flash(S25FLO32P) available on-board using example code “SPI001_Example2 – qSPI mode”. The code is failing while setting the spansion flash to write enable “S25FL032P_WriteEnable”. I am not sure what could be the issue, below are my pin configurations. Anybody made it work?
p1.8 - CS Chipselect
p1.10 - CLK ClockOutput
p1.4 - DI - MRST/MTSR1HW
p1.5 - DO - MTSR0HW
p1.3 - WP - MTSR2HW
p1.2 - Hold - MTSR3HW Show Less
I am working on qSPI flash(S25FLO32P) available on-board using example code “SPI001_Example2 – qSPI mode”. The code is failing while setting the spansion flash to write enable “S25FL032P_WriteEnable”. I am not sure what could be the issue, below are my pin configurations. Anybody made it work?
p1.8 - CS Chipselect
p1.10 - CLK ClockOutput
p1.4 - DI - MRST/MTSR1HW
p1.5 - DO - MTSR0HW
p1.3 - WP - MTSR2HW
p1.2 - Hold - MTSR3HW Show Less
XMC™
Hello,I am working on XMC4500(Pin:144) controller. I am trying to use Pin 4.7 for output of Usic2 Channel1 for UART.As this is mapped to HWO0 and henc...
Show More
Hello,
I am working on XMC4500(Pin:144) controller. I am trying to use Pin 4.7 for output of Usic2 Channel1 for UART.
As this is mapped to HWO0 and hence using Dave, following code was generated in Multiplexor.c-
WR_REG(PORT4->HWSEL, PORT4_HWSEL_HW7_Msk, PORT4_HWSEL_HW7_Pos, PORT_HWSEL_HW0);
WR_REG(PORT4->IOCR4, PORT_IOCR_PC3_OE_Msk, PORT_IOCR_PC3_OE_Pos, PORT_IOCR_OE1);
Transmission is still not working and i am getting line level always low. Is there any other setting s(PDL etc.) needs to be done in addition?
Thanks Show Less
I am working on XMC4500(Pin:144) controller. I am trying to use Pin 4.7 for output of Usic2 Channel1 for UART.
As this is mapped to HWO0 and hence using Dave, following code was generated in Multiplexor.c-
WR_REG(PORT4->HWSEL, PORT4_HWSEL_HW7_Msk, PORT4_HWSEL_HW7_Pos, PORT_HWSEL_HW0);
WR_REG(PORT4->IOCR4, PORT_IOCR_PC3_OE_Msk, PORT_IOCR_PC3_OE_Pos, PORT_IOCR_OE1);
Transmission is still not working and i am getting line level always low. Is there any other setting s(PDL etc.) needs to be done in addition?
Thanks Show Less
Trending discussions