DAVE™ Forum Discussions
text.format{('custom.tabs.no.results')}
There's a bug in the DAVE-generated EEPROM emulation driver for the XMC4800, working with DAVE v4.5 and the E_EEPROM_XMC4 App v4.0.20.
In Dave/Generated/E_EEPROM_XMC4/e_eeprom_xmc4.c, Line 309, I get
/* Read a set of bytes from RAM Buffer */
void E_EEPROM_XMC4_ReadArray(const uint16_t offset_address, uint8_t *const data, const uint16_t length)
{
uint16_t i;
uint8_t *address_ptr;
XMC_ASSERT("E_EEPROM_XMC4_ReadArray: Wrong offset address", (offset_address < E_EEPROM_XMC4_DATA_BLOCK_SIZE))
XMC_ASSERT("E_EEPROM_XMC4_ReadArray: Wrong length",
((offset_address + length) < E_EEPROM_XMC4_DATA_BLOCK_SIZE))
The second assert will fail If I try to read the full section, calling this function with offset_address = 0 and length = E_EEPROM_XMC4_DATA_BLOCK_SIZE.
This is exactly what the EtherCAT Slave Stack code from ECAT_SSC App v4.0.30 does (Dave/Generated/ECAT_SSC/ecat_ssc.c:122) when running any of the EtherCAT examples from the downloads portal.
Proposed fix: Subtract 1 from length in the assert to correctly check the address of the last byte read from the EEPROM emulation.
Show LessHi, I`m new in DAVE and XMC, just was working with Atmel Studio and AVR before. Could you please help me to figure out why my MultiCAN and Interrupt doesnt work ? I set it with typical settings but nothing happened when I`m trying to recieve a CAN ID 568 data to the node0. If I transmitt a data to node1, the Transmitt function says CAN is BUSY (in debugger mode). At the end it will be the CAN filter for my car navigation.
Thank you !
Show Less
Hello.
How can i solve the problem with the SPI-MASTER App with a XMC4700 microcontroller.
I use the SPI_MASTER App and select "Enable advanved pin configuration" to set up the port pin driver strange on USIC2 Channel 0.
I want to use: Strong Driver Sharp Edge on MOSI and SCLK, but i can only select:
- Dont care
- Weak DRiver
- Medium Driver
- Strong Driver Soft Edge
- Strong Driver Slow Edge
If i want to select: Strong Driver Shart Edge, Dave4 shows a error:
DAVE is not able to grant your last hardware resources request.
That's not possible, because its only a available setting of a port pin, NOT a NEW hardware resource!
Look for example at xmc4_gpio.h:
#define XMC_GPIO_CHECK_OUTPUT_STRENGTH(strength) ((strength == XMC_GPIO_OUTPUT_STRENGTH_STRONG_SHARP_EDGE) ||\
(strength == XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE) ||\
(strength == XMC_GPIO_OUTPUT_STRENGTH_STRONG_SOFT_EDGE) ||\
(strength == XMC_GPIO_OUTPUT_STRENGTH_STRONG_SLOW_EDGE) ||\
(strength == XMC_GPIO_OUTPUT_STRENGTH_MEDIUM) ||\
(strength == XMC_GPIO_OUTPUT_STRENGTH_WEAK))
How can is solve this bug?
I can edit the created spi_master_conf.c and write
.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_SHARP_EDGE
to the pin config, but with the next: DAVE->Generat Code , i lost my settings.
Please help.
Show Less
I need two external interrupt in my project and want to use BUTTON1 (P1.14) and BUTTON2 (P1.15) on xmc4500 Relax Kit. I added PIN_INTERRUPT App to Dave CE 4 project. When I try to Manual Pin Allocator for it I see only BUTTON2 in the list. There is not BUTTON1. I checked user manual of xmc4500 and both pin (P1.14 and P1.15) has same Pad Type.
Thank you for your help.
Best regards,
Adem
Show Less
I have a SAK c167cs-32fm and use Memtool to read 256KB of flash program. However, I can not access eeprom flash. One thing I want to make sure about is that Memtool can read SAK micro's too, because in the target list there are only part numbers with SAB prefix and a suffix saying which STEP it is. Mine has no STEP and it is SAK. Can I still use Memtool 3?
I am very new to infineon MCU's and this one seems rather old. Sorry if my question sounds too simple.
Thank you. Show Less
I would like to change the MCU type of the DAVE project (created or imported).
If I open the project properties:
Menu->Project->Properties->C/C++ Build->MCU selection Page
all fields are deactivated and I can't change anything.
What is a problem or how can I solve it?
Thanks. Show Less
I cannot find any options inside DAVE to create a SDK project. Any help is appreciated. Show Less
I am using Dave 4, J-Link v610i to program the XMC4500 - relax lite kit. I tried to run the demo easystart program but the debugger does not work properly.
Even if I set breakpoint in the main.c the debugger does not stop at the breakpoint and it gets terminated. Please help me to solve the issue.
Regrads
Suraj Show Less
A XML file describing the folder structure of the generated code is all what MDK-ARM needs to be able to import the generated libraries.
The following procedure helps generate the XML file.
[#1] Modify DAVE CE Preferences
- Goto “Windows -> Preferences -> DAVE -> DAVE CE Preferences -> Resource Manager Settings”
- In the Resource Manager Settings grouping, select “Generate gpdsc file to import DAVE generated code in Keil MDK v5.10 or higher”
[#2] Generate the gpdsc file
- Click on the “Generate Code” icon to generate the code as well as the gpdsc file.
[#3] Launching the uVision Project
- All you have to do now is to double click on the gpdsc file. This launches uVision which creates a uVision project. Any change that you make now to the generated files in DAVE will automatically reflect in uVision project. Show Less
The Problem is that I can insert like in the screenshot.
the button "next" is schwitching from gray to a black text (the button is enabled)
I can press the button and nothing is Happening.
I don't get the next page "Microcontroller Selection Page"
I get this page only on my pc ouside of the virtual machine. I installed the same Dave Version on my normal pc.
I'm using all the time my virtual machine to develop my stuff
hopefully somebody can give me an Fastback.
Only in my virtual machine I'm using my svn system
thanks a lot Show Less