From the libflash API PDF Document:
"fl_connect opens a connection to the specified SPI device."
From what I see it does not state how/where this SPI device is specified.
Does it use the SPI device from the xn file?
fl_connect() Topic is solved
-
- XCore Addict
- Posts: 191
- Joined: Tue Jul 05, 2016 2:19 pm
-
- Experienced Member
- Posts: 74
- Joined: Mon Dec 16, 2013 12:14 pm
Hi DemoniacMilk,
It appears the documentation is mis-leading. I will have this updated for a future release.
fl_connect will connect to the flash device providing it is one of the flash devices that are supported by the tools by default. You cannot specify an alternative device using this function. To do this you would need to use the fl_connectToDevice function on the API, providing your spi spec file for your spi device.
Colin.
It appears the documentation is mis-leading. I will have this updated for a future release.
fl_connect will connect to the flash device providing it is one of the flash devices that are supported by the tools by default. You cannot specify an alternative device using this function. To do this you would need to use the fl_connectToDevice function on the API, providing your spi spec file for your spi device.
Colin.
-
- XCore Addict
- Posts: 191
- Joined: Tue Jul 05, 2016 2:19 pm
Ou I see, so fl_connect() equal to fl_connectToDevice() with a list containing all supported devices?