提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
前言
提示:这里可以添加本文要记录的大概内容:
例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。
提示:以下是本篇文章正文内容,下面案例可供参考
一、泰凌微TLSR825X Flash介绍?
泰凌微TLSR825X的Flash的存储信息是以一个扇区去衡量,每个扇区为4096(4K字节)
其中,通常是以0x78000到0x80000为Flash空间进行使用即可
二、使用步骤
1.Flash的读写函数以及擦除函数
代码如下(示例):
页写函数:
* @return none
* 这个函数将缓冲区的内容写到页面中。
* @param[in] addr页面的起始地址
* @param[in] len需要写入页面的内容的长度(字节)
* @param[in] buf需要写入的内容的起始地址
* @return没有
*/
_attribute_ram_code_ void flash_write_page(unsigned long addr, unsigned long len, unsigned char *buf)
页读函数:
/**
* @brief This function reads the content from a page to the buf.
* @param[in] addr the start address of the page
* @param[in] len the length(in byte) of content needs to read out from the page
* @param[out] buf the start address of the buffer
* @return none
*/
_attribute_ram_code_ void flash_read_page(unsigned long addr, unsigned long len, unsigned char *buf)
擦除函数: