I've got a project I'm using a slice kit to vet out code and techniques before i get a laid-out board. I'm using all the PCI-e connectors (Triangle-LCD, Star-SDRAM, Circle-GPIO, Square-SDFlash card).
I'm trying to test out a method to do in field updates via the SD card that I've got mounted as a FAT FS and using the flashlib (fl_*).
However the pins to the SPI flash that the XMOS boots from are in conflict with some of the pins used by the SDRAM slice card (STAR port).
Code: Select all
on tile[0] : sdram_ports sdramports = {
XS1_PORT_16A, XS1_PORT_1B, XS1_PORT_1G, XS1_PORT_1C, XS1_PORT_1F, XS1_CLKBLK_2 };
on tile[0] : fl_PortHolderStruct spi = { PORT_SPI_MISO, PORT_SPI_SS, PORT_SPI_CLK, PORT_SPI_MOSI, XS1_CLKBLK_2};
Is there a way I can dynamically assign these ports at run time?
Thanks,
-Steve