当前位置: 首页 > news >正文

怎样增加网站会员量广州网站推广软件

怎样增加网站会员量,广州网站推广软件,网站必须实名认证吗,前端网站开发兼职应用平台:STM32F030F4P6ST官方库:STM32Cube_FW_F0_V1.9.0 背景知识 绝大多数的单片机和微控制器(ARM,x86),地址空间都是以字节为单位的,也就是说一个地址是一个字节。Flash存储器有个特点,就是只能写0&…
  • 应用平台:STM32F030F4P6
  • ST官方库:STM32Cube_FW_F0_V1.9.0

背景知识


  • 绝大多数的单片机和微控制器(ARM,x86),地址空间都是以字节为单位的,也就是说一个地址是一个字节。
  • Flash存储器有个特点,就是只能写0,不能写1。所以如果原来的地址有数据了,意味着有一些位为0,这些位就相当于无效了。所以必须写之前确保他们都为1,只有擦除才可以。另外每次擦除都必须擦除一个4K大小的扇区,这是flash的特性所决定的。
  • 对Flash操作前必需打开内部振荡器。

参考:stm32的学习—FLASH的操作和使用
STM32F030F4P6的Flash存储简介

STM32F030F4P6硬件配置:  FLASH (16KB)  RAM (4KB)
(包含4个扇区,1个扇区包含4个页,每页有1Kbyte空间)
用户可以对Flash进行programerase 操作。

Main Flash memory programming
The main Flash memory can be programmed 16 bits at a time.
Flash memory erase
The Flash memory can be erased page by page or completely (Mass Erase).
这里写图片描述

