Browse Source

Upgrade NuttX to 8.2

Nuttx with PX4 contrib of bbsram fix

Nuttx 8.31+ with BBSRAM disable dcache

Nuttx 8.2-
sbg
Beat Küng 6 years ago committed by Lorenz Meier
parent
commit
78944a70c3
  1. 2
      platforms/nuttx/CMakeLists.txt
  2. 12
      platforms/nuttx/NuttX/CMakeLists.txt
  3. 2
      platforms/nuttx/NuttX/apps
  4. 2
      platforms/nuttx/NuttX/nuttx
  5. 4
      platforms/nuttx/cmake/init.cmake
  6. 33
      platforms/nuttx/src/px4/nxp/kinetis/board_reset/board_reset.c
  7. 33
      platforms/nuttx/src/px4/stm/stm32_common/board_reset/board_reset.c
  8. 2
      platforms/nuttx/src/px4/stm/stm32f7/include/px4_arch/micro_hal.h

2
platforms/nuttx/CMakeLists.txt

@ -52,7 +52,7 @@ list(APPEND nuttx_libs @@ -52,7 +52,7 @@ list(APPEND nuttx_libs
nuttx_arch
nuttx_binfmt
nuttx_c
nuttx_configs
nuttx_boards
nuttx_xx
nuttx_drivers
nuttx_fs

12
platforms/nuttx/NuttX/CMakeLists.txt

@ -112,9 +112,9 @@ add_custom_target(nuttx_copy_and_apps_target @@ -112,9 +112,9 @@ add_custom_target(nuttx_copy_and_apps_target
if(EXISTS ${NUTTX_CONFIG_DIR}/Kconfig)
add_custom_command(
OUTPUT
${NUTTX_DIR}/configs/dummy/Kconfig
${NUTTX_DIR}/boards/dummy/Kconfig
${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
COMMAND ${CMAKE_COMMAND} -E copy ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/configs/dummy/Kconfig
COMMAND ${CMAKE_COMMAND} -E copy ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/boards/dummy/Kconfig
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
DEPENDS
nuttx_copy_and_apps_target
@ -122,9 +122,9 @@ if(EXISTS ${NUTTX_CONFIG_DIR}/Kconfig) @@ -122,9 +122,9 @@ if(EXISTS ${NUTTX_CONFIG_DIR}/Kconfig)
else()
add_custom_command(
OUTPUT
${NUTTX_DIR}/configs/dummy/Kconfig
${NUTTX_DIR}/boards/dummy/Kconfig
${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/configs/dummy/Kconfig
COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/boards/dummy/Kconfig
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
DEPENDS
nuttx_copy_and_apps_target
@ -133,7 +133,7 @@ endif() @@ -133,7 +133,7 @@ endif()
add_custom_target(nuttx_config_kconfig_target
DEPENDS
${NUTTX_DIR}/configs/dummy/Kconfig
${NUTTX_DIR}/boards/dummy/Kconfig
${CMAKE_CURRENT_BINARY_DIR}/nuttx_config_kconfig.stamp
)
@ -357,7 +357,7 @@ endfunction() @@ -357,7 +357,7 @@ endfunction()
# add_nuttx_dir(NAME DIRECTORY KERNEL EXTRA)
add_nuttx_dir(arch arch/arm/src y -D__KERNEL__)
add_nuttx_dir(binfmt binfmt y -D__KERNEL__)
add_nuttx_dir(configs configs y -D__KERNEL__)
add_nuttx_dir(boards boards y -D__KERNEL__)
add_nuttx_dir(drivers drivers y -D__KERNEL__)
add_nuttx_dir(fs fs y -D__KERNEL__)
add_nuttx_dir(sched sched y -D__KERNEL__)

2
platforms/nuttx/NuttX/apps

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 13eeff0ec3f23d84fabf1e9fe216846957ad15cf
Subproject commit 91b6ad6a0d00ac107088b18588cd54d40e3cb796

2
platforms/nuttx/NuttX/nuttx

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 427238133be2b0ecd068a11e886ee8fdbc31f6dc
Subproject commit a48028b924cfdb91cae1dafccaf383da06c84d51

4
platforms/nuttx/cmake/init.cmake

@ -94,9 +94,9 @@ set(NUTTX_DEFCONFIG ${NUTTX_CONFIG_DIR}/${NUTTX_CONFIG}/defconfig CACHE FILEPATH @@ -94,9 +94,9 @@ set(NUTTX_DEFCONFIG ${NUTTX_CONFIG_DIR}/${NUTTX_CONFIG}/defconfig CACHE FILEPATH
# If the board provides a Kconfig Use it or create an empty one
if(EXISTS ${NUTTX_CONFIG_DIR}/Kconfig)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/configs/dummy/Kconfig)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${NUTTX_CONFIG_DIR}/Kconfig ${NUTTX_DIR}/boards/dummy/Kconfig)
else()
execute_process(COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/configs/dummy/Kconfig)
execute_process(COMMAND ${CMAKE_COMMAND} -E touch ${NUTTX_DIR}/boards/dummy/Kconfig)
endif()
execute_process(

33
platforms/nuttx/src/px4/nxp/kinetis/board_reset/board_reset.c

@ -42,6 +42,39 @@ @@ -42,6 +42,39 @@
#include <nuttx/board.h>
#ifdef CONFIG_BOARDCTL_RESET
/****************************************************************************
* Public functions
****************************************************************************/
/****************************************************************************
* Name: board_reset
*
* Description:
* Reset board. Support for this function is required by board-level
* logic if CONFIG_BOARDCTL_RESET is selected.
*
* Input Parameters:
* status - Status information provided with the reset event. This
* meaning of this status information is board-specific. If not
* used by a board, the value zero may be provided in calls to
* board_reset().
*
* Returned Value:
* If this function returns, then it was not possible to power-off the
* board due to some constraints. The return value int this case is a
* board-specific reason for the failure to shutdown.
*
****************************************************************************/
int board_reset(int status)
{
up_systemreset();
return 0;
}
#endif /* CONFIG_BOARDCTL_RESET */
int board_set_bootload_mode(board_reset_e mode)

33
platforms/nuttx/src/px4/stm/stm32_common/board_reset/board_reset.c

@ -43,6 +43,39 @@ @@ -43,6 +43,39 @@
#include <stm32_rtc.h>
#include <nuttx/board.h>
#ifdef CONFIG_BOARDCTL_RESET
/****************************************************************************
* Public functions
****************************************************************************/
/****************************************************************************
* Name: board_reset
*
* Description:
* Reset board. Support for this function is required by board-level
* logic if CONFIG_BOARDCTL_RESET is selected.
*
* Input Parameters:
* status - Status information provided with the reset event. This
* meaning of this status information is board-specific. If not
* used by a board, the value zero may be provided in calls to
* board_reset().
*
* Returned Value:
* If this function returns, then it was not possible to power-off the
* board due to some constraints. The return value int this case is a
* board-specific reason for the failure to shutdown.
*
****************************************************************************/
int board_reset(int status)
{
up_systemreset();
return 0;
}
#endif /* CONFIG_BOARDCTL_RESET */
int board_set_bootload_mode(board_reset_e mode)
{

2
platforms/nuttx/src/px4/stm/stm32f7/include/px4_arch/micro_hal.h

@ -39,7 +39,7 @@ __BEGIN_DECLS @@ -39,7 +39,7 @@ __BEGIN_DECLS
#define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_STM32F7
#include <chip.h>
#include <chip/stm32_flash.h>
#include <hardware/stm32_flash.h>
#include <up_internal.h> //include up_systemreset() which is included on stm32.h
#include <stm32_bbsram.h>
#define PX4_BBSRAM_SIZE STM32F7_BBSRAM_SIZE

Loading…
Cancel
Save