DAVE™ Forum Discussions
text.format{('custom.tabs.no.results')}
Sort by:
DAVE™
Hello everyone,I have developped a Dave4 application starting at the address 0xC010000 instead of standard 0xC000000, which works fine when it runs by...
Show More
Hello everyone,
I have developped a Dave4 application starting at the address 0xC010000 instead of standard 0xC000000, which works fine when it runs by ABM0, but I'm not able to fully debug it.
I can start and stop the program by the debugger, but I cannot see the code or set any breakpoint. How could I fix it?
Matteo Show Less
I have developped a Dave4 application starting at the address 0xC010000 instead of standard 0xC000000, which works fine when it runs by ABM0, but I'm not able to fully debug it.
I can start and stop the program by the debugger, but I cannot see the code or set any breakpoint. How could I fix it?
Matteo Show Less
DAVE™
Is there a way to calculate the checksum or CRC of an image and embed the value into the image so it can be checked by a bootloader when it is downloa...
Show More
Is there a way to calculate the checksum or CRC of an image and embed the value into the image so it can be checked by a bootloader when it is downloaded and each time it is executed? I've done this previously with IAR but I cannot find any reference to doing this with DAVE 4.
Show Less
DAVE™
Hello everyone,I'm trying to setup a symmetric PWM with the CCU4 Module with DAVE4.3 for a XMC4700.I've been looking how to enable the transfer of the...
Show More
Hello everyone,
I'm trying to setup a symmetric PWM with the CCU4 Module with DAVE4.3 for a XMC4700.
I've been looking how to enable the transfer of the shadow registers only at the 'one-match' event instead of twice per period.
I noticed that the XMCLib function "XMC_CCU4_SLICE_SetShadowTransferMode()" is only available for the XMC1400 series.
Is it possible to configure the CCU4 to work in symmetric mode so that the compare match value is updated only at the beginning of the PWM period (one-match)?
I know that this can be done with the CCU8, but I wanted to use the CCU4 App.
Regards,
Sebastian Show Less
I'm trying to setup a symmetric PWM with the CCU4 Module with DAVE4.3 for a XMC4700.
I've been looking how to enable the transfer of the shadow registers only at the 'one-match' event instead of twice per period.
I noticed that the XMCLib function "XMC_CCU4_SLICE_SetShadowTransferMode()" is only available for the XMC1400 series.
Is it possible to configure the CCU4 to work in symmetric mode so that the compare match value is updated only at the beginning of the PWM period (one-match)?
I know that this can be done with the CCU8, but I wanted to use the CCU4 App.
Regards,
Sebastian Show Less
DAVE™
Hello everyone, I'm trying to setup a GPDMA transfer from the result register RESM of the DSD Module into a predefined array.I configured the DMA_CH a...
Show More
Hello everyone,
I'm trying to setup a GPDMA transfer from the result register RESM of the DSD Module into a predefined array.
I configured the DMA_CH as follows
The transfer is triggered by the DS_ADC Channel_A main filter result event.
I would like to update the destination address after 20 results have been written in the array, so that I always have the last 20 results of the DSD available.
I'm doing this in a interrupt with a frequency 20 times slower than the frequency of the DSD results.
Unfortunately, every time I update the destination Address, the DMA channel stops working.
Does anyone has any idea why is this happening and how can I get it to work?
I would appreciate your thoughts.
Regards,
Sebastian Show Less
I'm trying to setup a GPDMA transfer from the result register RESM of the DSD Module into a predefined array.
I configured the DMA_CH as follows
The transfer is triggered by the DS_ADC Channel_A main filter result event.
I would like to update the destination address after 20 results have been written in the array, so that I always have the last 20 results of the DSD available.
I'm doing this in a interrupt with a frequency 20 times slower than the frequency of the DSD results.
// Globals
uint16_t rx_buffer[20];
uint32_t *rx_ptr;
uint32_t *tx_ptr;
uint8_t block_count=0;
int main(void)
{
...
tx_ptr = (uint32_t*)&(DS_ADC_DEMOD_0_CHANNEL_A->RESM);
rx_ptr = (uint32_t*)&rx_buffer[0];
...
DS_ADC_DEMOD_Start(&DS_ADC_DEMOD_0);
DMA_CH_Enable(&DMA_CH_0);
...
}
// interrupt handler
void user_IRQHandler_dma(void)
{
DMA_CH_SetDestinationAddress(&DMA_CH_0, (uint32_t)&rx_buffer[0]);
DMA_CH_Reload(&DMA_CH_0);
DMA_CH_Enable(&DMA_CH_0);
}
Unfortunately, every time I update the destination Address, the DMA channel stops working.
Does anyone has any idea why is this happening and how can I get it to work?
I would appreciate your thoughts.
Regards,
Sebastian Show Less
DAVE™
Is there any reason why the DAVE App 'MOTOR_LIB' is available for:- XMC4100- XMC4200- XMC4400- XMC4500but not for:- XMC4300- XMC4700- XMC4800MOTOR_LIB...
Show More
Is there any reason why the DAVE App 'MOTOR_LIB' is available for:
- XMC4100
- XMC4200
- XMC4400
- XMC4500
but not for:
- XMC4300
- XMC4700
- XMC4800
MOTOR_LIB == [4.0.6]
DAVE == [4.3.2]
Seems to me that the devices should be compatible...
Is it feasible to manually modify the corresponding 'App_Manifest_Info.xml' accordingly ? Show Less
- XMC4100
- XMC4200
- XMC4400
- XMC4500
but not for:
- XMC4300
- XMC4700
- XMC4800
MOTOR_LIB == [4.0.6]
DAVE == [4.3.2]
Seems to me that the devices should be compatible...
Is it feasible to manually modify the corresponding 'App_Manifest_Info.xml' accordingly ? Show Less
DAVE™
I am using Dave 4 and a custom board based on the XMC4500.F100K. When adding the USB VCOM App, DAVE CE adds USBD_VCOM and USBD. Do I need to change an...
Show More
I am using Dave 4 and a custom board based on the XMC4500.F100K. When adding the USB VCOM App, DAVE CE adds USBD_VCOM and USBD. Do I need to change anything on these blocks Like Transmission MOde is set to DMA and MAx EPs is 7?
For USB CLock, on the Clock_XMC4 it shows:
Requested USB PLL frequecy : 192 MHZ is this correct?
Also, Clock Selection Settings:
Enable USB/SDMMC ClocK:
Clock Source: USB PLL Clock
CLock divider: 4 Actual frequency 48 Mhz Is this correct?
In the main.c
Which functions should I need to call?
Can somebody provide at least the basic functionality?
The Application note uses USB_Glue which if I add to my project generate a bunch of duplicate errors during compilation . Show Less
For USB CLock, on the Clock_XMC4 it shows:
Requested USB PLL frequecy : 192 MHZ is this correct?
Also, Clock Selection Settings:
Enable USB/SDMMC ClocK:
Clock Source: USB PLL Clock
CLock divider: 4 Actual frequency 48 Mhz Is this correct?
In the main.c
Which functions should I need to call?
Can somebody provide at least the basic functionality?
The Application note uses USB_Glue which if I add to my project generate a bunch of duplicate errors during compilation . Show Less
DAVE™
Hi,Is there a way to export the pin assignments to a text or csv file directly from the DAVE tool? I know there is a separate pinout tool but we have ...
Show More
Hi,
Is there a way to export the pin assignments to a text or csv file directly from the DAVE tool? I know there is a separate pinout tool but we have not used that. I was hoping to find an "Export" button on the Manual Pin Allocator dialog window as that window has all the information I was looking for. Other than sending screen shots, I was hoping to send something a bit more robust to our board designer.
Thanks,
Paul Show Less
Is there a way to export the pin assignments to a text or csv file directly from the DAVE tool? I know there is a separate pinout tool but we have not used that. I was hoping to find an "Export" button on the Manual Pin Allocator dialog window as that window has all the information I was looking for. Other than sending screen shots, I was hoping to send something a bit more robust to our board designer.
Thanks,
Paul Show Less
DAVE™
Hi,My project spec calls for dynamic usage monitoring and reporting (0 to 100%), of each comms line.I'm fine for my Serial, CAN, and Ethernet lines, I...
Show More
Hi,
My project spec calls for dynamic usage monitoring and reporting (0 to 100%), of each comms line.
I'm fine for my Serial, CAN, and Ethernet lines, I've got the code done.
But I'm stuck on EtherCAT, in terms of where to insert the necessary 'accumulator' code, within the EtherCAT SSC (Slave Stack Code).
I'm happy to count bytes, or frames, both are fine.
I'm happy to do so myself, or use some built-in counters if they exist, or use a hybrid approach.
But I do need to count all incoming and outgoing activity, regardless of which EtherCAT feature, is being used.
Can anyone direct me to the relevant places, within the SSC code ?
I've been trawling through it all morning, also the Infineon XMC43 manual, and the Beckhoff Application Note ET9300.
Nothing on the forum or google.
Best regards,
David King Show Less
My project spec calls for dynamic usage monitoring and reporting (0 to 100%), of each comms line.
I'm fine for my Serial, CAN, and Ethernet lines, I've got the code done.
But I'm stuck on EtherCAT, in terms of where to insert the necessary 'accumulator' code, within the EtherCAT SSC (Slave Stack Code).
I'm happy to count bytes, or frames, both are fine.
I'm happy to do so myself, or use some built-in counters if they exist, or use a hybrid approach.
But I do need to count all incoming and outgoing activity, regardless of which EtherCAT feature, is being used.
Can anyone direct me to the relevant places, within the SSC code ?
I've been trawling through it all morning, also the Infineon XMC43 manual, and the Beckhoff Application Note ET9300.
Nothing on the forum or google.
Best regards,
David King Show Less
DAVE™
Hi, I am working on a Bootloader(XMC4700/DAVE432) that flashes the internal flash from SD-Card.With small .hex images all works fine, but if the image...
Show More
Hi, I am working on a Bootloader(XMC4700/DAVE432) that flashes the internal flash from SD-Card.
With small .hex images all works fine, but if the image gets bigger (>600k)
then the FatFs Function f_write() returns error code 1 (= FR_DISK_ERR).
It seems that the app's "FATFS" or "SDMMC_BLOCK" cannot handle large files.
Do you have any idea what might be causing this problem? Do you know of workarounds?
best regards
Hans Show Less
With small .hex images all works fine, but if the image gets bigger (>600k)
then the FatFs Function f_write() returns error code 1 (= FR_DISK_ERR).
It seems that the app's "FATFS" or "SDMMC_BLOCK" cannot handle large files.
Do you have any idea what might be causing this problem? Do you know of workarounds?
best regards
Hans Show Less
DAVE™
Hallo Everybody,I discovered a strange behavior in the DAVE_Init function. It seems that sometimes the sequence in which the individual APP instances ...
Show More
Hallo Everybody,
I discovered a strange behavior in the DAVE_Init function. It seems that sometimes the sequence in which the individual APP instances get initialized plays a role if the startup succeeds or not.
I my specific case I had several APPs in place (ADCs, Timer, DACs, etc.) Finally, I added a FATFS APP instance to store data. This caused the DAVE_Init() function to crash (the XMC did not ever boot properly - no error message)
After changing the sequence of initialization within the Dave\Generated\DAVE.c (putting the FATFS APP first) everything worked just fine. Unfortunately, you must change the sequence every time you press the auto code bottom.
Is there any way to influence initialization sequence permanently?
Thanks in advance! Show Less
I discovered a strange behavior in the DAVE_Init function. It seems that sometimes the sequence in which the individual APP instances get initialized plays a role if the startup succeeds or not.
I my specific case I had several APPs in place (ADCs, Timer, DACs, etc.) Finally, I added a FATFS APP instance to store data. This caused the DAVE_Init() function to crash (the XMC did not ever boot properly - no error message)
After changing the sequence of initialization within the Dave\Generated\DAVE.c (putting the FATFS APP first) everything worked just fine. Unfortunately, you must change the sequence every time you press the auto code bottom.
Is there any way to influence initialization sequence permanently?
Thanks in advance! Show Less