-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新添加SPI的flash无法正常工作(BY25D16) #46
Comments
估计你没有定义这个宏吧 |
您好,感谢您. #define SFUD_DEBUG_MODE #define SFUD_USING_SFDP #define SFUD_USING_FLASH_INFO_TABLE enum { //BY25D16 not support QSPI //#define SFUD_USING_QSPI #endif /* SFUD_CFG_H */` 2、在sfud_port.c里面实现了spi_write_read函数,且通过之前的工程验证该函数读取写入flash是实现成功了的。文件代码如下: #include "nrf_drv_spi.h" #include "nrf_log.h" static char log_buf[256]; void sfud_log_debug(const char *file, const long line, const char *format, ...); static void spi_lock(const sfud_spi *spi) static void spi_unlock(const sfud_spi *spi) extern sfud_err spi_write_read(const sfud_spi *spi, const uint8_t write_buf, size_t write_size, uint8_t read_buf,
//FLASH_CS_LOW();
exit:
} #ifdef SFUD_USING_QSPI
//delay function comes from LU. /* about 100 microsecond delay */ sfud_err sfud_spi_port_init(sfud_flash *flash) {
} /**
} /**
} |
1、sfud_spi_port_init接口中发现需要release powerdown(0xAB)后方可正常使用SFUD,不知其他flash是否存在这个问题。 |
3、建议集成poweroff和poweron。穿戴设备必备。1uA都是命。 |
好像 poweroff 和 poweron 的命令处理方式在各个 flash 上都有些差异,这块你能确认一下其他 flash 对这块命令的对比情况吗? |
可以. 我回头多确认几个. 我估计也有人遇到这个问题. |
@armink 请帮忙看下这是什么问题呢.
<00> info> app: Start initialize Serial Flash Universal Driver(SFUD) V1.1.0. <00> info> app: You can get the latest version on https://github.com/armink/SFUD . <00> info> app: The flash device manufacturer ID is 0x00, memory type ID is 0x00, capacity ID is 0xBD. <00> info> app: Error: Check SFDP signature error. It's must be 50444653h('S' 'F' 'D' 'P'). <00> info> app: Warning: Read SFDP parameter header information fail<info> app: Warning: This flash device is not found or not support. <00> info> app: Error: BY25D16 flash device is initialize fail.
在SFUD_FLASH_CHIP_TABLE的末尾已经添加了{"BY25D16", SFUD_MF_ID_BOYA, 0x40, 0x15, 2L1024L1024L, SFUD_WM_PAGE_256B, 4096, 0x20},
感谢
The text was updated successfully, but these errors were encountered: