Академический Документы
Профессиональный Документы
Культура Документы
2012
1200 DMIPS, Performance
Automotive, 40nm 500A/MHz, 35A deep standby
32-bit
???
Firmware v1.2 v1.3 Fixed focusing bug
4 2012 Renesas Electronics America Inc. All rights reserved.
Agenda
Quick bootloader overview The flash loader framework Design choices RX implementation RL78 implementation Lab
Reset Bootloader
Application
P/E
User application
Uses CPU rewrite code
What is the Flash Loader Project? Flexible system for implementing in-field-reprogramming in your own project Communications medium agnostic Modify to fit your system Retries & error checking built in Does not interfere with user application
10
Terms
Load Image
v4.2
Host
Device Storage
11
Parts of the Flash Loader Project? Flexible system that can be split into 2 parts:
Downloader Bootloader
Host
Reprogramming Downloading Checking Storing
12 2012 Renesas Electronics America Inc. All rights reserved.
Device Storage
13
Add Flash Loader to your HEW Project Add flash loader project files
Users Project
User Application
Flash Loader
14
Configure Flash Loader for Your System r_fl_app_header.c r_fl_comm_*type*.c r_fl_downloader.c r_fl_store_manager.c r_fl_memory_*type*.c r_fl_utilities.c
= Edit for your configuration
Host
15 2012 Renesas Electronics America Inc. All rights reserved.
16
60KB
20KB
MOT
S-Record Converter
Load Image
Load Image
Header
Block 1
Block 2
...
Block N
17
2010 Renesas Electronics America Inc. 2012 Renesas Electronics America Inc. All rights reserved. All rights reserved.
18
2010 Renesas Electronics America Inc. 2012 Renesas Electronics America Inc. All rights reserved. All rights reserved.
19
Transferring the Load Image Flash loader is medium agnostic Communications protocol is supplied Supported commands
Information request Erase image from storage Load image download
Host
20 2012 Renesas Electronics America Inc. All rights reserved.
Device Storage
Storage area partitioned for load images If error occurs, retry is possible
Load Block
Host
21 2012 Renesas Electronics America Inc. All rights reserved.
Device Storage
What the Storage Area Looks Like Load images are in different partitions
Storage Load Image #1 Address 0x00100000 Header Block 1 Block 2 Block 3
Block 512
Block 656
EMPTY
22 2012 Renesas Electronics America Inc. All rights reserved.
23
Reboot & Flash Reboot when convenient Check for new load image If valid, reflash MCU Jump to user application and execute
Load Image
Host
24 2012 Renesas Electronics America Inc. All rights reserved.
Device Storage
Design Choices
25
Bootloader Decisions
Why not store bootloader in same memory area as user application?
Bug in control code could erase everything Application must be aware of bootloader
RX Implementation
27
Flash Loader Bootloader Separate workspace Separate memory areas Can use same or different communications as FL downloader User Boot is special
M C U
28
User Application
&
Why is User Boot Special? Can execute from either reset vector on start-up Cannot accidentally erase Should have one and done attitude No indirection tables!
30
RL78 Implementation
31
32
33
Summary
Quick bootloader overview The flash loader framework Design choices RX implementation RL78 implementation Lab
34
Questions?
35
???
Firmware v1.2 v1.3 Fixed focusing bug
36 2012 Renesas Electronics America Inc. All rights reserved.