版主: wanchong , wangyu , eepwwp , firedom

分享到:
共7条 1/1 1   

阿勇试玩爱迪生手记-献给ardiuno新手

    [您是本帖的第7873位阅读者]
siasjack
我是GG
高级会员

最后登陆时间:2014-10-24 11:14:35

直达楼层
1# 发表于 2014-11-17 23:17:54

上周五(11/14)收到风月的快递,寄到我媳妇那的,晚上看到心仪已久的爱迪生….那个激动,赶紧给他扒光!!!

看看裸照!

 

 开箱

 

正面照,根据狂龙大哥帖子的提示和官方资料overviewEdison Overview.pdf

 

看个背面,虽然我不是搞硬件的,对硬件也没啥研究,但是也看过一些路由器的电路板,感觉这个板子的做工还是不错的,听实在,手感也不错,哈哈

 

看看拆下来的核心板

 

想必大家肯定都看过一些报道,说是和邮票大小,和SD卡大小,那就来比较比较

 

合体比较,就大那么一点,说实话第一次知道这货这么小竟然能将cpu,内存,emmc存储,wifi,蓝牙4.0,陶瓷天线等核心的东西集成在那么小的地方很吃惊。。。

 

再看个官方OVERVIEW

 

正式开始试玩,首先生命,本人玩openwrt,路由器wifi的,没玩过ardiuno和树莓派,而edision可以使用ardiunoIDE,肯定是借助了一些ardiuno的设计理念,有很多相似之处,玩过ardiuno的肯定对这个更容易上手,所以我的经历更适合一些ardiuno新手的人!

连了两个USB,一个供电一个调试串口,secureCRT走起!

启动信息太长,也很重要,我会另外开个帖子发上来启动信息,供大家以后板子出问题时参考。下面先列出来cpuinfo

root@jackChen:/proc# cat cpuinfo

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 74

model name : Genuine Intel(R) CPU 4000 @ 500MHz

stepping : 8

microcode : 0x810

cpu MHz : 500.000

cache size : 1024 KB

physical id : 0

siblings : 2

core id : 0

cpu cores : 2

apicid : 0

initial apicid : 0

fdiv_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 11

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf nonstop_tsc_s3 pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms

bogomips : 998.40

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

processor : 1

vendor_id : GenuineIntel

cpu family : 6

model : 74

model name : Genuine Intel(R) CPU 4000 @ 500MHz

stepping : 8

microcode : 0x810

cpu MHz : 500.000

cache size : 1024 KB

physical id : 0

siblings : 2

core id : 1

cpu cores : 2

apicid : 2

initial apicid : 2

fdiv_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 11

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf nonstop_tsc_s3 pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms

bogomips : 998.40

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

root@jackChen:/proc#

从上面可以看出来,双核500Mhz1M缓存,感觉用来做一般嵌入式应用真的亏了!

Free信息看到总内存有980M左右,开机后已经使用的是80M+,对于一般应用真的足够了。。。。

Ok介绍先到此结束,下面我的目标是先把前面几位大侠做的东西学习一遍,比如狂龙的tcp2serial,二叔的helloword,花式blink

目前玩的遇见了几个问题,先备忘下,等明天解决了就上解决方法

1、  USB接口不支持NTFS格式的U盘,如下截图

 

2、  Configura_edision命令扫描wifi失败

 

问了狂龙,他扫描成功,但是我的确实失败!原因还未知,,,

系统完整启动信息来这!http://bbsquark.eepw.com.cn/thread/240/1

此帖由siasjack于2014-11-17 23:23:12最后编辑

RE: 阿勇试玩爱迪生手记-献给ardiuno新手

siasjack
我是GG
高级会员

最后登陆时间:2014-10-24 11:14:35

2# 发表于 2014-11-19 21:35:55

wifi无法连接的问题还没搞定

还遇见了无法在pc上显示767M的盘符,结果在狂龙的点拨下换了条数据线,尼玛启动完成后立马提示装驱动!

真是数据线的问题。。。。尼玛啊!

接线方法:通过USB供电,注意开关扳向USB方向

l启动后在pc资源管理器发现dragon盘符,没有文件,我就把这几天几个重要的文件放进去,给大家分享

 

拷贝的速度在5.7MB左右,速度还算不错把!

 

RE: 阿勇试玩爱迪生手记-献给ardiuno新手

siasjack
我是GG
高级会员

最后登陆时间:2014-10-24 11:14:35

3# 发表于 2014-11-19 22:09:01

ardiuno IDE下载blink程序不成功的问题解决了,原因也是上面USB数据线的问题

这玩意导致我出现了好多问题,恨透了!

当USB没问题时,在IDE的“工具”->“串口”中应该i有两个com口,我的体现为com7和com9,其实com7就是debug调试口,com9就是下载程序的,此处选择com9

 

然后在IDE的“文件”->"实例"->basic->blink

就会出现如下的代码

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}

 

直接先编译,没问题后,点击旁边的下载,第一次编译需

要点时间,也就是30s左右,以后就快了!

