|
From: gautaz g. <gau...@gm...> - 2022-08-17 09:27:32
|
Looking further into the datasheets, the main difference between the W25Q128BV and the W25Q128FV is the QPI (Quad Peripheral Interface) mode which was added on the W25Q128FV. In fact the device identifier of the W25Q128FV in SPI mode is the same as the identifier of the W25Q128BV (4018h). So I guess that the W25Q128BV is already supported by OpenOCD per this line: https://github.com/openocd-org/openocd/blob/9cd714cd145a73a4f43bdfc37554f4d5ab05f92b/src/flash/nor/spi.c#L99 Can anyone confirm ? Le mer. 17 août 2022 à 10:20, gautaz github <gau...@gm...> a écrit : > Hello Tommy, > > Thanks for the insight. > > You're right, I was also looking for what might be the right existing > driver for the Winbond W25Q128BV device and I did not find anything > relevant. > Looking at the list available in the code pointer you sent ( > https://github.com/openocd-org/openocd/blob/9cd714cd145a73a4f43bdfc37554f4d5ab05f92b/src/flash/nor/spi.c#L90), > the W25Q128FV seems close to the W25Q128BV. > > I have not yet compared the datasheets: > > - > https://pdf1.alldatasheet.fr/datasheet-pdf/view/443805/WINBOND/W25Q128BV.html > - > https://pdf1.alldatasheet.com/datasheet-pdf/view/506494/WINBOND/W25Q128FV.html > > > I'll look into it as soon as I have some time, in the meantime, what would > be the right way to add the W25Q128FV to a board script already loading the > atheros_ar9344.cfg, what existing board script would be the better to use > as a starting point? > > Gautaz > > Le lun. 15 août 2022 à 18:06, Tommy Murphy <tom...@ho...> a > écrit : > >> Ok, so it sounds like you need a board script that references the >> target/atheros_ar9344.cfg script (and maybe also the >> interface/ftdi/minimodule.cfg script?) but also describes other aspects of >> the target board - in particular the RAM and flash mentioned here under >> "Hardware"? >> >> >> https://www.embeddedideation.com/2014/03/dissecting-the-airport-express/#hardware >> >> How are these attached to the memory map of the AR9344? >> >> OpenOCD has a SPI NOR flash driver but I don't see the Winbond W25Q128BV >> device listed here >> >> >> https://github.com/openocd-org/openocd/blob/9cd714cd145a73a4f43bdfc37554f4d5ab05f92b/src/flash/nor/spi.c#L90 >> >> But maybe some other SPI related flash driver is more appropriate to look >> at. I'm not really au fait with the OpenOCD SPI flash support >> unfortunately. I presume that you have read the OpenOCD manual sections on >> board scripts, SPI flash support etc. and examined existing board scripts >> in case any have anything relevant to what you need? >> > |