Project

General

Profile

Programming procedure » History » Version 2

Constantinos Lempidakis, 12/11/2024 03:52 PM

1 2 Constantinos Lempidakis
#Programming procedure
2 1 Constantinos Lempidakis
3 2 Constantinos Lempidakis
Below you can find the two connectors that we must use to program the device:
4 1 Constantinos Lempidakis
a.	USB connector (Red)
5
b.	UART connector (Yellow)
6 2 Constantinos Lempidakis
7
![](DSC_0731.jpg)
8
9
2.	The cables that we will need are the following:
10
a.	Standard USB cable. USB Type-A  to female PIN header
11
b.	Standard RS232 UART cable or USB to UART cable. 
12
13
![](DSC_0735.JPG)
14
15
Programming procedure
16
•	Initially the flash memory of the device is completely blank.
17
•	To program it, we need first to install Rockchip_DriverAssitant_v5.1 to a Windows PC.
18
•	Then, connect the USB cable (Red) as shown below with correct orientation:
19
20
![](DSC_0736.JPG)
21
22
**Programming – Scenario A**
23
•	Connect the device to the power, using the USB-C connector using a power supply of 12VDC / 2A.
24
•	Run RKDevTool
25
•	Set the correct: 
26
o	Loader
27
o	Parameter
28
o	Uboot
29
o	Bootrootfs
30
o	data 
31
paths from Image folder 
32
*To set the folder click the white cell (next column from path)
33
•	Click all checkboxes
34
35
![](Picture1.png)
36
37
•	Check if LOADER has been found!
38
39
![](Picture2.png)
40
41
•	If yes, press Run button.   IF NOT PLEASE PROCEED TO SCENARIO B.
42
•	Wait 3min approx. to finish the programming
43
•	When the programming is finished, shut down the device and unplug the USB cable!
44
45
![](Picture3.png)
46
47
48
**Scenario B**
49
If the flash memory is not empty or because Scenario A has failed for any reason you need to proceed with the following programming procedure.
50
•	Connect the UART cable (USB to serial cable) as depicted below:
51
52
![](DSC_0732.JPG)
53
54
•	Download and run Putty software with the following settings:
55
56
![](Picture4.png)
57
58
•	Set power to device and immediately press CTRL+C
59
60
![](Picture5.png)
61
62
•	Write the command:   rockusb 0 mmc 0” command
63
•	Memory flash is empty now.
64
•	Proceed with standard programming process - Scenario A