cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 HAL NAND flash library bug

hypnotriod
Associate II
Posted on May 04, 2015 at 02:31

I found a bug in stm32f4xx_hal_nand.c module, in ''HAL_NAND_Read_Page'' function!

Need to change this line: 

*(__IO uint8_t *)((uint32_t)(deviceAddress | ADDR_AREA)) = 0x00; 

to this:

 *(__IO uint8_t *)((uint32_t)(deviceAddress | CMD_AREA)) = 0x00; 

I used the K9F1G08U0D flash memory, and I need to send 2 extra address bytes first (column address) So I decided to write my own driver for K9F1G08U0D, based on stm32f4xx_hal_nand.c 

Unfortunately I copied Read function with that small issue, and I spent 2 nights to figure out the problem 🙂
1 REPLY 1
ali rostami
Associate III

Hi

Does this bug solved?

can you tell me the line number?