![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
[ bootloader-6410X ]
过去不再从来
反应有点慢
展开
-
uart(1)
universal asynchronous receiver/transmitter (UART)The transmitter and the receiver contain 64-byte FIFOs and data shifters.Data is written to FIFO and then copied to the transmit shifter before b原创 2013-12-07 15:52:26 · 601 阅读 · 0 评论 -
看门狗
http://blog.csdn.net/sukhoi27smk/article/details/32716251A20 看门狗分类: a202014-06-20 16:52 54人阅读 评论(0) 收藏 举报前言 说到看门狗,应该不会陌生,看门狗说白了就是一个定时器,但是它有一个非常重要的功能就是复位系统。在A20里,看转载 2014-07-23 16:09:50 · 778 阅读 · 0 评论 -
6410开发板与pc的连接
环境的搭建:配制环境:1.将u-boot-movi.bin写入sd卡中:./write_sd /dev/sdb u-boot-movi.bin ==>其中/dev/sdb可以通过fdisk -l来查看.sync2.开发板连网:minicom ==>通过串口与板子通信minicom的配制==>minicom -s ls /dev/tty*==>查看pc上的可用原创 2013-09-24 15:28:04 · 992 阅读 · 0 评论 -
PLL_clock_configration
test.c:#include "clock.h"int (*printf)(char *,...) = (void *)0x57e11d4c;int main(){/*FOUT = MDIV X FIN / (PDIV X 2SDIV)APLLCON is c10a0301原创 2013-12-06 20:23:57 · 851 阅读 · 0 评论 -
外部中断(按键1)
#include ".h"void hander_irq();int (*printf)(char *,...) = (void *)0x57e11d4c;int tmp=0;int count=0;void led_on();int main(){*(volatile unsigned long *)0x56000000 = hander_irq;//cpsr原创 2013-12-05 23:58:15 · 1782 阅读 · 0 评论 -
外部中断(2)
#include "key.h"void hander_irq();void led_on();void led_off();void wat_on();void wat_off();int (*printf)(char *,...) = (void *)0x57e11d4c;int flag =1;int flag_two = 1;int main(){原创 2013-12-06 00:42:01 · 793 阅读 · 0 评论 -
(4)watdog-流水灯
#include "watdog.h"void hander_irq();int (*printf)(char *,...) = (void *)0x57e11d4c;int tmp=0;int count=0;void led_on();int main(){*(volatile unsigned long *)0x56000000 = hander_ir原创 2013-12-05 17:18:42 · 585 阅读 · 0 评论 -
watdog(3)
把watdog一直开着,当来一个watdog 中断,打印一句话,当灯亮/灯灭。*********************************************************************************watdog.h://interrupt#define VIC0INTENABLE(*(volatile unsigned long *原创 2013-12-05 17:02:34 · 631 阅读 · 0 评论 -
(2)watdog(c写)
test.c:#define VIC0INTENABLE(*(volatile unsigned long *)0x71200010)#define VIC0INTSELECT (*(volatile unsigned long *)0x7120000C)#define VIC0SOFTINT (*(volatile unsigned long *)0x71200018)i原创 2013-12-05 15:50:40 · 527 阅读 · 0 评论 -
(1)内部中断—watdog
还有几天的时间,反反复复,借这个机会,重来一下bootloader,一直以来是一个yihan.也复习一下,6410的裸版开发。这么些天没有学习,大概一个月的时间,好好整理一下心情,进入工作了!加油啊!step 1 :set arm cpsr mrs r0,cpsr #将cpsr中的内容取出来,放在r0中。 bic r0,r0 #0x80原创 2013-12-05 15:39:58 · 752 阅读 · 0 评论 -
uart(4)-输入命令来控制灯亮灭
输入一个"led_on",就打开四展灯;输入一个"led_off",就关闭四展灯;************************************************************************************test.c文件如下:#include "uart.h"void putchar(unsigned char s1);void p原创 2013-12-08 16:59:15 · 1131 阅读 · 0 评论 -
UART(2)—从uart发一个字符串给minicom
从我们的uart的TX端发送一个字符串“hello world”给我们PC上的minicom.***************************************************************************************test.c文件如下:#include "uart.h"void my_memcopy(char *soc,c...原创 2013-12-08 15:18:32 · 2400 阅读 · 2 评论 -
uart(3)pc->arm->pc
从pc中的minicom中输入字符,然后通过arm中的uart的Rx接收到一个buffer中,又通arm中的uart的Tx发送给pc的minicom.*************************************************************************test.c文件如下:#include "uart.h"void putchar(uns原创 2013-12-08 16:34:37 · 533 阅读 · 0 评论 -
快捷开发环境搭建
2013年09月10日搭建环境:1.bootloader设置2.首先得到zImage3.制作根文件系统4.各种服务:tftp,nfs,arm-gcc.**********************************1.设置bootloader ==>ipaddr serverip bootargs bootcmd让我们的板子与pc相互连接起来bootcmd=tf原创 2013-10-08 20:33:56 · 510 阅读 · 0 评论