XMC™ Forum Discussions
Hello
I am new to XMC world. I am using XMC4400 Platform2Go for Arduino.
Per my understanding, there are 4 VADC modules in this device.
I tried to add ADC_MEASUREMENT App using APP tree to assign 4 analog pins to 4 individual module so that these signals cannot sample at same time instance instead of in sequence.
First adding the app, it is ok. However, I added a second app. Dave prompts an error message, its meaning that I cannot add more than one app. I can couple of question as below.
1. How to configure ADC_MEASUREMENT app use which VADC modules?
2. How to add the app more than one?
3. If #2 is impossible, any suggestion to start these four analog sample at same time instance.
Thanks
Show LessI have KIT_XMC11_BOOT_001 and try I2C using temperature sensor.
At first I would like to check I2C application's method is working correctly.
But it doesn't work, i mean when probe SDA, SCL there is no signal output.
and fall in loop line 44.
what i missed?
Show Less
/*
* main.c
*
* Created on: 2021 Sep 29 14:27:58
* Author: A
*/
#include//Declarations from DAVE Code Generation (includes SFR declaration)
/**
* @brief main() - Application entry point
*
* Details of function
* This routine is the application entry point. It is invoked by the device startup code. It is responsible for
* invoking the APP initialization dispatcher routine - DAVE_Init() and hosting the place-holder for user application
* code.
*/
uint8_t buffer[1] = {0x0B};
int main(void)
{
DAVE_STATUS_t status;
status = DAVE_Init(); /* Initialization of DAVE APPs */
if(status != DAVE_STATUS_SUCCESS)
{
/* Placeholder for error handler code. The while loop below can be replaced with an user error handler. */
XMC_DEBUG("DAVE APPs initialization failed\n");
while(1U)
{
}
}
/* Placeholder for user application code. The while loop below can be replaced with user application code. */
while(1U)
{
I2C_MASTER_Transmit(&I2C_MASTER_0, true, 0x90, buffer, 1, true);
while(I2C_MASTER_IsTxBusy(&I2C_MASTER_0)) {};
}
}
Hello,
I am having an issue with the USIC0 SRAM Parity checker.
I enable the USIC0 SRAM Parity error reset at startup with the following command:
Hello all!
I have an XMC7000 dev kit and I am trying to get the CAN bus up and running.
I have a PEAK Can dongle and I am trying to snoop the traffic from some of the CAN examples.
I am wondering if someone can help me understand the mtb-example-pdl-xmc7000-canfd example?
I can't seem to figure out where the baud rate is set.
Show LessHi,
When ADC collects data through multiple channels, the data collected by one channel is 4095, and the data collected by the next channel will also increase. Why?
Best Regards
Show LessDear Sir,
We have a customer who wants to make an audio streaming by Ethernet RTP protocol in the Car system.
Our XMC has those interfaces to support this case, but I can't find the information about the RTP protocol for reference.
Could you help to check and give us comments on how to support this case?
Thanks.
Best Regards,
Billy
Show Less
Hi,
there is a description about Oscillator in Direct Input in XMC1400 datasheet.
But there is no parameter of VIHBX and VILBX in the table 21. External clock components cannot be selected.
Would you tell me the parameters or external clock components do you recommend ?
Best Regards,
Hayashi.k
Show Less
Hello all!
I have an XMC7200 Evaluation Kit.
I am trying to configure one of the UARTs using the CYHAL.
I am following the example code show on the docs here and pasted below.
The example code works fine for the debug UART, but when trying to use one of the other SCBs as shown in the pin mappings of the datasheet (P0_0 and P0_1) I get a pin configuration error back from the cyhal_uart_init function.
I am not sure why or how to use the HAL.
Does anyone have an example project showing how to use the CYHAL functions on one of the non-debug UART ports with the XMC7000 series?
#define DATA_BITS_8 8
#define STOP_BITS_1 1
#define BAUD_RATE 115200
#define UART_DELAY 10u
#define RX_BUF_SIZE 4
#define TX_BUF_SIZE 4
// Variable Declarations
cy_rslt_t rslt;
cyhal_uart_t uart_obj;
uint32_t actualbaud;
uint8_t tx_buf[TX_BUF_SIZE] = { '1', '2', '3', '4' };
uint8_t rx_buf[RX_BUF_SIZE];
size_t tx_length = TX_BUF_SIZE;
size_t rx_length = RX_BUF_SIZE;
uint32_t value = 'A';
// Initialize the UART configuration structure
const cyhal_uart_cfg_t uart_config =
{
.data_bits = DATA_BITS_8,
.stop_bits = STOP_BITS_1,
.parity = CYHAL_UART_PARITY_NONE,
.rx_buffer = rx_buf,
.rx_buffer_size = RX_BUF_SIZE
};
// Initialize the UART Block
rslt = cyhal_uart_init(&uart_obj, P0_1, P0_0, NC, NC, NULL,
&uart_config);
// Set the baud rate
rslt = cyhal_uart_set_baud(&uart_obj, BAUD_RATE, &actualbaud);
// Begin Tx Transfer
cyhal_uart_write(&uart_obj, (void*)tx_buf, &tx_length);
cyhal_system_delay_ms(UART_DELAY);
// Send a Character
cyhal_uart_putc(&uart_obj, value);
cyhal_system_delay_ms(UART_DELAY);
// Begin Rx Transfer
cyhal_uart_read(&uart_obj, (void*)rx_buf, &rx_length);
cyhal_system_delay_ms(UART_DELAY);
Show Less
Hello specialist,
In my customer control board, we didn't use DP83848 PHY chip, using RTL8201F, which is used in our ET1100 system before, but now when using XMC 4800 MCU, it can't work as normal, so here we have some questions need your help.
1. we using the "XMC4800_Relax_Kit_Series-V1" SSC example for test, customer control board didn't have any response, BTW, all the design were referenced "Schematic_XMC4700_XMC4800_Relax_Kit_Series-V1.pdf" document. we can get the scope on TXDx or RXDx pins. I think it maybe the wrong PHY address.
2. using "XMC_EtherCAT_Phy_Board-V3" for debug test, download "XMC4800_Relax_Kit_Series-V1" SSC example, all the system can run as normal. BTW, checked found that V3 version Phy_board are difference with V1 Phy_board, but both of their PHY addresses are difference.
3. is there any documents guide or SOP to let us know how to do some setting while using a new type PHY address? not only suggested by your Relax_Kit board.
4. as we know, we also can do some regesiter value seting through MDIO/MCLK, how to do in Dave4 IDE?
5. is there any support mailbox? that we can using mail much better?
Many thanks,
Show LessHi everybody,
I am working with Ethercat XMC4300, based on Infineon design and it works fine. But the problem is related to BCM5241, it's Obsolete. (We cannot buy them in bulk for mass production).
So I want to change to DP83826E.
I attached PDF file about DP83826E, it is quite similar to BCM5241.
May I ask if this alternative is responsive?
And do I have to change the source code ethercat XMC4300?
Thanks for all your comments.
https://www.ti.com/lit/an/snla344b/snla344b.pdf?ts=1692262148410&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FDP83826I
Show Less