焊出来试试,再向大家汇报 作者: 春暖花开 时间: 2012-2-11 08:46
大神,有kineties相关的给力资料吗,如详细教程之类的作者: 雪藏的企鹅 时间: 2012-2-12 21:33
这两天一直调板子,第一块K60就被锁了,用usbdm,jlink,ulink都不行,都是target is secured,提示方法都是earse mass flash。CW,MDK,IAR都用了,没有解决呀,还参考了IAR的解决方法:
Technical Note 77989
Permanent Device Lock/Secure of Freescale Kinetis K60Xxxx
EW targets: ARM
EW component: General issues
Keywords: .icf file, linking
Last update: April 1, 2011
Problem
When you create a new project from scratch for a Freescale Kinetis K60Xxxx device, using Target -> Core: "Cortex-M4", or Device -> "Freescale K60Xxxx", the default linker configuration file "generic_cortex.icf" will be selected.
This linker configuration file may cause a permanent device secure (i.e. the device is made impossible to re-program), when you download your code to the board.
Solution
Use the following linker configuration file for K60Xxxx devices:
$TOOLKIT_DIR$\examples\Freescale\K60\
TWR-K60\GettingStarted\config\K60X_Flash.icf
Background
The default linker configuration file for ARM Cortex in IAR Embedded Workbench IDE places code starting at location 0. The problem is that once the code grows to encompass address 0x40C, the NVFSEC register will be programmed.
There are two bits in the NVFSEC register that can permanently disable the mass erase functionality on the chip. These bits are called Mass Erase Enable Bits (MEEN). In this same register there are also two bits that controls the Flash security (SEC). When used in conjunction, they can permanently lock the device.
Note that when selecting Options -> Target -> Device: Freescale K60Xxxx, the option Linker -> Config -> "Linker configuration file" is set to "generic_cortex.icf" by default.
To change the settings, see the attached pictures on the right hand side of this page.
Note 1:
All example projects included in the IAR K60N512 kit overrides the default linker configuration file with either "K60X_ram.icf" or "K60X_Flash.icf", and the device lock problem does not occur.
Note 2:
The example projects provided with Freescale MQX includes a vector table in "vector.c" that is extended to cover the flash config area and sets the proper values.
Note 3:
If the device has been locked with the Flash security bits only, you can unlock the device using the J-Link Commander (jlink.exe) command:
J-Link> unlock Kinetis
都不好用,第一片K60就牺牲了,明天再换片吧。用过LPC111X,STM32,LM3S,都有锁片子的情况,FSL解决起来是最没数的,因为它没有ISP方式.作者: 雪藏的企鹅 时间: 2012-2-12 22:32
大功告成,跑起来了。以后调程序尽量在RAM下调,安全。下一步调TF卡。作者: 雪藏的企鹅 时间: 2012-2-12 23:19
Kinetis容易被锁住,死锁的几率比较大,在FSL的坛子里也有很多人遇到这个问题,都快把死锁看作kinetis 的bug了,看FSL的坛子: http://forums.freescale.com/t5/K ... 0-locked/td-p/73283作者: xjtuzhanghongji 时间: 2012-2-12 23:20
如果只是用来做智能车,还是建议不要引出所有引脚,这样能做的更小走线更漂亮 作者: 雪藏的企鹅 时间: 2012-2-13 20:40
做智能车,用100脚都浪费。做一次小系统板,考虑不到将来能用到什么,哪些用不着,所以把所有引脚引出是为了以后用时选择的多些,作者: jmty 时间: 2012-4-9 10:54 作者: 秋天01号 时间: 2012-4-18 11:27
小弟初学,楼主能将PCB源文件发给我学习一下不?小弟先谢过了。。。 1150908731@qq.com作者: dongy 时间: 2012-4-19 15:48
雪藏的企鹅 发表于 2012-2-12 21:33
这两天一直调板子,第一块K60就被锁了,用usbdm,jlink,ulink都不行,都是target is secured,提示方法都是ea ...