Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pr dsdlc python3 #25

Open
wants to merge 26 commits into
base: bootloader-led
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
35aa331
examples: add missing param and flash modules
bugobliterator Sep 24, 2019
7110afc
update ChibiOS
bugobliterator Sep 25, 2019
0d5c29d
make changes to support ChibiOS v19.1.x
bugobliterator Oct 31, 2019
c7c3fb0
platforms: add linker scripts for stm32h7
bugobliterator Oct 30, 2019
c50f5bf
add platform_stm32h743 module
bugobliterator Oct 30, 2019
c0be4c9
can_driver_stm32: add can driver for H7
bugobliterator Oct 30, 2019
7353580
examples/basic_uavcan_functionality: add cubeorange board files
bugobliterator Oct 30, 2019
832bb67
mk: add build for h7 based boards
bugobliterator Oct 30, 2019
2012996
common/helpers: add support for exception handling
bugobliterator Oct 30, 2019
fba4464
logger: set values to build time defines
bugobliterator Oct 30, 2019
0e043e3
pin_change_publisher: set values for build time defines
bugobliterator Oct 30, 2019
179d49c
spi_device: set value to build time defines
bugobliterator Oct 30, 2019
f38795f
board: add here_pro_2.0 board config
bugobliterator Oct 30, 2019
dbdc274
flash: add support for STM32H7 flash
bugobliterator Oct 30, 2019
a2443fb
bootloader: use aligned write
bugobliterator Oct 30, 2019
2f89b7f
can: only pop tx frame from queue if write was successfull
bugobliterator Oct 30, 2019
4a46099
param: use the alignment defined in flash driver
bugobliterator Oct 30, 2019
50ce3d3
can_driver_stm32: fix return value of can_driver_stm32_load_tx_I
jschall Dec 7, 2019
6f96293
wip
jschall Dec 13, 2019
bd4f1a4
can: ignore aborting messages in inner priority inversion algorithm
jschall Jan 14, 2020
830fcfb
can_driver_stm32h7: add bus_off recovery support
jschall Jan 14, 2020
cede49f
usb_slcan: change LL_MS2ST to chTimeMS2I
jschall Jan 15, 2020
0f75dfd
driver_profiLED: remove unnecessary include
jschall Jan 15, 2020
c63dfe5
add leds to bootloader
jschall Jan 16, 2020
d0fac79
wip
jschall Feb 15, 2020
482658d
uavcan: fix dsdlc for python3
bugobliterator Feb 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
**/*.pyc
*.o.*
*.DS_Store
*.DS_Store
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
url = [email protected]:UAVCAN/dsdl.git
[submodule "ChibiOS"]
path = ChibiOS
url = [email protected]:OpenMotorDrive/ChibiOS.git
url = [email protected]:CubePilot/ChibiOS.git
2 changes: 1 addition & 1 deletion ChibiOS
Submodule ChibiOS updated 4678 files
1 change: 0 additions & 1 deletion boards/com.hex.here_pro_1.0/board.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include <stdint.h>
#include <modules/platform_stm32f767/platform_stm32f767.h>

#define BOARD_CONFIG_HW_NAME "com.hex.here_pro"
Expand Down
1 change: 1 addition & 0 deletions boards/com.hex.here_pro_1.0/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*/

#define STM32F7xx_MCUCONF
#define STM32F767_MCUCONF

#define STM32_LSECLK 0U
#define STM32_LSEDRV (3U << 3U)
Expand Down
12 changes: 10 additions & 2 deletions bootloader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ can_autobaud \
uavcan \
uavcan_nodestatus_publisher \
uavcan_allocatee \
usb_slcan
spi_device \
driver_profiLED \
uavcan_timesync \
uavcan_debug

