没有合适的资源?快使用搜索试试~ 我知道了~
Rl78 bootloader vector table application notes.pdf
4星 · 超过85%的资源 需积分: 36 48 下载量 153 浏览量
2020-07-31
19:18:17
上传
评论 2
收藏 512KB PDF 举报
温馨提示
试读
3页
此文针对是对bootloader有一定理解,汽车应用行业,有一定的汇编基础,图文并茂,深入浅出,有助于关键点理解!
资源推荐
资源详情
资源评论
Key words: MCU RL78, F13, 10BAG, 128K Bytes Flash
1.
In linker file: split the code space with beginning of app address: 0x8000 - 0x17fff, bootloader space is in range
0x0 - 0x7fff
2.
Create the application and bootlader in two separate projects, and build them individually.
3.
Juadgement condition: two led will iluminate in turn if system works normally.
4.
Step 1, only application project hex file built and downloaded into MCU, do some operations to indirectly
check if the system works. Test result is passed.
a.
Step 2, assuming after trim down the bootloader space 0x0-0x7fff, the system can still work well, the
condition for that assumption is that the startup routine has been switched to application space as well as
entire vector table space, so that after mcu reset, the system can directly jump into the beginning of
application space 0x8000 in expectation. Test result is failed, the system is crashed.
b.
Do assumption and experiment:
5.
There must be factors in bootloader space 0x0-0x7fff to relates jumping into app entry, in other words,
there must be a path from bootloader space (vector table) to app vector table.
a.
Conclusion from the above experiment:
6.
The reset vector table and other interrupt vector table entries shall aways be fixed at the beginning of
the flash memory, it is hardware level and inherent design and can't be changed, in this app note, the
default vector table placed in range of 0x0-0x7fff, this default vector table always be in bootloader
space.
i.
Do something setting on interrupt vector offset/reallocate register to make each interrupt response
having an offset address, because the application program has been forcedly moved at a new address
0x8000.
ii.
When application part(hex image) is resided in memory, if there is an interrupt event occurs, in
principle, the interrupt response route shall be like: firstly PC pointer enter reserved vector table
0x0-0x7fff, fetch the value of vector table( address ininformation) and plus the offset value, let's call it
modified address, the modified address is the actual address allocated in app space.
iii.
Background and previous expierence on the vector table handing for bootloader design,
a.
What's the factors in bootloader? How does it work?
7.
After much investigation on datasheet, renesas application notes, and other possible relevant technical
manu, I didn't find any valuable information that I want to get until I find these clues:
a.
Let's go back to rl78 analysis, continue…
8.
Sherman
Li/2020/7/30
Sherman
Li/2020/7/30
Rl78 bootloader vector table application notes
Friday, July 31, 2020
2:50 PM
Knowledge library Page 1
资源评论
- 通透世界2022-01-26就3页纸。。还没满呢
- james_zhan2023-02-26RL78太多的掩膜代码了,又没有具体功能说明,还是要感谢。
yes007li
- 粉丝: 7
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功