随笔分类 -  STM32

摘要:主要是为了在RAM中运行程序来解除读保护的。没想到ST-Link Utility 就直接可以。 ST-Link Utility:target-->options bytes-->就可以看到读保护。 解除读保护,选择 Level 0. 其他都不变(WDG_SW,nRST_STDBY,nRST_STOP都按照默认的勾上) 然后点击Apply即可。 读保护: 1: w... 阅读全文
posted @ 2014-04-24 12:06 tofixer 阅读(3656) 评论(0) 推荐(0)
摘要:首先配置好 sourcery codebench 环境。 https://sourcery.mentor.com/GNUToolchain/subscription3053?lite=arm 然后建立如下目录: Libraries下: project 下: 00.Start下: startup_stm32f4xx.s 来自 \Libraries\CMSIS\ST\... 阅读全文
posted @ 2013-12-01 19:29 tofixer 阅读(1528) 评论(0) 推荐(0)
摘要:手册中注意几个地方: RTC_SetAlarm() :The Alarm register can only be written when the corresponding Alarm is disabled (Use the RTC_AlarmCmd(DISABLE)). All RTC interrupts are connected to the EXTI controll... 阅读全文
posted @ 2013-11-17 11:39 tofixer 阅读(1725) 评论(0) 推荐(0)
摘要:新建这个工程各种bug。。。 一个ledtoggle 的工程,下载进去了发现灯不亮,examples中的工程就可以亮。 仔细对比:options: Target--> SFD\ST\STM32F4xx\STM32F40x.sfr , 示例中是 STM32F4xx.sfr,这个应该没影响 后面才发现是没有勾选 Use MicroLIB 的问题。 勾上,灯就亮了。 最后的结论... 阅读全文
posted @ 2013-10-03 16:50 tofixer 阅读(425) 评论(0) 推荐(0)