Can you please specify what is the hardware that you are using for this test?
fx3s board with two SD cards and I am using fx3s_Raid0 example code but I do not get any storage capacity?
Which board you are using? Is it USB RAID 1 Dongle or FX3S -FPGA DVK?
usb RAID 1 Dongle
You may need to modify the RAID0 firmware in order to make it work on RAID-1 Dongle hardware.
Please check the both the codes (RAID 1 and RAID 0) and do necessary modifications.
Can u kindly explain the modifications that is needed to be done?
Edited: Corrected the GPIO number in the comments and point 3.
You need to do the following in RAID-0 example firmware to work on RAID-1 USB dongle.
- Map low voltage switch GPIO to GPIO 12 and GPIO 13 for card 0 and card 1 respectively
- Set GPIO 14 and 15 to high. These GPIOs controls the VDD supply of the SD cards respectively.
3. In configuring SIB interface using CyU3PSibSetIntfParams API, pass GPIO 12 to intfParams.voltageSwGpio for card 0 and GPIO 13 for card 1 as follows
intfParams.voltageSwGpio = VSEL_S0_GPIO; /* Use GPIO_12 for voltage switch on S0 port. */
status = CyU3PSibSetIntfParams (0, &intfParams);
if (status == CY_U3P_SUCCESS)
intfParams.voltageSwGpio = VSEL_S1_GPIO; /* Use GPIO_13 for voltage switch on S1 port. */
status = CyU3PSibSetIntfParams (1, &intfParams);
You may use the following macros.
#define VSEL_S0_GPIO 12
#define VSEL_S1_GPIO 13
#define VSD0_GPIO 14
#define VSD1_GPIO 15
Refer CyFxMscApplnGpioInit function in RAID -1 example firmware for configuring the GPIOs.
Hope that the attached firmware worked on RAID 1 Dongle.
I have tested on my end. It is working fine.