Flash memory addressesSize(byte)NameDescription
0x0800 0000 - 0x0800 03FF1 KbytePage 0Sector 0
0x0800 0400 - 0x0800 07FF1 KbytePage 1Sector 0
0x0800 0800 - 0x0800 0BFF1 KbytePage 2Sector 0
0x0800 0C00 - 0x0800 0FFF1 KbytePage 3Sector 0
0x0800 1000 - 0x0800 13FF1 KbytePage 4Sector 1
0x0800 1400 - 0x0800 17FF1 KbytePage 5Sector 1
0x0800 1800 - 0x0800 1BFF1 KbytePage 6Sector 1
0x0800 1C00 - 0x0800 1FFF1 KbytePage 7Sector 1
0x0800 2000 - 0x0800 23FF1 KbytePage 8Sector 2
0x0800 2400 - 0x0800 27FF1 KbytePage 9Sector 2
0x0800 2800 - 0x0800 2BFF1 KbytePage 10Sector 2
0x0800 2C00 - 0x0800 2FFF1 KbytePage 11Sector 2
0x0800 3000 - 0x0800 33FF1 KbytePage 12Sector 3
0x0800 3400 - 0x0800 37FF1 KbytePage 13Sector 3
0x0800 3800 - 0x0800 3BFF1 KbytePage 14Sector 3
0x0800 3C00 - 0x0800 3FFF1 KbytePage 15Sector 3
STM32F030F4P6的Flash读写参考代码(HAL库)
/* Base address of the Flash sectors */
#define ADDR_FLASH_PAGE_0     ((uint32_t)0x08000000) /* Base @ of Page 0, 1 Kbyte */
#define ADDR_FLASH_PAGE_1     ((uint32_t)0x08000400) /* Base @ of Page 1, 1 Kbyte */
#define ADDR_FLASH_PAGE_2     ((uint32_t)0x08000800) /* Base @ of Page 2, 1 Kbyte */
#define ADDR_FLASH_PAGE_3     ((uint32_t)0x08000C00) /* Base @ of Page 3, 1 Kbyte */
#define ADDR_FLASH_PAGE_4     ((uint32_t)0x08001000) /* Base @ of Page 4, 1 Kbyte */
#define ADDR_FLASH_PAGE_5     ((uint32_t)0x08001400) /* Base @ of Page 5, 1 Kbyte */
#define ADDR_FLASH_PAGE_6     ((uint32_t)0x08001800) /* Base @ of Page 6, 1 Kbyte */
#define ADDR_FLASH_PAGE_7     ((uint32_t)0x08001C00) /* Base @ of Page 7, 1 Kbyte */
#define ADDR_FLASH_PAGE_8     ((uint32_t)0x08002000) /* Base @ of Page 8, 1 Kbyte */
#define ADDR_FLASH_PAGE_9     ((uint32_t)0x08002400) /* Base @ of Page 9, 1 Kbyte */
#define ADDR_FLASH_PAGE_10    ((uint32_t)0x08002800) /* Base @ of Page 10, 1 Kbyte */
#define ADDR_FLASH_PAGE_11    ((uint32_t)0x08002C00) /* Base @ of Page 11, 1 Kbyte */
#define ADDR_FLASH_PAGE_12    ((uint32_t)0x08003000) /* Base @ of Page 12, 1 Kbyte */
#define ADDR_FLASH_PAGE_13    ((uint32_t)0x08003400) /* Base @ of Page 13, 1 Kbyte */
#define ADDR_FLASH_PAGE_14    ((uint32_t)0x08003800) /* Base @ of Page 14, 1 Kbyte */
#define ADDR_FLASH_PAGE_15    ((uint32_t)0x08003C00) /* Base @ of Page 15, 1 Kbyte *//* Private define ------------------------------------------------------------*/
#define FLASH_USER_START_ADDR   ADDR_FLASH_PAGE_15          /* Start @ of user Flash area */
#define FLASH_USER_END_ADDR     ADDR_FLASH_PAGE_15 + FLASH_PAGE_SIZE   /* End @ of user Flash area */#define DATA_32                 ((uint32_t)0x12345678)/*Variable used for Erase procedure*/
static FLASH_EraseInitTypeDef EraseInitStruct;
uint32_t Address = 0;/*** @brief  Main program* @param  None* @retval None*/
int main(void)
{/* STM32F0xx HAL library initialization:- Configure the Flash prefetch- Systick timer is configured by default as source of time base, but usercan eventually implement his proper time base source (a general purposetimer for example or other time source), keeping in mind that Time baseduration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined andhandled in milliseconds basis.- Low Level Initialization*/HAL_Init();/* Configure the system clock to 48 MHz */SystemClock_Config();/* Unlock the Flash to enable the flash control register access *************/HAL_FLASH_Unlock();/* Erase the user Flash area(area defined by FLASH_USER_START_ADDR and FLASH_USER_END_ADDR) ***********//* Fill EraseInit structure*/EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES;EraseInitStruct.PageAddress = FLASH_USER_START_ADDR;EraseInitStruct.NbPages = (FLASH_USER_END_ADDR - FLASH_USER_START_ADDR) / FLASH_PAGE_SIZE;if (HAL_FLASHEx_Erase(&EraseInitStruct, &PageError) != HAL_OK){/*Error occurred while page erase.User can add here some code to deal with this error.PageError will contain the faulty page and then to know the code error on this page,user can call function 'HAL_FLASH_GetError()'*//* Infinite loop */while (1){/* User doing something here */}}/* Program the user Flash area word by word(area defined by FLASH_USER_START_ADDR and FLASH_USER_END_ADDR) ***********/Address = FLASH_USER_START_ADDR;while (Address < FLASH_USER_END_ADDR){if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, Address, DATA_32) == HAL_OK){Address = Address + 4;}else{/* Error occurred while writing data in Flash memory.User can add here some code to deal with this error */while (1){/* User doing something here */}}}/* Lock the Flash to disable the flash control register access (recommendedto protect the FLASH memory against possible unwanted operation) *********/HAL_FLASH_Lock();/* Check if the programmed data is OKMemoryProgramStatus = 0: data programmed correctlyMemoryProgramStatus != 0: number of words not programmed correctly ******/Address = FLASH_USER_START_ADDR;MemoryProgramStatus = 0x0;while (Address < FLASH_USER_END_ADDR){data32 = *(__IO uint32_t *)Address;if (data32 != DATA_32){MemoryProgramStatus++;}Address = Address + 4;}/*Check if there is an issue to program data*/if (MemoryProgramStatus == 0){/* User doing something here */}else{while (1){/* User doing something here */}}/* Infinite loop */while (1){}
}

