3回答

0收藏

Atmel SAM 初体验

其他 其他 4031 人阅读 | 3 人回复 | 2013-01-07

本帖最后由 CodeMonkey 于 2013-1-7 18:36 编辑

刚拿到手时候,比想象中还要小...

因为它比我的名片还小...神啊...

我们驱动他,要下载这个东西:

http://www.atmel.com/tools/SAM4S-XPLD.aspx?tab=documents

其实在我的Windows 8 x64上本身没有识别障碍.



不过那个文件还是要下载的,因为里面有个开发板演示程序,为什么我的板子LED刚拿回来不会闪啊...


进入Setting up目录,安装SAM-BA,有用的啦.



安装完还会打开一个指导页面升级USB驱动...



还要打上一个Patch
  1. How to Apply SAM4S Patch for SAM-BA v2.11

  2. - Create a backup 'tcl_lib' and 'drv' directory in SAM-BA v2.11 before starting.
  3. - Unpack the patch in an empty folder.
  4. - Copy the new 'tcl_lib' directory to overwrite the old one.
  5. - Copy the new 'applets' directory to overwrite the old one.
  6. - Copy the new 'drv' directory to update Segger driver(JLinkARM.dll) if needed.
  7. - After the copying is finished, the patch is finished.

  8. Note:
  9.     1. In this patch, it contains Segger driver JLinkARM.dll V4.36e. For latest vesion, please visit: http://www.segger.com/cms/jlink-software.html

  10. Version History:

  11. V0.1
  12. ---
  13.     1. First release.
  14.     2. Known issue: Flash "Erase all" command will be timeout with COM connection.
复制代码


这个时候,电脑不知不觉已经多了好多软件...



.首先擦除Flash。跳线J25短接时,上电后自动擦除SAM4S16C Flash中内容。短接跳线J25和J7,连接micro USB JTAG口,等待3~5秒钟完成擦除。

执行SAM4S_XPLD_DEMO_Programming写入个demo,在recovery目录.

然后等啊等...


原来出错了....
  1. -I- Waiting ...
  2. -I- TCL platform : Windows NT
  3. -I- SAM-BA 2.11  on : windows
  4. -I- Retrieved arguments from command line :
  5. -I- argv 0 : \jlink\ARM0
  6. -I- argv 1 : at91sam4s16-ek
  7. -I- argv 2 : SAM4S_XPLD_Programming.tcl
  8. 0
  9. \jlink\ARM0
  10. -I- Connection : \jlink\ARM0 (target(comType) = 2)
  11. -I- Board : at91sam4s16-ek
  12. -I- Traces Level : 4
  13. -I- target(handle) : 128284312
  14. Read device Chip ID at 0x400e0640 --- get 0x00000000
  15. Read device Chip ID at 0x400e0740 --- get 0x28ac0ce0
  16. -I- Found processor : at91sam4s16 (Chip ID : 0x28ac0ce0)
  17. sourcing device file C:/Program Files (x86)/ATMEL Corporation/sam-ba_2.11/sam-ba.exe/../tcl_lib/devices/at91sam4s16.tcl
  18. sourcing board description file C:/Program Files (x86)/ATMEL Corporation/sam-ba_2.11/sam-ba.exe/../tcl_lib/at91sam4s16-ek/at91sam4s16-ek.tcl
  19. -I- Loading applet applet-lowlevelinit-sam4s16.bin at address 0x20000800
  20. -I- Memory Size : 0x2 bytes
  21. -I- Buffer address : 0x4
  22. -I- Buffer size: 0x0 bytes
  23. -I- Applet initialization done
  24. -I- Low level initialized
  25. -I- Loading applet applet-flash-sam4s16.bin at address 0x20000800
  26. -I- Memory Size : 0x100000 bytes
  27. -I- Buffer address : 0x20002054
  28. -I- Buffer size: 0x1DA00 bytes
  29. -I- Applet initialization done
  30. -I- FLASH initialized
  31. -I- Command line mode : Execute script file : SAM4S_XPLD_Programming.tcl
  32. -E- Script File SAM4S_XPLD_Programming.tcl returned error : couldn't read file "SAM4S_XPLD_Programming.tcl": no such file or directory - couldn't read file "SAM4S_XPLD_Programming.tcl": no such file or directory
  33.     while executing
  34. "source $scriptFile"
复制代码
找不到文件,怀疑是路径太深了,所以大家要注意,不能随便桌面解压哦...

然后换一下地址,就可以写了.... 接下来的...慢慢研究...

如果实在不行,还能直接打开SAM-BA...





Blog:http://www.lijingquan.net/
分享到:
回复

使用道具 举报

回答|共 3 个

倒序浏览

沙发

小菜儿

发表于 2013-1-7 18:24:53 | 只看该作者

沙发支持一个!!!
板凳

QQ哥

发表于 2013-1-7 18:56:23 | 只看该作者

估计我的明天才到啊~~~~~
我就是QQ哥,QQ哥就是我!
https://www.cirmall.com/bbs/?fromuser=QQ%E5%93%A5
地板

xiaopaohu123

发表于 2013-1-7 19:23:35 | 只看该作者

地板是我的了
您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条