MESSAGES_ENABLED = \
uavcan.protocol.GetNodeInfo \
uavcan.protocol.file.BeginFirmwareUpdate \
uavcan.protocol.file.Read \
uavcan.protocol.RestartNode
uavcan.protocol.RestartNode \
uavcan.equipment.indication.LightsCommand \
com.hex.file.FileStreamStart \
com.hex.file.FileStreamChunk

DSDL_NAMESPACE_DIRS += dsdl/com

LOAD_REGION = bl

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
int18[3] body_pos_mm
10 changes: 10 additions & 0 deletions bootloader/dsdl/com/hex/equipment/gnss/20211.MovingBaseFix.uavcan
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uavcan.Timestamp timestamp
uint8[16] base_in_use_hwid
void6
uint2 CARRIER_SOLUTION_TYPE_NONE = 0
uint2 CARRIER_SOLUTION_TYPE_FLOAT = 1
uint2 CARRIER_SOLUTION_TYPE_FIXED = 2
uint2 carrier_solution_type
float32[<=3] pos_rel_body
float32[3] pos_rel_ecef
float16[<=6] pos_rel_ecef_covariance
Binary file added bootloader/dsdl/com/hex/equipment/gnss/gnss.zip
Binary file not shown.
10 changes: 10 additions & 0 deletions bootloader/dsdl/com/hex/file/242.Modify.uavcan
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bool preserve_source
bool overwrite_destination
void6

uavcan.protocol.file.Path source
uavcan.protocol.file.Path destination

---

uavcan.protocol.file.Error error
4 changes: 4 additions & 0 deletions bootloader/dsdl/com/hex/file/243.FileStreamStart.uavcan
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
uavcan.protocol.file.Path path
uint40 offset
---
uavcan.protocol.file.Error error
6 changes: 6 additions & 0 deletions bootloader/dsdl/com/hex/file/244.StartDownload.uavcan
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
uint8 source_node_id
uavcan.protocol.file.Path source_path
uavcan.protocol.file.Path dest_path
---
void7
bool ack
3 changes: 3 additions & 0 deletions bootloader/dsdl/com/hex/file/42444.FileStreamChunk.uavcan
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
uavcan.protocol.file.Path path
uint40 offset
uint8[<=256] data
10 changes: 6 additions & 4 deletions bootloader/include/framework_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#define UAVCAN_BEGINFIRMWAREUPDATE_SERVER_WORKER_THREAD lpwork_thread
#define UAVCAN_ALLOCATEE_WORKER_THREAD lpwork_thread
#define BOOTLOADER_APP_THREAD lpwork_thread
#define LOGGER_WORKER_THREAD lpwork_thread
#define USB_SLCAN_WORKER_THREAD can_thread
#define UAVCAN_TIMESYNC_WORKER_THREAD lpwork_thread

#define CAN_TRX_WORKER_THREAD can_thread
#define CAN_EXPIRE_WORKER_THREAD can_thread
Expand All @@ -29,9 +31,9 @@
// Configure debug checks
//

#define CH_DBG_SYSTEM_STATE_CHECK FALSE
#define CH_DBG_ENABLE_CHECKS FALSE
#define CH_DBG_ENABLE_ASSERTS FALSE
#define CH_DBG_ENABLE_STACK_CHECK FALSE
#define CH_DBG_SYSTEM_STATE_CHECK TRUE
#define CH_DBG_ENABLE_CHECKS TRUE
#define CH_DBG_ENABLE_ASSERTS TRUE
#define CH_DBG_ENABLE_STACK_CHECK TRUE

#define CAN_TX_QUEUE_LEN 256
6 changes: 3 additions & 3 deletions bootloader/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source [find interface/stlink-v2-1.cfg]
source [find target/stm32f4x.cfg]
$_TARGETNAME configure -rtos ChibiOS
source [find interface/stlink.cfg]
source [find target/stm32h7x.cfg]
$_CHIPNAME.cpu0 configure -rtos ChibiOS
init
Binary file added bootloader/out.bin
Binary file not shown.
Loading