Hi,
I have not be able to use flashlib with the simple web server 1.3 without the following error.
mcelf_n0c2_o_a02444: Error: Symbol b_spi is a duplicate clock declaration.
mcelf_n0c2_o_a02444: Error: previously declared as __localPortInitializer9.
xmake: *** [bin/XC-2/xtcp_demo.xe] Error 1
I have had no luck tracking down the duplicate declaration and am beginning to wonder if that is why it is not used with the XC2 firmware. It would be nice to know whats going on, does anyone have some insight?
Cheers
Matt
Any Idea why flashlib can't be used with XMOS TCPIP v1.3
-
- Active Member
- Posts: 50
- Joined: Sat Feb 13, 2010 12:04 pm
-
- Experienced Member
- Posts: 69
- Joined: Mon May 17, 2010 10:19 am
The duplicate definition is between libflash and mii which both want to use clock block 1.
Unfortunately the block isn't configurable in the flash library in 9.9.2 (it will be in the next release) but you can change which ones mii uses bu editing "main.xc" (look for XS1_CLKBLK_x near the top of the file).
Unfortunately the block isn't configurable in the flash library in 9.9.2 (it will be in the next release) but you can change which ones mii uses bu editing "main.xc" (look for XS1_CLKBLK_x near the top of the file).
-
- Active Member
- Posts: 50
- Joined: Sat Feb 13, 2010 12:04 pm
-
- Active Member
- Posts: 50
- Joined: Sat Feb 13, 2010 12:04 pm
Hi again,
Any idea why fl_getWriteScratchSize() returns 65536. This figure does not seem right. I would expect for the flash device on an XC2 it would be the size of a single erasable sector 4K bytes.
Cheers
Any idea why fl_getWriteScratchSize() returns 65536. This figure does not seem right. I would expect for the flash device on an XC2 it would be the size of a single erasable sector 4K bytes.
Cheers