회원가입 ID/PW 찾기

1) 지식 창고는 본인이 작성한 콘텐츠(팁/노하우/리소스/강좌 등)을 무료 혹은 가상화폐인 납포인트를 통해 공유하는 공간입니다.
2) 본인이 작성한 콘텐츠에 대해서만 지식 창고에 등록할 수 있으며, 저작권에 위배되는 콘텐츠는 사전경고 없이 삭제될 수 있습니다.
3) 콘텐츠 구매 및 첨부파일 다운로드는 회원그룹 '연구원' 이상 가능하오니, 경험치를 쌓아 진급한 후에 이용 부탁드립니다.
4) 무료 콘텐츠의 본문은 구매절차 없이 즉시 이용할 수 있으며, 판매 납포인트가 있는 콘텐츠는 구매 후 이용할 수 있습니다.
5) 콘텐츠 판매에 따른 납포인트 수익은 지정한 비율(50%)에 따라 판매자에게 지급하며, 납포인트 수익을 통해 진급을 빨리할 수 있습니다.
6) 구매 후 평가를 하면 구매 납포인트의 20%를 돌려 드립니다.

콘텐츠 수 110
판매자 아크마 판매 납포인트 무료 평점 0점 / 총 0명 참여
INTRODUCTION
The PIC16F87X family of microcontrollers has the ability
to write to their own program memory. This feature
allows a small bootloader program to receive and write
new firmware into memory. This application note
explains how this can be implemented and discusses
the features that may be desirable.
In its most simple form, the bootloader starts the user
code running, unless it finds that new firmware should
be downloaded. If there is new firmware to be downloaded,
it gets the data and writes it into program memory.
There are many variations and additional features
that can be added to improve reliability and simplify the
use of the bootloader, some of which are discussed in
this application note.
The general operation of a bootloader is discussed in
the OPERATION section. Appendix A contains assembly
code for a bootloader developed for the PIC16F877
and key aspects of this bootloader are described in the
IMPLEMENTATION section.
For the purpose of this application note, the term “boot
code” refers to the bootloader code that remains permanently
in the microcontroller and the term “user
code” refers to the user’s firmware written into FLASH
memory by the boot code.
FEATURES
The more common features a bootloader may have are
listed below:
• Code at the Reset location.
• Code elsewhere in a small area of memory.
• Checks to see if the user wants new user code to
be loaded.
• Starts execution of the user code if no new user
code is to be loaded.
• Receives new user code via a communication
channel if code is to be loaded.
• Programs the new user code into memory.
OPERATION
The boot code begins by checking to see if there is new
user code to be downloaded. If not, it starts running the
existing user code. If there is new user code to be
downloaded, the boot code receives and writes the
data into program memory. There are many ways that
this can be done, as well as many ways to ensure reliability
and ease of use.
Integrating User Code and Boot Code
The boot code almost always uses the Reset location
and some additional program memory. It is a simple
piece of code that does not need to use interrupts;
therefore, the user code can use the normal interrupt
vector at 0x0004. The boot code must avoid using the
interrupt vector, so it should have a program branch in
the address range 0x0000 to 0x0003.
The boot code must be programmed into memory
using conventional programming techniques, and the
configuration bits must be programmed at this time.
The boot code is unable to access the configuration
bits, since they are not mapped into the program memory
space. Setting the configuration bits is discussed in
the next section.
In order for the boot code to begin executing the user
code, it must know where the code starts. Since the
boot code starts at the Reset vector, the user code cannot
start at this location. There are two methods for
placing the starting point of the user code.
One method is to use an ORG directive to force the user
code to start at a known location, other than the Reset
vector. To start executing the user code, the boot code
must branch to this fixed location, and the user code
must always use this same location as its start address.
An alternative method is to start the user code at the
normal Reset vector and require that the user code has
a goto instruction in the first four instructions to avoid
the interrupt vector. These four instructions can then be
relocated by the boot code and programmed into the
area of program memory used by the boot code. This
simplifies the development of code for use with the
bootloader, since the user code will run when programmed
directly into the chip without the boot code
present. The boot code must take care of paging and
banking so the normal Reset conditions apply before
executing the relocated code.

