NEW: release DJI Payload-SDK version 3.8.0
This commit is contained in:
@ -64,7 +64,7 @@
|
||||
#define configTICK_RATE_HZ ((TickType_t)1000)
|
||||
#define configMAX_PRIORITIES ( 7 )
|
||||
#define configMINIMAL_STACK_SIZE ((uint16_t)128)
|
||||
#define configTOTAL_HEAP_SIZE ((size_t)75000)
|
||||
#define configTOTAL_HEAP_SIZE ((size_t)90000)
|
||||
#define configMAX_TASK_NAME_LEN ( 16 )
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
#define configUSE_MUTEXES 1
|
||||
|
||||
@ -112,10 +112,10 @@ void DjiUser_StartTask(void const *argument)
|
||||
.UartGetStatus = HalUart_GetStatus,
|
||||
};
|
||||
T_DjiFirmwareVersion firmwareVersion = {
|
||||
.majorVersion = 1,
|
||||
.minorVersion = 0,
|
||||
.modifyVersion = 0,
|
||||
.debugVersion = 0,
|
||||
.majorVersion = USER_FIRMWARE_MAJOR_VERSION,
|
||||
.minorVersion = USER_FIRMWARE_MINOR_VERSION,
|
||||
.modifyVersion = USER_FIRMWARE_MODIFY_VERSION,
|
||||
.debugVersion = USER_FIRMWARE_DEBUG_VERSION,
|
||||
};
|
||||
|
||||
UART_Init(DJI_CONSOLE_UART_NUM, DJI_CONSOLE_UART_BAUD);
|
||||
@ -233,7 +233,6 @@ void DjiUser_StartTask(void const *argument)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !USE_USB_HOST_UART
|
||||
#ifdef CONFIG_MODULE_SAMPLE_CAMERA_ON
|
||||
if (aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M300_RTK
|
||||
&& aircraftInfoBaseInfo.djiAdapterType == DJI_SDK_ADAPTER_TYPE_NONE) {
|
||||
@ -318,7 +317,12 @@ void DjiUser_StartTask(void const *argument)
|
||||
.cleanUpgradeRebootState = DjiUpgradePlatformStm32_CleanUpgradeRebootState,
|
||||
};
|
||||
T_DjiTestUpgradeConfig testUpgradeConfig = {
|
||||
.firmwareVersion = {1, 0, 0, 0},
|
||||
.firmwareVersion = {
|
||||
USER_FIRMWARE_MAJOR_VERSION,
|
||||
USER_FIRMWARE_MINOR_VERSION,
|
||||
USER_FIRMWARE_MODIFY_VERSION,
|
||||
USER_FIRMWARE_DEBUG_VERSION
|
||||
},
|
||||
.transferType = DJI_FIRMWARE_TRANSFER_TYPE_DCFTP,
|
||||
.needReplaceProgramBeforeReboot = false
|
||||
};
|
||||
@ -326,7 +330,6 @@ void DjiUser_StartTask(void const *argument)
|
||||
DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) {
|
||||
printf("psdk upgrade init error");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
returnCode = DjiCore_ApplicationStart();
|
||||
|
||||
@ -44,11 +44,11 @@ extern "C" {
|
||||
|
||||
#define CONFIG_MODULE_SAMPLE_FC_SUBSCRIPTION_ON
|
||||
|
||||
#define CONFIG_MODULE_SAMPLE_GIMBAL_EMU_ON
|
||||
// #define CONFIG_MODULE_SAMPLE_GIMBAL_EMU_ON
|
||||
|
||||
#define CONFIG_MODULE_SAMPLE_CAMERA_ON
|
||||
// #define CONFIG_MODULE_SAMPLE_CAMERA_ON
|
||||
|
||||
#define CONFIG_MODULE_SAMPLE_XPORT_ON
|
||||
// #define CONFIG_MODULE_SAMPLE_XPORT_ON
|
||||
|
||||
#define CONFIG_MODULE_SAMPLE_UPGRADE_ON
|
||||
|
||||
|
||||
@ -27,6 +27,8 @@
|
||||
#include "application.h"
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "core_cm4.h"
|
||||
#include "flash_if.h"
|
||||
|
||||
/* Private constants ---------------------------------------------------------*/
|
||||
#define USER_START_TASK_STACK_SIZE 2048
|
||||
@ -53,6 +55,10 @@ void Error_Handler(void);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
__disable_irq();
|
||||
SCB->VTOR = APPLICATION_ADDRESS;
|
||||
__enable_irq();
|
||||
|
||||
/* STM32F4xx HAL library initialization:
|
||||
- Configure the Flash prefetch, instruction and Data caches
|
||||
- Configure the Systick to generate an interrupt each 1 msec
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
ENTRY(Reset_Handler)
|
||||
|
||||
/* Highest address of the user mode stack */
|
||||
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
|
||||
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4; /* end of "RAM" Ram type memory */
|
||||
|
||||
_Min_Heap_Size = 0x800 ; /* required amount of heap */
|
||||
_Min_Stack_Size = 0x800 ; /* required amount of stack */
|
||||
@ -39,7 +39,7 @@ MEMORY
|
||||
{
|
||||
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
|
||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
|
||||
FLASH (rx) : ORIGIN = 0x8010000, LENGTH = 448K
|
||||
}
|
||||
|
||||
/* Sections */
|
||||
|
||||
@ -535,6 +535,11 @@
|
||||
</File>
|
||||
<File>
|
||||
<FileType>1</FileType>
|
||||
<FileName>util_link_list.c</FileName>
|
||||
<FilePath>..\..\..\..\..\module_sample\utils\util_link_list.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileType>1</FileType>
|
||||
<FileName>util_md5.c</FileName>
|
||||
<FilePath>..\..\..\..\..\module_sample\utils\util_md5.c</FilePath>
|
||||
</File>
|
||||
|
||||
Reference in New Issue
Block a user