pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Difference between
modified post f5351a59a by Anonymous on Sat 12 Dec 13:44 and
original post f6b0bbcbe by Anonymous on Sat 12 Dec 13:43
Show old version | new version | both versions

    
11
# hw definition file for processing by chibios_hwdef.py
22
# for Pixracer bootloader
44
# MCU class and specific type
55
MCU STM32F4xx STM32F427xx
77
# crystal frequency
88
OSCILLATOR_HZ 24000000
1010
# board ID for firmware load
1111
APJ_BOARD_ID 1101
1313
FLASH_SIZE_KB 2048
1515
# ChibiOS system timer
1616
STM32_ST_USE_TIMER 5
1818
# setup build for a peripheral firmware
1919
env AP_PERIPH 1
2020
define PERIPH_FW TRUE
2121
define HAL_DISABLE_LOOP_DELAY
2323
# bootloader is installed at zero offset
2424
FLASH_RESERVE_START_KB 0
2626
# the location where the bootloader will put the firmware
2727
# we use first 32k
2828
FLASH_BOOTLOADER_LOAD_KB 32
3030
# order of UARTs (and USB)
3131
SERIAL_ORDER OTG1 UART2
3333
PB1 LED_BOOTLOADER OUTPUT
3434
PB3 LED_ACTIVITY OUTPUT
3535
define HAL_LED_ON 1
3737
PA9 VBUS INPUT
3939
STDOUT_SERIAL SD2
4040
STDOUT_BAUDRATE 57600
4141
# make bl baudrate match debug baudrate for easier debugging
4242
define BOOTLOADER_BAUDRATE 57600
4444
# USART2 serial2 telem1
4545
PD3 USART2_CTS USART2
4646
PD4 USART2_RTS USART2
4747
PD5 USART2_TX USART2
4848
PD6 USART2_RX USART2
5050
# OTG1
5151
PA11 OTG_FS_DM OTG1
5252
PA12 OTG_FS_DP OTG1
5454
PA13 JTMS-SWDIO SWD
5555
PA14 JTCK-SWCLK SWD
5757
define HAL_STORAGE_SIZE 16384
5959
# Add CS pins to ensure they are high in bootloader
6060
PC2 MPU9250_CS CS
6161
PC15 20608_CS CS
6262
PD7 BARO_CS CS
6363
#PD10 FRAM_CS CS
6464
PE15 MAG_CS CS
6666
# the first CAN bus
6767
define HAL_USE_CAN TRUE
6868
define STM32_CAN_USE_CAN1 TRUE
6969
PD0 CAN1_RX CAN1
7070
PD1 CAN1_TX CAN1
7272
# reserve 256 bytes for comms between app and bootloader
7373
RAM_RESERVE_START 256
7575
# use DNA
7676
define HAL_CAN_DEFAULT_NODE_ID 0
7878
define CAN_APP_NODE_NAME "org.ardupilot.Pixracer-periph"
8080
# make bl baudrate match debug baudrate for easier debugging
8181
define BOOTLOADER_BAUDRATE 57600
8383
# disable
8484
define HAL_NO_GPIO_IRQ
8585
define HAL_USE_EMPTY_IO TRUE
8787
# avoid timer and RCIN threads to save memory
8888
define HAL_NO_TIMER_THREAD
8989
define HAL_NO_RCIN_THREAD
9191
define HAL_USE_RTC FALSE
9292
define DISABLE_SERIAL_ESC_COMM TRUE
9393
define NO_DATAFLASH TRUE
9595
define DMA_RESERVE_SIZE 0
9797
# ChibiOS system timer
9898
STM32_ST_USE_TIMER 5

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me