모르는 것이 무엇인지 스스로 정리하고 질문하는 습관을 가집시다.
무성의/광범위하거나 직접 해보지 않고 올리는 질문은 서로를 피곤하게 합니다.
질문쪽지는 사절이오니 게시판에 글을 남겨주세요. 그래야 다같이 공유할 수 있으니까요.

첨부

profile
초보태공 2008.10.10 11:42
부트로더 구현에 성공하셨나요?
profile
시나브로69 2017.06.24 16:42
좋은 자료 감사합니다.
search
List of Articles
번호 분류 제목 평점 포인트 판매자 등록일 구매수 조회 수
공지 공공의 목적으로 공유하고자 하는 소프트웨어는 '소프트웨어 자료실'에 업로드를 요청드립니다.
공지 구매후 평점 댓글을 남겨주시면 구매포인트의 20%를 돌려드립니다.
110 Sensor 설계 바이패스필터에 대한 이야기입니다. [8] 무료 BNT 2015-03-09 0 497
109 Sensor 설계 BEAD에 대한 설명입니다. [20] 무료 BNT 2015-03-09 0 640
108 Sensor 설계 Thyristor Theory and Design Considerations_HAND BOOK [2] 무료 sensor 2015-03-06 0 141
107 Sensor 설계 Turbine Flowmeter 자료 [2] 무료 sensor 2015-02-28 0 140
106 Sensor 설계 저전력 발진IC [4] 무료 sensor 2015-02-28 0 275
105 Sensor 설계 Capacitive & Ultrasonic Sensors Theory of Operation [2] 무료 sensor 2015-02-28 0 94
104 Sensor 설계 Reed Switch의 사용시 주의사항 [5] 무료 sensor 2015-02-23 0 231
103 Sensor 설계 SMD Transistors Marking [5] 무료 sensor 2015-02-23 0 191
102 Sensor 설계 OPAMP해설 LMV321 영문입니다. [5] 무료 Interrupter 2011-09-14 0 2272
101 Sensor 설계 perite-beed 사용법 [4] 무료 놀부 2010-12-28 0 1922
100 Sensor 설계 전기전자기초자료입니다.(네번쨰) [19] 무료 프랭키프랭키 2010-11-18 0 2344
99 Sensor 설계 전기전자기초자료입니다.(세번쨰) [13] 무료 프랭키프랭키 2010-11-18 0 2131
98 Sensor 설계 전기전자기초자료입니다.(두번쨰) [16] 무료 프랭키프랭키 2010-11-18 0 2311
97 Sensor 설계 전기전자 기초자료입니다. [17] 무료 프랭키프랭키 2010-11-18 0 2966
96 Sensor 설계 op-amp 설계 가이드북 입니다. [12] 무료 가오루 2010-08-31 0 3362
95 Sensor 설계 릴레이 기술자료 [7] 무료 가오루 2010-08-31 0 1902
94 Sensor 설계 AXIAL TYPE FUSE [3] 무료 가오루 2010-08-31 0 2320
93 Sensor 설계 Tantalum Chip Capacitor datasheet [3] 무료 가오루 2010-08-31 0 2496
92 Sensor 설계 smd codebook [5] 무료 가오루 2010-08-31 0 2442
91 Sensor 설계 3.3V - 5V Level translation [3] 무료 이화세계를위해 2010-08-30 0 2192
  • 사랑은 왕궁에서뿐 아니라 오두막집에서도 산다.
    - J.레이
  • * 납포인트 정보 *
  • 글 작성 : 3
  • 댓글 작성 : 1
저작권법에 위배되는 콘텐츠는 등록 불가하며, 저작물에 대한 권리는 저작자에게 있습니다.
Copyright 2006-2021 © hardwareis.com, All rights reserved.