From 70f057586124455d2ee2cbe2050f947b174511a9 Mon Sep 17 00:00:00 2001 From: zhanglinjing Date: Wed, 20 Dec 2023 10:47:26 +0100 Subject: [PATCH] Updte example test report and TODO --- XMC14002GO_TEST.md | 45 +++++++++++++++++++ .../config/XMC1400_XMC2GO/pins_arduino.h | 4 +- 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 XMC14002GO_TEST.md diff --git a/XMC14002GO_TEST.md b/XMC14002GO_TEST.md new file mode 100644 index 00000000..649f56ca --- /dev/null +++ b/XMC14002GO_TEST.md @@ -0,0 +1,45 @@ +### Examples Supported + +| Example | XMC1400 2GO test | Description | +| ----------- | ----------- |------------ +| DieTemperatureMeasurement                                                                                                                 | PASS (serial delay) |Simple die temperature measurement for XMC devices which demonstrates the measure temperature of die using sensor. | +| HeapMemoryMeasurement | PASS (serial delay) | Simple example to check heap memory during run time for XMC devices which demonstrates the ability to check on free heap memory. | +|SleepModeXMC1100 | PASS | Demonstrates the use of an alarm to wake up an xmc1100 from sleep mode. | +|SleepModeXMC4700 | N/A | Simple Sleep Mode for XMC4700 Relax Kit V1 demonstrates the use of an alarm to wake up an XMC4700 from sleep mode.LED2 will blink fast on active mode. If CCU4 is ON in sleep mode, LED2 will blink slower (because of slower clock) while in sleep mode.If CCU is OFF in sleep mode, LED2 will stop blinking, until device wakes up. +|StackMemoryMeasurement | FAIL: linker file variable name changed| Simple example to check stack memory during run time for XMC devices which demonstrates the ability to check on free stack memory + +## DMA + +### Examples Supported +| Example | XMC1400 2GO test | Description | +| --------- | ----------- | -------------- +| DMA_Memory                                                                        | N/A     | Demonstrates how to setup an DMA, to transfer data between two places in memory.| +|DMA_UART | N/A | Demonstrates how to setup an DMA, to transfer data between two places in memory.| + + +## RTC Library +| Example | XMC1400 2GO test | Description | +| ----------- | ----------- |------------ +|AlarmRTC                                                               | N/A    | Demonstrates how to set an RTC alarm for the XMC4700 Relax Kit V1| +|SimpleRTC | N/A | Demonstrates the use of the RTC library for the XMC4700| + +## SPI Library +| Example | XMC1400 2GO test | Description | +| ----------- | ----------- |------------ +|SPI_MOSI_to_MISO_SameDevice                         | PASS (serial problem same as XMC1100 2Go) | SPI example which communicates between the MOSI and MISO pin of the same board. Connect the MOSI pin to the MOSI pin as hardware setup.| + +## Wire Library + +| Example | XMC1400 2GO test | Description | +| ----------- | ----------- |------------ +| master_reader                                                                                                                                                                                                                                                                                      | | Demonstrates use of the Wire library. Reads data from an I2C/TWI slave device. Refer to the "Wire Slave Sender" example for use with this.Then it communicates using I2C protocol between two supported XMC boards. Connect the SDA and SCL pins of one board to the SDA and SCL pin of the other board. +| master_writer | | Demonstrates use of the Wire library.Writes data to an I2C/TWI slave device. Refer to the "Wire Slave Receiver" example for use with this.Then it communicates using I2C protocol between two supported XMC boards. Connect the SDA and SCL pins of one board to the SDA and SCL pin of the other board. +| slave_receiver | | Demonstrates use of the Wire library. Receives data as an I2C/TWI slave device. Refer to the "Wire Master Writer" example for use with this.Then it communicates using I2C protocol between two supported XMC boards. Connect the SDA and SCL pins of one board to the SDA and SCL pin of the other board. +| slave_sender | | Demonstrates use of the Wire library. Sends data as an I2C/TWI slave device. Refer to the "Wire Master Reader" example for use with this.Then it communicates using I2C protocol between two supported XMC boards. Connect the SDA and SCL pins of one board to the SDA and SCL pin of the other board. + +## I2S Library +FAIL!! NEED to go deep in I2S library + +## OneWire Library + + diff --git a/variants/XMC1400/config/XMC1400_XMC2GO/pins_arduino.h b/variants/XMC1400/config/XMC1400_XMC2GO/pins_arduino.h index 4e46547b..be87b066 100644 --- a/variants/XMC1400/config/XMC1400_XMC2GO/pins_arduino.h +++ b/variants/XMC1400/config/XMC1400_XMC2GO/pins_arduino.h @@ -300,8 +300,7 @@ XMC_SPI_t XMC_SPI_0 = }; -// TODO: I2S -// Two I2C instances possible +// TODO: I2C XMC_I2C_t XMC_I2C_0 = { .channel = XMC_I2C0_CH1, @@ -335,6 +334,7 @@ XMC_I2C_t XMC_I2C_0 = .protocol_irq_service_request = 5 }; +// TODO: I2S XMC_I2S_t i2s_config = { .input_config = {