-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRedV.jdebug
59 lines (53 loc) · 1.65 KB
/
RedV.jdebug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*********************************************************************
* (c) SEGGER Microcontroller GmbH *
* The Embedded Experts *
* www.segger.com *
**********************************************************************
File : RedV.jdebug
Created : 8 Sep 2022 20:06
Ozone Version : V3.26h
*/
__constant unsigned int __FE310_BootRom_StartAddress = 0x00001004;
/*********************************************************************
*
* OnProjectLoad
*
* Function description
* Project load routine. Required.
*
**********************************************************************
*/
void OnProjectLoad (void) {
Project.SetDevice ("FE310");
Project.SetTargetIF ("JTAG");
Project.SetTIFSpeed ("4 MHz");
Project.AddSvdFile ("$(InstallDir)/Config/CPU/RV32I.svd");
Project.AddSvdFile ("./e310x.svd");
File.Open("./Output/Blinky_RedV_FE310.elf");
}
/*********************************************************************
*
* AfterTargetReset
*
* Function description
* Initialize the PC with the BootRom start address
*
**********************************************************************
*/
void AfterTargetReset(void)
{
Target.SetReg("PC", __FE310_BootRom_StartAddress);
}
/*********************************************************************
*
* AfterTargetDownload
*
* Function description
* Initialize the PC with the BootRom start address
*
**********************************************************************
*/
void AfterTargetDownload (void)
{
Target.SetReg("PC", __FE310_BootRom_StartAddress);
}