• Visit https://www.embeddedcomputers.net/ for Hardware; Software and all other things related to FlashcatUSB

Support for SPI NAND HEYANG HYF1GQ4UDACAE

lpraderi

New Member
Code:
Connected to FlashcatUSB Classic, firmware version: 4.55
Detecting connected Flash device...
Initializing SPI NAND device mode
Successfully opened device in SPI NAND mode
Connected to SPI NAND Flash (RDID:0xC90021)
Flash memory detected but not found in Flash library
Disconnected from FlashcatUSB Classic device

FlashDB.Add(New SPI_NAND("Heyang HYF1GQ4UDACAE", &HC9, &H21, 2048, 64, 64, 1024, False, SPI_3V)) '1Gb

Same specs of Winbond W25N01GV and same ooblayout.
Cant find datasheets , just some driver code of both nands.

C-like:
#define _SPI_NAND_MANUFACTURER_ID_WINBOND        0xEF
#define _SPI_NAND_DEVICE_ID_W25N01GV        0xAA
{
        mfr_id:                    _SPI_NAND_MANUFACTURER_ID_WINBOND,
        dev_id:                    _SPI_NAND_DEVICE_ID_W25N01GV,
        ptr_name:                "WINBOND W25N01G",
        device_size:                _SPI_NAND_CHIP_SIZE_1GBIT,
        page_size:                _SPI_NAND_PAGE_SIZE_2KBYTE,
        oob_size:                _SPI_NAND_OOB_SIZE_64BYTE,
        erase_size:                _SPI_NAND_BLOCK_SIZE_128KBYTE,
        dummy_mode:                SPI_NAND_FLASH_READ_DUMMY_BYTE_APPEND,
        read_mode:                SPI_NAND_FLASH_READ_SPEED_MODE_DUAL,
        write_mode:                SPI_NAND_FLASH_WRITE_SPEED_MODE_SINGLE,
        oob_free_layout:            &ooblayout_winbond,
        feature:                SPI_NAND_FLASH_FEATURE_NONE,
    },
struct spi_nand_flash_ooblayout ooblayout_winbond = {
    .oobsize = 32,
    .oobfree = {{0,8}, {16,8}, {32,8}, {48,8} }
};

#define _SPI_NAND_MANUFACTURER_ID_HEYANG        0xC9
#define _SPI_NAND_DEVICE_ID_HYF1GQ4UDACAE    0x21
    {
        mfr_id:                    _SPI_NAND_MANUFACTURER_ID_HEYANG,
        dev_id:                    _SPI_NAND_DEVICE_ID_HYF1GQ4UDACAE,
        ptr_name:                "HEYANG HYF1GQ4UDACAE",
        device_size:                _SPI_NAND_CHIP_SIZE_1GBIT,
        page_size:                _SPI_NAND_PAGE_SIZE_2KBYTE,
        oob_size:                _SPI_NAND_OOB_SIZE_64BYTE,
        erase_size:                _SPI_NAND_BLOCK_SIZE_128KBYTE,
        dummy_mode:                SPI_NAND_FLASH_READ_DUMMY_BYTE_APPEND,
        read_mode:                SPI_NAND_FLASH_READ_SPEED_MODE_DUAL,
        write_mode:                SPI_NAND_FLASH_WRITE_SPEED_MODE_SINGLE,
        oob_free_layout:            &ooblayout_type1,
        feature:                SPI_NAND_FLASH_FEATURE_NONE,
    },
struct spi_nand_flash_ooblayout ooblayout_type1 = {
    .oobsize = 32,
    .oobfree = {{0,8}, {16,8}, {32,8}, {48,8}}
};
 
Hi Pantheon,
Thanks for your quick reply ... its more a like Pull request for next software release.
This way more FC users will get benefit of new chip supported.
Best regards.-
 
Hi again,
compiled latest Console source with added flash ...
Code:
Welcome to the FlashcatUSB interfacing software, build: 636
Copyright 2022 - Embedded Computers LLC
Running on: Windows (64 bit)
FlashcatUSB Script Engine build: 312
License status: non-commercial use only
Performing memory Auto-Detect
Waiting to connect to FlashcatUSB
Successfully connected to FlashcatUSB over USB
Connected to FlashcatUSB Classic, firmware version: 4.55
Detecting connected Flash device...
Initializing SPI NAND device mode
Successfully opened device in SPI NAND mode
Connected to SPI NAND Flash (RDID:0xC90021)
Flash detected: Heyang HYF1GQ4UDACAE (134,217,728 bytes)
Flash page size: 2048 bytes (64 bytes extended)
NAND block manager disabled
Successfully detected SPI NAND Flash device
Setting SPI clock to: 8 Mhz
----------------------------------------------
Application completed
Disconnected from FlashcatUSB Classic device
So far .. so good will read (1GB @ 50k/s) and check.
 
Back
Top