<div dir="ltr">Hello,<div><br></div><div>I'm trying to add jff2 to my current project. I have qspi NAND flash w25q128. Currently it works through the SPI(not QSPI). Operations Write, Read and Erase Sector are working well. </div><div><br></div><div>control struct is:<br><b>static rtems_jffs2_flash_control spiflash_control =<br>{<br>    .block_size = SPIFLASH_BLOCK_SIZE,<br>    .flash_size = SPIFLASH_SIZE,<br>    .read = flash_read,<br>    .write = flash_write,<br>    .erase = flash_erase<br>};</b><br></div><div><br></div><div>where</div><div><b>#define SPIFLASH_BLOCK_SIZE 0x1000<br>#define SPIFLASH_SIZE (16 * SPIFLASH_BLOCK_SIZE)</b><br></div><div> ---------------------------------------</div><div>When I'm trying to mount I see the following sequence:</div><div>1. read sequence for a addresses from 0x1000 to 0xF000</div><div>2. trying to erase on 0xE000 </div><div>3. drop to loop with a message:</div><div><b><4>JFFS2: Failed to allocate page buffer for verifying erase at 0x0000e000. Refiling</b><br></div><div><div><br></div><div>Behavior can be different if I start playing with <b>SPIFLASH_BLOCK_SIZE </b>and <b>SPIFLASH_SIZE </b>but in any cases by the meaning of time I see "Failed to allocate page buffer..." message.</div><div><br></div><div>Could someone suggest what I'm doing wrong?</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span><div style="font-size:12.8px"><font face="verdana, sans-serif" color="#000000">--</font></div><div style="font-size:12.8px"><font face="verdana, sans-serif" color="#000000">Kind regards,</font></div><div style="font-size:12.8px"><font face="verdana, sans-serif" color="#000000"><b>Yaroslav Leshchinsky</b></font></div></span></div></div></div></div></div></div></div>