From 183cbd45e66b29478fa4357edf9bbd58e1f70af6 Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 10 Feb 2018 13:38:41 +0700 Subject: [PATCH] enable uart flow control for nrf52840pdk --- .../bootloader_dfu/hci_transport/hci_transport_config.h | 2 +- src/feather52840.h | 2 +- src/s140_6.0.0.ld | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nRF5_SDK_11.0.0_89a8197/components/libraries/bootloader_dfu/hci_transport/hci_transport_config.h b/nRF5_SDK_11.0.0_89a8197/components/libraries/bootloader_dfu/hci_transport/hci_transport_config.h index 9dc1866..dd8c416 100644 --- a/nRF5_SDK_11.0.0_89a8197/components/libraries/bootloader_dfu/hci_transport/hci_transport_config.h +++ b/nRF5_SDK_11.0.0_89a8197/components/libraries/bootloader_dfu/hci_transport/hci_transport_config.h @@ -32,7 +32,7 @@ #define HCI_SLIP_UART_CTS_PIN_NUMBER CTS_PIN_NUMBER /**< Defines the UART CTS pin number. The default pin for the board is chosen, but can be overwritten. */ -#define HCI_SLIP_UART_MODE APP_UART_FLOW_CONTROL_DISABLED /**< Defines the UART mode to be used. Use UART Low Power with Flow Control - Valid values are defined in \ref app_uart_flow_control_t. For further information on the UART Low Power mode, please refer to: \ref app_uart . */ +#define HCI_SLIP_UART_MODE HWFC /**< Defines the UART mode to be used. Use UART Low Power with Flow Control - Valid values are defined in \ref app_uart_flow_control_t. For further information on the UART Low Power mode, please refer to: \ref app_uart . */ #define HCI_SLIP_UART_BAUDRATE UART_BAUDRATE_BAUDRATE_Baud115200 // UART_BAUDRATE_BAUDRATE_Baud38400 /**< Defines the UART Baud rate. Default is 38400 baud. */ diff --git a/src/feather52840.h b/src/feather52840.h index f623934..b6ed782 100644 --- a/src/feather52840.h +++ b/src/feather52840.h @@ -60,7 +60,7 @@ #define TX_PIN_NUMBER 6 #define CTS_PIN_NUMBER 7 #define RTS_PIN_NUMBER 5 -#define HWFC false +#define HWFC true // Used as model string in OTA mode #define DIS_MODEL "Bluefruit Feather 52840" diff --git a/src/s140_6.0.0.ld b/src/s140_6.0.0.ld index b23221f..1777ae9 100644 --- a/src/s140_6.0.0.ld +++ b/src/s140_6.0.0.ld @@ -13,8 +13,8 @@ MEMORY */ FLASH (rx) : ORIGIN = 0xF4000, LENGTH = 0xA000 /* 40 KB */ - /** RAM Region for bootloader. This setting is suitable when used with s132. */ - RAM (rwx) : ORIGIN = 0x20003000, LENGTH = 0x4000 + /** RAM Region for bootloader. This setting is suitable when used with s140. */ + RAM (rwx) : ORIGIN = 0x20004000, LENGTH = 0x4000 /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information * from application to bootloader when using buttonluss DFU OTA.