Skip to content

Commit c9b436b

Browse files
committed
Added firmwares
1 parent be7c132 commit c9b436b

File tree

12 files changed

+289
-0
lines changed

12 files changed

+289
-0
lines changed

build_cp_esp_fw

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ cp build/vesc_express.bin "$BOARD"
4545
cp build/partition_table/partition-table.bin "$BOARD"
4646
cp build/bootloader/bootloader.bin "$BOARD"
4747

48+
# VDisp
49+
BOARD="$DIR/res/firmwares_esp/ESP32-C3/VDisp"
50+
cd $FWPATH
51+
cp "$BOARD/conf_general.h" main/
52+
idf.py build
53+
cp build/vesc_express.bin "$BOARD"
54+
cp build/partition_table/partition-table.bin "$BOARD"
55+
cp build/bootloader/bootloader.bin "$BOARD"
56+
4857
mv $FWPATH/main/conf_general_tmp.h $FWPATH/main/conf_general.h
4958
rm -r $FWPATH/build
5059

mobile/fwhelper.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ QVariantMap FwHelper::getHardwares(FW_RX_PARAMS params, QString hw)
6161
hws.insert(params.hw, "://res/firmwares_esp/ESP32-C3/DevKitM-1");
6262
} else if (params.hw == "STR-DCDC") {
6363
hws.insert(params.hw, "://res/firmwares_custom_module/str-dcdc");
64+
} else if (params.hw == "VBMS32") {
65+
hws.insert(params.hw, "://res/firmwares_esp/ESP32-C3/VBMS32");
66+
} else if (params.hw == "STR365 IO") {
67+
hws.insert(params.hw, "://res/firmwares_esp/ESP32-C3/STR365");
68+
} else if (params.hw == "VDisp") {
69+
hws.insert(params.hw, "://res/firmwares_esp/ESP32-C3/VDisp");
6470
}
6571

6672
return hws;

pages/pagefirmware.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ void PageFirmware::updateHwList(FW_RX_PARAMS params)
248248
extraPath = "://res/firmwares_esp/ESP32-C3/DevKitM-1";
249249
} else if (params.hw == "STR-DCDC") {
250250
extraPath = "://res/firmwares_custom_module/str-dcdc";
251+
} else if (params.hw == "VBMS32") {
252+
extraPath = "://res/firmwares_esp/ESP32-C3/VBMS32";
253+
} else if (params.hw == "STR365 IO") {
254+
extraPath = "://res/firmwares_esp/ESP32-C3/STR365";
255+
} else if (params.hw == "VDisp") {
256+
extraPath = "://res/firmwares_esp/ESP32-C3/VDisp";
251257
}
252258

