XMC™ Forum Discussions
XMC™
Hello,First 2 bytes of data are fixed to 0x00 when receive from USIC SSC mode with following connection. Memory <--- DMA <--- USIC/SSC <--- the data f...
Show More
Hello,
First 2 bytes of data are fixed to 0x00 when receive from USIC SSC mode with following connection.
Memory <--- DMA <--- USIC/SSC <--- the data from slave device
Detail information will be posted soon.
Thank you. Show Less
First 2 bytes of data are fixed to 0x00 when receive from USIC SSC mode with following connection.
Memory <--- DMA <--- USIC/SSC <--- the data from slave device
Detail information will be posted soon.
Thank you. Show Less
XMC™
Hello,I prepared a custom board with XMC4200. I am trying to program the device with XMC-Link 8-pin connector on SWD (TCK,TMS,TX,RX). With XMC Flasher...
Show More
Hello,
I prepared a custom board with XMC4200. I am trying to program the device with XMC-Link 8-pin connector on SWD (TCK,TMS,TX,RX). With XMC Flasher tool programming and verification ok, but nothing comes to the digital IOs, PWMs... etc. Also can't see anything running with micrium.
Maybe the device is in sleep mode? Ports pin is pulled up 3.3V with 22k, rtc xtal1-2 & hib_io_0 pins are open.
Any ideas? Show Less
I prepared a custom board with XMC4200. I am trying to program the device with XMC-Link 8-pin connector on SWD (TCK,TMS,TX,RX). With XMC Flasher tool programming and verification ok, but nothing comes to the digital IOs, PWMs... etc. Also can't see anything running with micrium.
Maybe the device is in sleep mode? Ports pin is pulled up 3.3V with 22k, rtc xtal1-2 & hib_io_0 pins are open.
Any ideas? Show Less
XMC™
Hello,Whether anybody could to describe the details of generation of the F_ECATPHY signal. You could give counsel at option of quartz resonator for us...
Show More
Hello,
Whether anybody could to describe the details of generation of the F_ECATPHY signal. You could give counsel at option of quartz resonator for use in ECAT applications for accuracy and stability.
Thank you
Gene Show Less
Whether anybody could to describe the details of generation of the F_ECATPHY signal. You could give counsel at option of quartz resonator for use in ECAT applications for accuracy and stability.
Thank you
Gene Show Less
XMC™
Hello All,I am trying to create a custom made board using a XMC1100 chip and ESP32. The XMC1100 boot kit has a XMC4200 as USB-Serial bridge and Hardwa...
Show More
Hello All,
I am trying to create a custom made board using a XMC1100 chip and ESP32. The XMC1100 boot kit has a XMC4200 as USB-Serial bridge and Hardware debugger. I want to remove that. My idea has been to put the bootloader code inside flash of XMC1100 itself and not use 4200 for that. I am looking out for the viability of this idea and how to do that! Also I am pretty convinced that there's more inside of 4200 than just a bootloader code like linker scripts and startup codes etc.
Any help would be appreciated , Thanks! Show Less
I am trying to create a custom made board using a XMC1100 chip and ESP32. The XMC1100 boot kit has a XMC4200 as USB-Serial bridge and Hardware debugger. I want to remove that. My idea has been to put the bootloader code inside flash of XMC1100 itself and not use 4200 for that. I am looking out for the viability of this idea and how to do that! Also I am pretty convinced that there's more inside of 4200 than just a bootloader code like linker scripts and startup codes etc.
Any help would be appreciated , Thanks! Show Less
XMC™
The below code works as a charm for U1C1, but when rewritten for U2C1, as posted below, it stops working.Slave Select and the CLK is still running and...
Show More
The below code works as a charm for U1C1, but when rewritten for U2C1, as posted below, it stops working.
Slave Select and the CLK is still running and working fine, but there is no data coming out!
What am I doing wrong ? Is U2C1 not supposed to work for SPI ?
And also do I need to configure the mode of a data-pin like:
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_7_HWCTRL_U2C1_DOUT0);
When XMC_GPIO_SetHardwareControl(master_data_pin, 7, XMC_GPIO_HWCTRL_PERIPHERAL1); is called later on ?
Thankful for any help!
Processor is XMC4500F144 and pinout is like:
P4.2 U2C1_SCLKOUT ALT4
P4.3 U2C1_SEL02 ALT1
P4.4 U2C1_DOUT3 / HWIN3 HWO0 / HWI0
P4.5 U2C1_DOUT2 / HWIN2 HWO0 / HWI0
P4.6 U2C1_DOUT1 / HWIN1 HWO0 / HWI0
P4.7 U2C1_DOUT0 / HWIN0 HWO0 / HWI0
XMC_USIC_CH_t *spi_master_ch = XMC_SPI2_CH1;
XMC_GPIO_CONFIG_t master_data_pin_config;
XMC_GPIO_CONFIG_t master_selo_pin_config;
XMC_GPIO_CONFIG_t master_clck_pin_config;
XMC_GPIO_PORT_t *master_data_pin = XMC_GPIO_PORT4;
XMC_GPIO_PORT_t *master_selo_pin = XMC_GPIO_PORT4;
XMC_GPIO_PORT_t *master_clck_pin = XMC_GPIO_PORT4;
XMC_SPI_CH_CONFIG_t spi_config_masterMode;
uint16_t transmit_data = 0xAA;
//Master Mode
/*SPI Configuration*/
spi_config_masterMode.baudrate = 100000;
spi_config_masterMode.bus_mode = XMC_SPI_CH_BUS_MODE_MASTER;
spi_config_masterMode.selo_inversion = XMC_SPI_CH_SLAVE_SEL_INV_TO_MSLS;
spi_config_masterMode.parity_mode = XMC_USIC_CH_PARITY_MODE_NONE;
/*Initialize SPI*/
XMC_SPI_CH_Init(spi_master_ch, &spi_config_masterMode);
XMC_SPI_CH_SetBitOrderMsbFirst(spi_master_ch);
XMC_SPI_CH_SetWordLength(spi_master_ch, 8);
XMC_SPI_CH_SetFrameLength(spi_master_ch, 64);
/* Configure the clock polarity and clock delay */
XMC_SPI_CH_ConfigureShiftClockOutput(spi_master_ch,
XMC_SPI_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_1_DELAY_DISABLED,
XMC_SPI_CH_BRG_SHIFT_CLOCK_OUTPUT_SCLK);
/* Configure Leading/Trailing delay */
XMC_SPI_CH_SetSlaveSelectDelay(spi_master_ch, 2U);
/*Input source selected*/
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN0 ,USIC2_C1_DX0_DOUT0);
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN1 ,USIC2_C1_DX3_DOUT1);
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN2 ,USIC2_C1_DX4_DOUT2);
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN3 ,USIC2_C1_DX5_DOUT3);
/*Start SPI*/
XMC_SPI_CH_Start(spi_master_ch);
/*GPIO Input pin configuration*/
master_data_pin_config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE;
master_data_pin_config.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH;
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_7_HWCTRL_U2C1_DOUT0);
XMC_GPIO_Init(master_data_pin, 7, &master_data_pin_config);
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_6_HWCTRL_U2C1_DOUT1);
XMC_GPIO_Init(master_data_pin, 6, &master_data_pin_config);
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_5_HWCTRL_U2C1_DOUT2);
XMC_GPIO_Init(master_data_pin, 5, &master_data_pin_config);
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_4_HWCTRL_U2C1_DOUT3);
XMC_GPIO_Init(master_data_pin, 4, &master_data_pin_config);
XMC_GPIO_SetHardwareControl(master_data_pin, 7, XMC_GPIO_HWCTRL_PERIPHERAL1);
XMC_GPIO_SetHardwareControl(master_data_pin, 6, XMC_GPIO_HWCTRL_PERIPHERAL1);
XMC_GPIO_SetHardwareControl(master_data_pin, 5, XMC_GPIO_HWCTRL_PERIPHERAL1);
XMC_GPIO_SetHardwareControl(master_data_pin, 4, XMC_GPIO_HWCTRL_PERIPHERAL1);
/*GPIO Slave Select line pin configuration*/
master_selo_pin_config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE;
master_selo_pin_config.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH;
master_selo_pin_config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1;
XMC_GPIO_Init(master_selo_pin, 3, &master_selo_pin_config);
XMC_SPI_CH_EnableSlaveSelect(spi_master_ch, XMC_SPI_CH_SLAVE_SELECT_2);
/*GPIO Clock pin configuration*/
master_clck_pin_config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE;
master_clck_pin_config.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH;
master_clck_pin_config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT4;
XMC_GPIO_Init(master_clck_pin, 2, &master_clck_pin_config);
/* Clear the flags */
XMC_SPI_CH_ClearStatusFlag(spi_master_ch, XMC_SPI_CH_STATUS_FLAG_ALTERNATIVE_RECEIVE_INDICATION);
XMC_SPI_CH_ClearStatusFlag(spi_master_ch, XMC_SPI_CH_STATUS_FLAG_RECEIVE_INDICATION);
XMC_SPI_CH_Transmit(spi_master_ch, transmit_data, XMC_SPI_CH_MODE_STANDARD); Show Less
Slave Select and the CLK is still running and working fine, but there is no data coming out!
What am I doing wrong ? Is U2C1 not supposed to work for SPI ?
And also do I need to configure the mode of a data-pin like:
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_7_HWCTRL_U2C1_DOUT0);
When XMC_GPIO_SetHardwareControl(master_data_pin, 7, XMC_GPIO_HWCTRL_PERIPHERAL1); is called later on ?
Thankful for any help!
Processor is XMC4500F144 and pinout is like:
P4.2 U2C1_SCLKOUT ALT4
P4.3 U2C1_SEL02 ALT1
P4.4 U2C1_DOUT3 / HWIN3 HWO0 / HWI0
P4.5 U2C1_DOUT2 / HWIN2 HWO0 / HWI0
P4.6 U2C1_DOUT1 / HWIN1 HWO0 / HWI0
P4.7 U2C1_DOUT0 / HWIN0 HWO0 / HWI0
XMC_USIC_CH_t *spi_master_ch = XMC_SPI2_CH1;
XMC_GPIO_CONFIG_t master_data_pin_config;
XMC_GPIO_CONFIG_t master_selo_pin_config;
XMC_GPIO_CONFIG_t master_clck_pin_config;
XMC_GPIO_PORT_t *master_data_pin = XMC_GPIO_PORT4;
XMC_GPIO_PORT_t *master_selo_pin = XMC_GPIO_PORT4;
XMC_GPIO_PORT_t *master_clck_pin = XMC_GPIO_PORT4;
XMC_SPI_CH_CONFIG_t spi_config_masterMode;
uint16_t transmit_data = 0xAA;
//Master Mode
/*SPI Configuration*/
spi_config_masterMode.baudrate = 100000;
spi_config_masterMode.bus_mode = XMC_SPI_CH_BUS_MODE_MASTER;
spi_config_masterMode.selo_inversion = XMC_SPI_CH_SLAVE_SEL_INV_TO_MSLS;
spi_config_masterMode.parity_mode = XMC_USIC_CH_PARITY_MODE_NONE;
/*Initialize SPI*/
XMC_SPI_CH_Init(spi_master_ch, &spi_config_masterMode);
XMC_SPI_CH_SetBitOrderMsbFirst(spi_master_ch);
XMC_SPI_CH_SetWordLength(spi_master_ch, 8);
XMC_SPI_CH_SetFrameLength(spi_master_ch, 64);
/* Configure the clock polarity and clock delay */
XMC_SPI_CH_ConfigureShiftClockOutput(spi_master_ch,
XMC_SPI_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_1_DELAY_DISABLED,
XMC_SPI_CH_BRG_SHIFT_CLOCK_OUTPUT_SCLK);
/* Configure Leading/Trailing delay */
XMC_SPI_CH_SetSlaveSelectDelay(spi_master_ch, 2U);
/*Input source selected*/
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN0 ,USIC2_C1_DX0_DOUT0);
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN1 ,USIC2_C1_DX3_DOUT1);
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN2 ,USIC2_C1_DX4_DOUT2);
XMC_SPI_CH_SetInputSource(spi_master_ch, XMC_SPI_CH_INPUT_DIN3 ,USIC2_C1_DX5_DOUT3);
/*Start SPI*/
XMC_SPI_CH_Start(spi_master_ch);
/*GPIO Input pin configuration*/
master_data_pin_config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE;
master_data_pin_config.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH;
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_7_HWCTRL_U2C1_DOUT0);
XMC_GPIO_Init(master_data_pin, 7, &master_data_pin_config);
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_6_HWCTRL_U2C1_DOUT1);
XMC_GPIO_Init(master_data_pin, 6, &master_data_pin_config);
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_5_HWCTRL_U2C1_DOUT2);
XMC_GPIO_Init(master_data_pin, 5, &master_data_pin_config);
master_data_pin_config.mode = (XMC_GPIO_MODE_t)(XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P4_4_HWCTRL_U2C1_DOUT3);
XMC_GPIO_Init(master_data_pin, 4, &master_data_pin_config);
XMC_GPIO_SetHardwareControl(master_data_pin, 7, XMC_GPIO_HWCTRL_PERIPHERAL1);
XMC_GPIO_SetHardwareControl(master_data_pin, 6, XMC_GPIO_HWCTRL_PERIPHERAL1);
XMC_GPIO_SetHardwareControl(master_data_pin, 5, XMC_GPIO_HWCTRL_PERIPHERAL1);
XMC_GPIO_SetHardwareControl(master_data_pin, 4, XMC_GPIO_HWCTRL_PERIPHERAL1);
/*GPIO Slave Select line pin configuration*/
master_selo_pin_config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE;
master_selo_pin_config.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH;
master_selo_pin_config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1;
XMC_GPIO_Init(master_selo_pin, 3, &master_selo_pin_config);
XMC_SPI_CH_EnableSlaveSelect(spi_master_ch, XMC_SPI_CH_SLAVE_SELECT_2);
/*GPIO Clock pin configuration*/
master_clck_pin_config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE;
master_clck_pin_config.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH;
master_clck_pin_config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT4;
XMC_GPIO_Init(master_clck_pin, 2, &master_clck_pin_config);
/* Clear the flags */
XMC_SPI_CH_ClearStatusFlag(spi_master_ch, XMC_SPI_CH_STATUS_FLAG_ALTERNATIVE_RECEIVE_INDICATION);
XMC_SPI_CH_ClearStatusFlag(spi_master_ch, XMC_SPI_CH_STATUS_FLAG_RECEIVE_INDICATION);
XMC_SPI_CH_Transmit(spi_master_ch, transmit_data, XMC_SPI_CH_MODE_STANDARD); Show Less
XMC™
Hi,Trying to get an SPI slave up and running.After trying the APP stuff without luck, I moved down to the bare XMClib to make it simpler and get a bet...
Show More
Hi,
Trying to get an SPI slave up and running.
After trying the APP stuff without luck, I moved down to the bare XMClib to make it simpler and get a better understanding.
The goal:
Implement a SPI slave (on USIC0, channel 0) on a XMC1100 device on the cute 2Go development kit.
First target is to receive one byte '0x55' from an external SPI master sending in mode 0 on 1 Mhz, with slave select (active low).
Pins used on the 2Go board:
MISO P0.14
MOSI P2.0
SCLK P0.8
SS P0.9
Started with a stripped XMClib USIC SPI example, with the following changes:
- removed SPI master code
- changed to XMC1100 target device (instead of XMC4400)
- changed pin configuration
- changed word length
This resulted in the following - pretty straightforward - code:
The wires from the SPI master are soldered to the 2Go board.
With my scope, I see the clock, the MOSI and SS signals toggling.
However, when stepping with the debugger through the main loop, I do not receive the byte '0x55'.
Nothing is received at all. The PSR register is and remains 0x2, also after sending the byte from the master.
So, no receive indication flag, and also RBUF remains 0x00.
It looks likes the connections are not setup properly, or that something still has to be enabled.
Checked everything multiple times, but can not find the issue.
Any help is appreciated. Show Less
Trying to get an SPI slave up and running.
After trying the APP stuff without luck, I moved down to the bare XMClib to make it simpler and get a better understanding.
The goal:
Implement a SPI slave (on USIC0, channel 0) on a XMC1100 device on the cute 2Go development kit.
First target is to receive one byte '0x55' from an external SPI master sending in mode 0 on 1 Mhz, with slave select (active low).
Pins used on the 2Go board:
MISO P0.14
MOSI P2.0
SCLK P0.8
SS P0.9
Started with a stripped XMClib USIC SPI example, with the following changes:
- removed SPI master code
- changed to XMC1100 target device (instead of XMC4400)
- changed pin configuration
- changed word length
This resulted in the following - pretty straightforward - code:
/*
* Copyright (C) 2014 Infineon Technologies AG. All rights reserved.
*
* Infineon Technologies AG (Infineon) is supplying this software for use with
* Infineon's microcontrollers.
* This file can be freely distributed within development tools that are
* supporting such microcontrollers.
*
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
* OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
*
*/
/**
* @file
* @date 02 december,2014
* @version 0.1.0
*
* @brief SPI demo example
*
* Example of configuration for SSC Full-Duplex Communication, MasterMode and SlaveMode
*
* History
*
* Version 0.1.0 Initial
*/
#include
#include//Declarations from DAVE Code Generation (includes SFR declaration)
#include "xmc_spi.h"
#include "xmc_gpio.h"
XMC_USIC_CH_t *spi_slave_ch = XMC_SPI0_CH0;
//Slave Mode U0C0
XMC_GPIO_CONFIG_t slave_rx_pin_config;
XMC_GPIO_CONFIG_t slave_tx_pin_config;
XMC_GPIO_CONFIG_t slave_selo_pin_config;
XMC_GPIO_CONFIG_t slave_clck_pin_config;
XMC_GPIO_PORT_t *slave_rx_pin = XMC_GPIO_PORT2;
XMC_GPIO_PORT_t *slave_tx_pin = XMC_GPIO_PORT0;
XMC_GPIO_PORT_t *slave_selo_pin = XMC_GPIO_PORT0;
XMC_GPIO_PORT_t *slave_clck_pin = XMC_GPIO_PORT0;
/**
* @brief SPI configuration structure
*/
XMC_SPI_CH_CONFIG_t spi_config_slaveMode;
int main(void)
{
uint16_t received_data = 0x0ACE;
uint16_t transmit_data = 0x0FAE;
//Slave Mode
spi_config_slaveMode.bus_mode = XMC_SPI_CH_BUS_MODE_SLAVE;
spi_config_slaveMode.parity_mode = XMC_USIC_CH_PARITY_MODE_NONE;
/*Initialize SPI*/
XMC_SPI_CH_Init(spi_slave_ch, &spi_config_slaveMode);
/*Start SPI*/
XMC_SPI_CH_Start(spi_slave_ch);
XMC_SPI_CH_SetWordLength(spi_slave_ch, 8);
/*Input source selected*/
XMC_SPI_CH_SetInputSource(spi_slave_ch, XMC_SPI_CH_INPUT_DIN0 ,USIC0_C0_DX0_P2_0);
XMC_SPI_CH_SetInputSource(spi_slave_ch, XMC_SPI_CH_INPUT_SLAVE_SCLKIN ,USIC0_C0_DX1_P0_8);
XMC_SPI_CH_SetInputSource(spi_slave_ch, XMC_SPI_CH_INPUT_SLAVE_SELIN ,USIC0_C0_DX2_P0_9);
/*GPIO Input pin configuration*/
slave_rx_pin_config.mode = XMC_GPIO_MODE_INPUT_TRISTATE;
XMC_GPIO_Init(slave_rx_pin, 0, &slave_rx_pin_config);
/*GPIO Output pin configuration*/
slave_tx_pin_config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2;
XMC_GPIO_Init(slave_tx_pin, 14, &slave_tx_pin_config);
/*GPIO Slave Select line pin configuration*/
slave_selo_pin_config.mode = XMC_GPIO_MODE_INPUT_TRISTATE;
XMC_GPIO_Init(slave_selo_pin, 9, &slave_selo_pin_config);
/*GPIO Clock pin configuration*/
slave_clck_pin_config.mode = XMC_GPIO_MODE_INPUT_TRISTATE;
XMC_GPIO_Init(slave_clck_pin, 8, &slave_clck_pin_config);
while (1) {
received_data = XMC_SPI_CH_GetReceivedData(spi_slave_ch);
}
return 1;
}
The wires from the SPI master are soldered to the 2Go board.
With my scope, I see the clock, the MOSI and SS signals toggling.
However, when stepping with the debugger through the main loop, I do not receive the byte '0x55'.
Nothing is received at all. The PSR register is and remains 0x2, also after sending the byte from the master.
So, no receive indication flag, and also RBUF remains 0x00.
It looks likes the connections are not setup properly, or that something still has to be enabled.
Checked everything multiple times, but can not find the issue.
Any help is appreciated. Show Less
XMC™
Hi all,I just acquired a XMC4500 Relax Kit and am learning to program with DAVE Apps. I tried first with the ADC apps but I couldn't find any option t...
Show More
Hi all,
I just acquired a XMC4500 Relax Kit and am learning to program with DAVE Apps. I tried first with the ADC apps but I couldn't find any option to choose the Vref+ source for the ADC. It seems the default Vref+ source is from Varef which is about 3.3V. Is there anyway to increase this value, or to change to another source (CH0) with higher value (5V for example) ?
Thank you in advance. Show Less
I just acquired a XMC4500 Relax Kit and am learning to program with DAVE Apps. I tried first with the ADC apps but I couldn't find any option to choose the Vref+ source for the ADC. It seems the default Vref+ source is from Varef which is about 3.3V. Is there anyway to increase this value, or to change to another source (CH0) with higher value (5V for example) ?
Thank you in advance. Show Less
XMC™
Hi all,I'm trying to use the XMC4700 Relax Kit to send transmissions onto the external CANbus via the X2 connector and can't figure out how to properl...
Show More
Hi all,
I'm trying to use the XMC4700 Relax Kit to send transmissions onto the external CANbus via the X2 connector and can't figure out how to properly configure and send this data. The only non-loopback example I can find is in the XMCLibs examples for the XMC4500:
I've tried modifying the example for the XMC4700 Relax Kit including:
When compiled and loaded I see the LED blink as expected but I see no data on the Relax kit CANbus using an oscilloscope. I have several Relax Kits available to me and it does this on multiple boards so it doesn't appear to be an isolated hardware issue. Here's my latest code modified from the CAN_TRANSMITTER example.
I haven't found a good example for DAVE applications using CANbus transmissions (non-loopback) either. Overall, anyone have any suggestions? Been really stumped and feel like I'm missing something obvious! Show Less
I'm trying to use the XMC4700 Relax Kit to send transmissions onto the external CANbus via the X2 connector and can't figure out how to properly configure and send this data. The only non-loopback example I can find is in the XMCLibs examples for the XMC4500:
XMCLib\examples\XMC4500_series\CAN\CAN_TRANSMITTER
I've tried modifying the example for the XMC4700 Relax Kit including:
- Changing LED1 to P5_9
- Changing TXD to P1_12
- Changing RXD to P1_13
- Using CAN_node1 (P1_12 and P1_13 are CAN_node1 pins ALT2)
- Use XMC_CAN_CANCLKSRC_FOHP (also tried XMC_CAN_CANCLKSRC_FPERI) in XMC_CAN_Init due to Multican+ in XMC4700
When compiled and loaded I see the LED blink as expected but I see no data on the Relax kit CANbus using an oscilloscope. I have several Relax Kits available to me and it does this on multiple boards so it doesn't appear to be an isolated hardware issue. Here's my latest code modified from the CAN_TRANSMITTER example.
I haven't found a good example for DAVE applications using CANbus transmissions (non-loopback) either. Overall, anyone have any suggestions? Been really stumped and feel like I'm missing something obvious! Show Less
XMC™
Good Morning Everyone,currently I try to config the DMA Channel for transfer 240x320 unit16_t valuesfrom a Frame buffer in my RAM to the EBU Interface...
Show More
Good Morning Everyone,
currently I try to config the DMA Channel for transfer 240x320 unit16_t values
from a Frame buffer in my RAM to the EBU Interface. But with the current
configuration and implementaion of the GPDMA0_0_IRQHandler the interface
not transfer each 16bit value to my LCD.
But if I use the conventional method with the for loops, my image content is
transferred to the display. yes with other words the EBU interface to the display
is configured correctly.
Has one of you an idea what I need to change about the configuration and or the
interrupt service Routine, so that I can move the data with the DMA interface
Thanks in advanced
Best regards
EbbeSand
**delete source code** Show Less
currently I try to config the DMA Channel for transfer 240x320 unit16_t values
from a Frame buffer in my RAM to the EBU Interface. But with the current
configuration and implementaion of the GPDMA0_0_IRQHandler the interface
not transfer each 16bit value to my LCD.
But if I use the conventional method with the for loops, my image content is
transferred to the display. yes with other words the EBU interface to the display
is configured correctly.
Has one of you an idea what I need to change about the configuration and or the
interrupt service Routine, so that I can move the data with the DMA interface
Thanks in advanced
Best regards
EbbeSand
**delete source code** Show Less
Trending discussions