一会会出现下载完毕的提示

这时候板子的灯就在闪了!

成功了!

 

RE: 阿勇试玩爱迪生手记-献给ardiuno新手

siasjack
我是GG
高级会员

最后登陆时间:2014-10-24 11:14:35

4# 发表于 2014-11-19 23:25:57

板子上安装了gdb

 

下载了gdb源码,放进sd卡中,gdb-7.8.tar.gz

tar解压:tar xvzf gdb-7.8.tar.gz

#cd gdb-7.8/

#./configure

#make

很久很久以后

出现了如下的错误

checking for xgettext... /usr/bin/xgettext

checking for msgmerge... /usr/bin/msgmerge

/home/ayong/gdb-7.8/opcodes/configure: .: line 12687: can't open './configure.host'

Makefile:2991: recipe for target 'configure-opcodes' failed

make[1]: *** [configure-opcodes] Error 1

make[1]: Leaving directory '/home/ayong/gdb-7.8'

Makefile:832: recipe for target 'all' failed

make: *** [all] Error 2

root@jackChen:/home/ayong/gdb-7.8#

 

重新解压编译一遍还是这个错误!百度谷歌了一下,没收效!!

干脆不管他!

#make install

还是报错和opcodes有关,正常啊,因为上面就没编译通过

make[2]: Entering directory '/home/ayong/gdb-7.8/opcodes'

make[2]: *** No rule to make target 'install'.  Stop.

make[2]: Leaving directory '/home/ayong/gdb-7.8/opcodes'

Makefile:3105: recipe for target 'install-opcodes' failed

make[1]: *** [install-opcodes] Error 2

make[1]: Leaving directory '/home/ayong/gdb-7.8'

Makefile:2153: recipe for target 'install' failed

make: *** [install] Error 2

root@jackChen:/home/ayong/gdb-7.8#

但是但是。。。。奇迹总是有的,估计只是opcodes没有编译通过,但是gdb最基本的东西已经有了!

root@jackChen:/home/ayong/gdb-7.8# gdb

GNU gdb (GDB) 7.6.2

Copyright (C) 2013 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "i586-poky-linux".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

(gdb) q

哈哈   碉堡了!gdb使用成功。测试了单步调试helloword,成功!gdbserver也安装成功了,网友们自行使用补脑把!

root@jackChen:/home/ayong/gdb-7.8# gdb

gdb        gdbserver

root@jackChen:/home/ayong/gdb-7.8# gdbserver  --help

Usage:  gdbserver [OPTIONS] COMM PROG [ARGS ...]

        gdbserver [OPTIONS] --attach COMM PID

        gdbserver [OPTIONS] --multi COMM

COMM may either be a tty device (for serial debugging), or

HOST:PORT to listen for a TCP connection.

Options:

  --debug               Enable general debugging output.

  --remote-debug        Enable remote protocol debugging output.

  --version             Display version information and exit.

  --wrapper WRAPPER --  Run WRAPPER to start new programs.

  --once                Exit after the first connection has closed.

Report bugs to "<http://www.gnu.org/software/gdb/bugs/>".

root@jackChen:/home/ayong/gdb-7.8#

 

RE: 阿勇试玩爱迪生手记-献给ardiuno新手

siasjack
我是GG
高级会员

最后登陆时间:2014-10-24 11:14:35

5# 发表于 2014-11-19 23:27:02

对于我这天天使用vim的人来说敲个vi总是感觉不对劲!装个vim

 

下载源码包vim-7.4.tar.bz2,放进sd卡中,解压

然后进入文件夹,
#./configure

#make---------时间有点长啊!好在不出错!将近20分钟呢!

#make install

#vim

~

~

~

~                              VIM - Vi IMproved

~

~                                 version 7.4

~                           by Bram Moolenaar et al.

~

~

~

~                              VIM - Vi IMproved

~

~                                 version 7.4

~                           by Bram Moolenaar et al.

~                 Vim is open source and freely distributable

~

~                        Become a registered Vim user!

~                type  :help register<Enter>   for information

~

~                type  :q<Enter>               to exit

~                type  :help<Enter>  or  <F1>  for on-line help

~                type  :help version7<Enter>   for version info

~

~                        Running in Vi compatible mode

~                type  :set nocp<Enter>        for Vim defaults

~                type  :help cp-default<Enter> for info on this

~

 

RE: 阿勇试玩爱迪生手记-献给ardiuno新手

二叔
我是GG
高级会员

最后登陆时间:2014-10-23 10:40:53

6# 发表于 2014-11-25 09:10:55
赞一个,再补充一些,如果只是玩arduino,只需连接那个“供电口”就够了,“调试口”是给linux用的

RE: 阿勇试玩爱迪生手记-献给ardiuno新手

caocheng
我是GG
高级会员

最后登陆时间:2014-07-23 11:45:14

7# 发表于 2014-12-15 13:43:36
漂亮
共7条 1/1 1   
快速回复主题
  • 匿名不能发帖!请先 [ 登陆 注册 ]