253259
if (!extraPath.isEmpty()) {
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
Copyright 2022 Benjamin Vedder [email protected]
3+
4+
This file is part of the VESC firmware.
5+
6+
The VESC firmware is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
The VESC firmware is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef MAIN_CONF_GENERAL_H_
21+
#define MAIN_CONF_GENERAL_H_
22+
23+
#include "datatypes.h"
24+
25+
// Firmware version
26+
#define FW_VERSION_MAJOR 6
27+
#define FW_VERSION_MINOR 05
28+
// Set to 0 for building a release and iterate during beta test builds
29+
#define FW_TEST_VERSION_NUMBER 0
30+
31+
#if !defined(HW_SOURCE) && !defined(HW_HEADER)
32+
#define HW_HEADER "hw_devkit_c3.h"
33+
#define HW_SOURCE "hw_devkit_c3.c"
34+
#endif
35+
36+
#if !defined(HW_SOURCE) && !defined(HW_SOURCE_ALT)
37+
#error "No hardware source file set"
38+
#endif
39+
40+
#ifndef HW_HEADER
41+
#error "No hardware header file set"
42+
#endif
43+
44+
#include "main.h"
45+
#include "hw.h"
46+
47+
#ifdef OVR_CONF_DEFAULT
48+
#include OVR_CONF_DEFAULT
49+
#else
50+
#include "conf_default.h"
51+
#endif
52+
53+
#endif /* MAIN_CONF_GENERAL_H_ */
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
Copyright 2022 Benjamin Vedder [email protected]
3+
4+
This file is part of the VESC firmware.
5+
6+
The VESC firmware is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
The VESC firmware is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef MAIN_CONF_GENERAL_H_
21+
#define MAIN_CONF_GENERAL_H_
22+
23+
#include "datatypes.h"
24+
25+
// Firmware version
26+
#define FW_VERSION_MAJOR 6
27+
#define FW_VERSION_MINOR 05
28+
// Set to 0 for building a release and iterate during beta test builds
29+
#define FW_TEST_VERSION_NUMBER 0
30+
31+
#if !defined(HW_SOURCE) && !defined(HW_HEADER)
32+
#define HW_HEADER "hw_str365.h"
33+
#define HW_SOURCE "hw_str365.c"
34+
#endif
35+
36+
#if !defined(HW_SOURCE) && !defined(HW_SOURCE_ALT)
37+
#error "No hardware source file set"
38+
#endif
39+
40+
#ifndef HW_HEADER
41+
#error "No hardware header file set"
42+
#endif
43+
44+
#include "main.h"
45+
#include "hw.h"
46+
47+
#ifdef OVR_CONF_DEFAULT
48+
#include OVR_CONF_DEFAULT
49+
#else
50+
#include "conf_default.h"
51+
#endif
52+
53+
#endif /* MAIN_CONF_GENERAL_H_ */
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
Copyright 2022 Benjamin Vedder [email protected]
3+
4+
This file is part of the VESC firmware.
5+
6+
The VESC firmware is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
The VESC firmware is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef MAIN_CONF_GENERAL_H_
21+
#define MAIN_CONF_GENERAL_H_
22+
23+
#include "datatypes.h"
24+
25+
// Firmware version
26+
#define FW_VERSION_MAJOR 6
27+
#define FW_VERSION_MINOR 05
28+
// Set to 0 for building a release and iterate during beta test builds
29+
#define FW_TEST_VERSION_NUMBER 0
30+
31+
#if !defined(HW_SOURCE) && !defined(HW_HEADER)
32+
#define HW_HEADER "hw_vbms32.h"
33+
#define HW_SOURCE "hw_vbms32.c"
34+
#endif
35+
36+
#if !defined(HW_SOURCE) && !defined(HW_SOURCE_ALT)
37+
#error "No hardware source file set"
38+
#endif
39+
40+
#ifndef HW_HEADER
41+
#error "No hardware header file set"
42+
#endif
43+
44+
#include "main.h"
45+
#include "hw.h"
46+
47+
#ifdef OVR_CONF_DEFAULT
48+
#include OVR_CONF_DEFAULT
49+
#else
50+
#include "conf_default.h"
51+
#endif
52+
53+
#endif /* MAIN_CONF_GENERAL_H_ */
13 KB
Binary file not shown.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
Copyright 2022 Benjamin Vedder [email protected]
3+
4+
This file is part of the VESC firmware.
5+
6+
The VESC firmware is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
The VESC firmware is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef MAIN_CONF_GENERAL_H_
21+
#define MAIN_CONF_GENERAL_H_
22+
23+
#include "datatypes.h"
24+
25+
// Firmware version
26+
#define FW_VERSION_MAJOR 6
27+
#define FW_VERSION_MINOR 05
28+
// Set to 0 for building a release and iterate during beta test builds
29+
#define FW_TEST_VERSION_NUMBER 0
30+
31+
#if !defined(HW_SOURCE) && !defined(HW_HEADER)
32+
#define HW_HEADER "hw_disp_v1.h"
33+
#define HW_SOURCE "hw_disp_v1.c"
34+
#endif
35+
36+
#if !defined(HW_SOURCE) && !defined(HW_SOURCE_ALT)
37+
#error "No hardware source file set"
38+
#endif
39+
40+
#ifndef HW_HEADER
41+
#error "No hardware header file set"
42+
#endif
43+
44+
#include "main.h"
45+
#include "hw.h"
46+
47+
#ifdef OVR_CONF_DEFAULT
48+
#include OVR_CONF_DEFAULT
49+
#else
50+
#include "conf_default.h"
51+
#endif
52+
53+
#endif /* MAIN_CONF_GENERAL_H_ */
3 KB
Binary file not shown.
1.31 MB
Binary file not shown.

0 commit comments

Comments
 (0)