Skip to content

Commit

Permalink
hw_config: add KakuteF7 target
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Jul 10, 2019
1 parent cb6c054 commit b70ff10
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.d
*.elf
*.bin
*.hex
Bootloader.zip
Bootloader.sublime-workspace
.gdbinit
Expand Down
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ export ARCH_SRCS = cdcacm.c usart.c
# string
#
TARGETS = \
fmuk66v3_bl \
aerofcv1_bl \
auavx2v1_bl \
avx_v1_bl \
crazyflie_bl \
cube_f4_bl \
fmuk66v3_bl \
kakutef7_bl \
mindpxv2_bl \
nxphlitev3_bl \
omnibusf4sd_bl \
px4aerocore_bl \
px4discovery_bl \
Expand All @@ -70,9 +74,7 @@ TARGETS = \
px4fmuv5_bl \
px4io_bl \
px4iov3_bl \
tapv1_bl \
cube_f4_bl \
avx_v1_bl
tapv1_bl

all: $(TARGETS) sizes

Expand All @@ -91,6 +93,9 @@ fmuk66v3_bl: $(MAKEFILE_LIST) $(LIBKINETIS)
auavx2v1_bl: $(MAKEFILE_LIST) $(LIBOPENCM3)
${MAKE} ${MKFLAGS} -f Makefile.f4 TARGET_HW=AUAV_X2V1 LINKER_FILE=stm32f4.ld TARGET_FILE_NAME=$@

kakutef7_bl: $(MAKEFILE_LIST) $(LIBOPENCM3)
${MAKE} ${MKFLAGS} -f Makefile.f7 TARGET_HW=KAKUTEF7 LINKER_FILE=stm32f7.ld TARGET_FILE_NAME=$@

px4fmu_bl: $(MAKEFILE_LIST) $(LIBOPENCM3)
${MAKE} ${MKFLAGS} -f Makefile.f4 TARGET_HW=PX4_FMU_V1 LINKER_FILE=stm32f4.ld TARGET_FILE_NAME=$@

Expand Down
2 changes: 1 addition & 1 deletion board_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ TARGET_HW_AUAV_X2V1 33
TARGET_HW_AEROFC_V1 65
TARGET_HW_CUBE_F4 9
TARGET_HW_AV_V1 29
TARGET_HW_KAKUTEF7 123

# values from external vendors
EXT_HW_RADIOLINK_MINI_PIX 3
Expand All @@ -35,7 +36,6 @@ EXT_HW_RADIOLINK_MINI_PIX 3
AP_HW_CUBE_ORANGE 120
AP_HW_OMNIBUSF7V2 121
AP_HW_KAKUTEF4 122
AP_HW_KAKUTEF7 123
AP_HW_REVOLUTION 124
AP_HW_MATEKF405 125
AP_HW_NUCLEOF767ZI 126
Expand Down
50 changes: 47 additions & 3 deletions hw_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@

# define APP_LOAD_ADDRESS 0x08008000
# define BOOTLOADER_DELAY 5000
# define BOARD_OMNIBUSF4SD
# define INTERFACE_USB 1
# define INTERFACE_USART 0
# define USBDEVICESTRING "PX4 OmnibusF4SD"
Expand All @@ -732,11 +731,56 @@
# define BOARD_LED_OFF gpio_set

# define BOARD_USB_VBUS_SENSE_DISABLED
//# define BOARD_PIN_VBUS GPIO5
//# define BOARD_PORT_VBUS GPIOC

# define USBMFGSTRING "Vertile"

/****************************************************************************
* TARGET_HW_KAKUTEF7
****************************************************************************/

#elif defined(TARGET_HW_KAKUTEF7)

# define APP_LOAD_ADDRESS 0x08018000
# define BOOTLOADER_DELAY 5000
# define INTERFACE_USB 1
# define INTERFACE_USART 0
# define USBDEVICESTRING "PX4 KakuteF7"
# define USBPRODUCTID 0x0016
# define BOOT_DELAY_ADDRESS 0x000001a0

# define BOARD_TYPE 123
# define BOARD_FLASH_SECTORS 7
# define BOARD_FLASH_SIZE (1024 * 1024)
# define BOARD_FIRST_FLASH_SECTOR_TO_ERASE 2
# define APP_RESERVATION_SIZE (2 * 32 * 1024) /* 2 32 Kib Sectors */

# define OSC_FREQ 8

# define BOARD_PIN_LED_ACTIVITY 0
# define BOARD_PIN_LED_BOOTLOADER GPIO2 // BLUE
# define BOARD_PORT_LEDS GPIOA
# define BOARD_CLOCK_LEDS RCC_AHB1ENR_GPIOAEN
# define BOARD_LED_ON gpio_clear
# define BOARD_LED_OFF gpio_set

# define USBMFGSTRING "Holybro"

// VBUS sense is connected to PA8 instead of PA9
# define BOARD_USB_VBUS_SENSE_DISABLED
# define BOARD_PORT_VBUS GPIOA
# define BOARD_PIN_VBUS GPIO8

# define BOARD_USART USART3 // labeled as UART3
# define BOARD_USART_CLOCK_REGISTER RCC_APB1ENR
# define BOARD_USART_CLOCK_BIT RCC_APB1ENR_USART3EN
# define BOARD_PORT_USART GPIOB
# define BOARD_PORT_USART_AF GPIO_AF7
# define BOARD_PIN_TX GPIO10
# define BOARD_PIN_RX GPIO11
# define BOARD_USART_PIN_CLOCK_REGISTER RCC_AHB1ENR
# define BOARD_USART_PIN_CLOCK_BIT RCC_AHB1ENR_GPIOBEN
# define SERIAL_BREAK_DETECT_DISABLED 1

/****************************************************************************
* TARGET_HW_AUAV_X2V1
****************************************************************************/
Expand Down

0 comments on commit b70ff10

Please sign in to comment.