Skip to content

Commit

Permalink
NuttX stm32f7 fully re-enable dcache with write back
Browse files Browse the repository at this point in the history
 - fixes #12216
  • Loading branch information
dagar committed Jul 9, 2019
1 parent 89a6b83 commit fae6a8a
Show file tree
Hide file tree
Showing 31 changed files with 14 additions and 420 deletions.
2 changes: 0 additions & 2 deletions ROMFS/px4fmu_common/init.d/airframes/13014_vtol_babyshark
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ then
param set PWM_MAIN_MIN3 1120
param set PWM_MIN 950

param set SYS_FORCE_F7DC 2

param set VT_ARSP_BLEND 10
param set VT_ARSP_TRANS 21
param set VT_B_TRANS_DUR 12
Expand Down
1 change: 0 additions & 1 deletion boards/av/x-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ px4_add_board(
#roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
#stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
1 change: 0 additions & 1 deletion boards/av/x-v1/nuttx-config/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ CONFIG_ARCH_MATH_H=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_BASEPRI_WAR=y
CONFIG_ARMV7M_DCACHE=y
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
CONFIG_ARMV7M_DTCM=y
CONFIG_ARMV7M_ICACHE=y
CONFIG_ARMV7M_MEMCPY=y
Expand Down
5 changes: 1 addition & 4 deletions boards/av/x-v1/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ __EXPORT void board_on_reset(int status)
#ifdef CONFIG_BOARDCTL_FINALINIT
int board_app_finalinitialize(uintptr_t arg)
{
board_configure_dcache(1);

return 0;
}
#endif
Expand Down Expand Up @@ -223,9 +223,6 @@ stm32_boardinitialize(void)

__EXPORT int board_app_initialize(uintptr_t arg)
{

board_configure_dcache(0);

px4_platform_init();

/* configure the DMA allocator */
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/fixedwing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ px4_add_board(
rc_input
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
telemetry # all available telemetry drivers
tone_alarm
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/multicopter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/nuttx-config/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ CONFIG_ARCH_MATH_H=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_BASEPRI_WAR=y
CONFIG_ARMV7M_DCACHE=y
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
CONFIG_ARMV7M_DTCM=y
CONFIG_ARMV7M_ICACHE=y
CONFIG_ARMV7M_MEMCPY=y
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/nuttx-config/stackcheck/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ CONFIG_ARCH_MATH_H=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_BASEPRI_WAR=y
CONFIG_ARMV7M_DCACHE=y
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
CONFIG_ARMV7M_DTCM=y
CONFIG_ARMV7M_ICACHE=y
CONFIG_ARMV7M_MEMCPY=y
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
telemetry # all available telemetry drivers
tone_alarm
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
4 changes: 0 additions & 4 deletions boards/px4/fmu-v5/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ __EXPORT void board_on_reset(int status)
#ifdef CONFIG_BOARDCTL_FINALINIT
int board_app_finalinitialize(uintptr_t arg)
{
board_configure_dcache(1);
return 0;
}
#endif
Expand Down Expand Up @@ -279,9 +278,6 @@ stm32_boardinitialize(void)
__EXPORT int board_app_initialize(uintptr_t arg)
{
/* Power on Interfaces */

board_configure_dcache(0);

VDD_3V3_SD_CARD_EN(true);
VDD_5V_PERIPH_EN(true);
VDD_5V_HIPOWER_EN(true);
Expand Down
2 changes: 1 addition & 1 deletion boards/px4/fmu-v5/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down Expand Up @@ -90,6 +89,7 @@ px4_add_board(
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/fixedwing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ px4_add_board(
rc_input
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
telemetry # all available telemetry drivers
tone_alarm
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/multicopter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/nuttx-config/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ CONFIG_ARCH_MATH_H=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_BASEPRI_WAR=y
CONFIG_ARMV7M_DCACHE=y
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
CONFIG_ARMV7M_DTCM=y
CONFIG_ARMV7M_ICACHE=y
CONFIG_ARMV7M_MEMCPY=y
Expand Down
6 changes: 2 additions & 4 deletions boards/px4/fmu-v5x/nuttx-config/stackcheck/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ CONFIG_ARCH_MATH_H=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_BASEPRI_WAR=y
CONFIG_ARMV7M_DCACHE=y
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
CONFIG_ARMV7M_DTCM=y
CONFIG_ARMV7M_ICACHE=y
CONFIG_ARMV7M_MEMCPY=y
Expand Down Expand Up @@ -144,7 +143,6 @@ CONFIG_SCHED_LPWORKPRIORITY=50
CONFIG_SCHED_LPWORKSTACKSIZE=1800
CONFIG_SCHED_WAITPID=y
CONFIG_SDCLONE_DISABLE=y
CONFIG_SDMMC1_SDIO_MODE=y
CONFIG_SEM_NNESTPRIO=8
CONFIG_SEM_PREALLOCHOLDERS=0
CONFIG_SERIAL_IFLOWCONTROL_WATERMARKS=y
Expand Down Expand Up @@ -223,8 +221,8 @@ CONFIG_UART7_RXDMA=y
CONFIG_UART7_TXBUFSIZE=3000
CONFIG_UART8_BAUD=57600
CONFIG_UART8_RXBUFSIZE=600
CONFIG_UART8_TXBUFSIZE=1500
CONFIG_UART8_RXDMA=y
CONFIG_UART8_TXBUFSIZE=1500
CONFIG_USART1_BAUD=57600
CONFIG_USART1_RXBUFSIZE=600
CONFIG_USART1_TXBUFSIZE=1500
Expand All @@ -233,9 +231,9 @@ CONFIG_USART2_IFLOWCONTROL=y
CONFIG_USART2_OFLOWCONTROL=y
CONFIG_USART2_RXBUFSIZE=600
CONFIG_USART2_TXBUFSIZE=3000
CONFIG_USART3_SERIAL_CONSOLE=y
CONFIG_USART3_BAUD=57600
CONFIG_USART3_RXBUFSIZE=180
CONFIG_USART3_SERIAL_CONSOLE=y
CONFIG_USART3_TXBUFSIZE=1500
CONFIG_USART6_BAUD=57600
CONFIG_USART6_RXBUFSIZE=600
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
telemetry # all available telemetry drivers
tone_alarm
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
4 changes: 0 additions & 4 deletions boards/px4/fmu-v5x/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ __EXPORT void board_on_reset(int status)
#ifdef CONFIG_BOARDCTL_FINALINIT
int board_app_finalinitialize(uintptr_t arg)
{
board_configure_dcache(1);
return 0;
}
#endif
Expand Down Expand Up @@ -285,9 +284,6 @@ stm32_boardinitialize(void)
__EXPORT int board_app_initialize(uintptr_t arg)
{
/* Power on Interfaces */

board_configure_dcache(0);

VDD_3V3_SD_CARD_EN(true);
VDD_5V_PERIPH_EN(true);
VDD_5V_HIPOWER_EN(true);
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ px4_add_board(
roboclaw
stm32
stm32/adc
stm32/armv7-m_dcache
stm32/tone_alarm
tap_esc
telemetry # all available telemetry drivers
Expand Down
1 change: 0 additions & 1 deletion src/drivers/boards/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ if ((${PX4_PLATFORM} MATCHES "nuttx") AND NOT ${PX4_BOARD} MATCHES "io")
board_dma_alloc.c
board_fat_dma_alloc.c
board_gpio_init.c
board_dcache_control.c
)

if (${CONFIG_ARCH_CHIP} MATCHES "kinetis")
Expand Down
Loading

0 comments on commit fae6a8a

Please sign in to comment.