RX100 Seri es RX100 Series Flash Programmer (SCI)
Using the Renesas Starter Kit+ for RX63N
R01AN1938EJ0110 Rev. 1.10 Page 2 of 73
Aug. 20. 2020
Contents
1. Specifications ..................................................................................................................................... 4
1.1 RSK+RX63N User Area Memory Map ......................................................................................... 5
2. Operation Confirmation Conditions .................................................................................................... 6
3. Reference Application Notes .............................................................................................................. 6
4. Hardware ............................................................................................................................................ 7
4.1 Hardware Conf ig ur ati on ............................................................................................................... 7
4.2 Pins Used ..................................................................................................................................... 7
5. Software ............................................................................................................................................. 8
5.1 Programming the RSK+RX63N ................................................................................................... 8
5.1.1 P repare the FDT Workspace ................................................................................................ 9
5.1.2 Merge and Save Data ......................................................................................................... 10
5.1.3 P rogram the RSK+RX63N User Area................................................................................. 17
5.2 Operation Overview ................................................................................................................... 18
5.2.1 S tart the MCU in Boot Mode (SCI) ..................................................................................... 19
5.2.2 B it Rate Automatic Adjustment ........................................................................................... 20
5.2.3 Fix the Target MCU ............................................................................................................ 21
5.2.4 Check ID Code Protec t ion .................................................................................................. 24
5.2.5 Rewrite the Target MCU User Area .................................................................................... 26
5.2.6 Reset the Target MCU ........................................................................................................ 30
5.3 File Compos it io n ........................................................................................................................ 31
5.4 Option-Setting Memory .............................................................................................................. 32
5.5 Constants ................................................................................................................................... 32
5.6 Structure/Union List ................................................................................................................... 36
5.7 Variables .................................................................................................................................... 37
5.8 Functions .................................................................................................................................... 38
5.9 Function Specifications .............................................................................................................. 39
5.10 Flowcharts .................................................................................................................................. 43
5.10.1 Main Processing and Communication Protocol Control .................................................... 43
5.10.2 Initialization of the Peripheral Functions ............................................................................ 57
5.10.3 Initialization of the Timer for Wait Time with the CMT ....................................................... 58
5.10.4 Setting Wait Time with the CMT ........................................................................................ 59
5.10.5 Wait Processing with the CMT .......................................................................................... 60
5.10.6 Interrupt Handling for CMI0 in CMT0 ................................................................................ 61
5.10.7 Initialization of the SCI ....................................................................................................... 62
5.10.8 Processing to Change the SCI Bit Rate ............................................................................ 63
5.10.9 Processing to Calculate the SUM Data ............................................................................. 64
5.10.10 Processing to Start the Target MCU in Boot Mode ......................................................... 65
5.10.11 Processing to Reset the Target MCU .............................................................................. 66
5.10.12 Processing to Send a Command ..................................................................................... 67
5.10.13 Processing to Receive a Response ................................................................................ 68
5.10.14 Copying Unsigned 4-Byte Data ....................................................................................... 72