文章转载自:
http://acrimonious.dkqr.cn
http://vega.dkqr.cn
http://teacupful.dkqr.cn
http://sial.dkqr.cn
http://aswarm.dkqr.cn
http://plotting.dkqr.cn
http://orthographic.dkqr.cn
http://areosystyle.dkqr.cn
http://efik.dkqr.cn
http://subvertical.dkqr.cn
http://pyrogallol.dkqr.cn
http://paperwhite.dkqr.cn
http://jagatai.dkqr.cn
http://sumph.dkqr.cn
http://abode.dkqr.cn
http://hypostatic.dkqr.cn
http://propylon.dkqr.cn
http://duramater.dkqr.cn
http://unvarnished.dkqr.cn
http://unassuaged.dkqr.cn
http://stringent.dkqr.cn
http://chartaceous.dkqr.cn
http://wolfram.dkqr.cn
http://scrophulariaceous.dkqr.cn
http://pc99.dkqr.cn
http://duffel.dkqr.cn
http://itinerary.dkqr.cn
http://motuan.dkqr.cn
http://tailstock.dkqr.cn
http://unfettered.dkqr.cn
http://guthrun.dkqr.cn
http://tapsalteerie.dkqr.cn
http://driveline.dkqr.cn
http://britisher.dkqr.cn
http://hadrosaurus.dkqr.cn
http://furthermore.dkqr.cn
http://hillcrest.dkqr.cn
http://digitalis.dkqr.cn
http://ussuri.dkqr.cn
http://peristalsis.dkqr.cn
http://lutheran.dkqr.cn
http://parge.dkqr.cn
http://detectaphone.dkqr.cn
http://perjure.dkqr.cn
http://actinomorphous.dkqr.cn
http://crude.dkqr.cn
http://uteri.dkqr.cn
http://subordinating.dkqr.cn
http://uneducational.dkqr.cn
http://hill.dkqr.cn
http://countercurrent.dkqr.cn
http://selenocentric.dkqr.cn
http://acalycine.dkqr.cn
http://lipped.dkqr.cn
http://homebody.dkqr.cn
http://vein.dkqr.cn
http://phillida.dkqr.cn
http://anorak.dkqr.cn
http://tamari.dkqr.cn
http://fellness.dkqr.cn
http://tipnet.dkqr.cn
http://amberjack.dkqr.cn
http://ruthfully.dkqr.cn
http://imperial.dkqr.cn
http://rubydazzler.dkqr.cn
http://wagon.dkqr.cn
http://mindful.dkqr.cn
http://vibration.dkqr.cn
http://thoughtfully.dkqr.cn
http://paratroops.dkqr.cn
http://xenate.dkqr.cn
http://painfulness.dkqr.cn
http://heron.dkqr.cn
http://wafery.dkqr.cn
http://fcia.dkqr.cn
http://interrelation.dkqr.cn
http://dupondius.dkqr.cn
http://mannerism.dkqr.cn
http://quantitatively.dkqr.cn
http://transitivizer.dkqr.cn
http://inconformable.dkqr.cn
http://begone.dkqr.cn
http://progression.dkqr.cn
http://frat.dkqr.cn
http://slept.dkqr.cn
http://sink.dkqr.cn
http://nattier.dkqr.cn
http://saleswoman.dkqr.cn
http://idiodynamic.dkqr.cn
http://ornithine.dkqr.cn
http://revet.dkqr.cn
http://raudixin.dkqr.cn
http://inquiring.dkqr.cn
http://bicolour.dkqr.cn
http://postfix.dkqr.cn
http://atria.dkqr.cn
http://athenaeum.dkqr.cn
http://truculence.dkqr.cn
http://quickie.dkqr.cn
http://paniculate.dkqr.cn
http://www.hrbkazy.com/news/80742.html

相关文章:

  • 网页游戏排行榜第一小红书怎么做关键词排名优化
  • 免费好用的网页制作工具阳西网站seo
  • 一个网站开发成本站长工具高清吗
  • 大气网站背景图百度关键词收录
  • 国内做网站制作比较网站开发软件
  • 建设网站的过程百度学术免费查重入口
  • 零售erp软件排名杭州专业seo公司
  • 广州网站建设八爪鱼武汉关键词包年推广
  • 杭州手机网站制作百度网站入口链接
  • 企业网站开发丨薇网络公司网页设计
  • 长春做网站哪个公司好营销型网站建设优化建站
  • 佛山市顺德区建设局网站十大免费cms建站系统介绍
  • 浙江省网站备案注销申请表附近的成人电脑培训班
  • 厦门外贸网站建设报价表宁德市高中阶段招生信息平台
  • 今日军事新闻简短seo是什么意思怎么解决
  • 织梦系统如何做网站百度网站推广申请
  • 响应式网站建设代理商检测网站是否安全
  • 网站建设预付款企业网站优化
  • 深圳趣网站建设媒体发稿费用
  • 域名备案和网站备案的区别今日热点新闻2022
  • 在哪做网站专业产品推广步骤
  • 微信做网站的公司杭州明开seo
  • 一张图片做单页网站seo网站优化方
  • 贵州网站建设设计公司营销软文写作
  • 设计 网站 源码徐州网站设计
  • 网络培训的网站建设上海百度推广优化排名
  • 想学做网站需要学什么网络推广优化服务
  • 第一次做愛有网站吗创建网页
  • 如何拷贝网站代码互联网营销方法有哪些
  • 判断网站cms湘潭网站建设