Skip to content

Commit d1559ed

Browse files
GRATTINSTMGitHub Enterprise
authored and
GitHub Enterprise
committed
Update to v2.0.0
- Add support of the NUCLEO-N657X0-Q board - Update miscellaneous drivers - Update Camera Middleware to v1.4.2 - Miscellaneous refactoring
1 parent 59327db commit d1559ed

File tree

1,999 files changed

+615298
-78128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,999 files changed

+615298
-78128
lines changed
File renamed without changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
******************************************************************************
3+
* @file app_camerapipeline.h
4+
* @author GPM Application Team
5+
*
6+
******************************************************************************
7+
* @attention
8+
*
9+
* Copyright (c) 2023 STMicroelectronics.
10+
* All rights reserved.
11+
*
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
15+
*
16+
******************************************************************************
17+
*/
18+
#ifndef APP_CAMERAPIPELINE
19+
#define APP_CAMERAPIPELINE
20+
21+
#define CAMERA_FPS 30
22+
#define SCREEN_HEIGHT (240)
23+
#define SCREEN_WIDTH (320)
24+
25+
void CameraPipeline_Init(uint32_t *layers_width[2], uint32_t *layers_height[2], uint32_t *pitch_nn);
26+
void CameraPipeline_DeInit(void);
27+
void CameraPipeline_Start(void);
28+
void CameraPipeline_DisplayPipe_Start(uint8_t *display_pipe_dst, uint32_t cam_mode);
29+
void CameraPipeline_DisplayPipe_Stop(void);
30+
void CameraPipeline_NNPipe_Start(uint8_t *nn_pipe_dst, uint32_t cam_mode);
31+
void CameraPipeline_IspUpdate(void);
32+
33+
#endif
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
******************************************************************************
3+
* @file app_config.h
4+
* @author GPM Application Team
5+
*
6+
******************************************************************************
7+
* @attention
8+
*
9+
* Copyright (c) 2023 STMicroelectronics.
10+
* All rights reserved.
11+
*
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
15+
*
16+
******************************************************************************
17+
*/
18+
19+
#ifndef APP_CONFIG
20+
#define APP_CONFIG
21+
22+
#include "arm_math.h"
23+
24+
#define USE_DCACHE
25+
26+
/*Defines: CMW_MIRRORFLIP_NONE; CMW_MIRRORFLIP_FLIP; CMW_MIRRORFLIP_MIRROR; CMW_MIRRORFLIP_FLIP_MIRROR;*/
27+
#define CAMERA_FLIP CMW_MIRRORFLIP_NONE
28+
29+
#define ASPECT_RATIO_CROP (1) /* Crop both pipes to nn input aspect ratio; Original aspect ratio kept */
30+
#define ASPECT_RATIO_FIT (2) /* Resize both pipe to NN input aspect ratio; Original aspect ratio not kept */
31+
#define ASPECT_RATIO_FULLSCREEN (3) /* Resize camera image to NN input size and display a maximized image. See Doc/Build-Options.md#aspect-ratio-mode */
32+
#define ASPECT_RATIO_MODE ASPECT_RATIO_FULLSCREEN
33+
34+
/* Model Related Info */
35+
#define POSTPROCESS_TYPE POSTPROCESS_ISEG_YOLO_V8_UI
36+
37+
#define NN_WIDTH
38+
#define NN_HEIGHT
39+
#define NN_BPP 3
40+
41+
#define COLOR_BGR (0)
42+
#define COLOR_RGB (1)
43+
#define COLOR_MODE COLOR_RGB
44+
45+
#error "For now, no model is supported on NUCLEO-N657X0-Q."
46+
47+
/* Display */
48+
#define WELCOME_MSG_1 ""
49+
#define WELCOME_MSG_2 ((char *[2]) {"Model Running in STM32 MCU", "internal memory"})
50+
51+
#endif
File renamed without changes.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
******************************************************************************
3+
* @file cmw_camera_conf.h
4+
* @author GPM Application Team
5+
*
6+
******************************************************************************
7+
* @attention
8+
*
9+
* Copyright (c) 2024 STMicroelectronics.
10+
* All rights reserved.
11+
*
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
15+
*
16+
******************************************************************************
17+
*/
18+
19+
/* Define to prevent recursive inclusion -------------------------------------*/
20+
#ifndef CMW_CAMERA_CONF_H
21+
#define CMW_CAMERA_CONF_H
22+
23+
#ifdef __cplusplus
24+
extern "C" {
25+
#endif
26+
27+
/* Includes ------------------------------------------------------------------*/
28+
#include "stm32n6xx_hal.h"
29+
#include "stm32n6xx_nucleo_bus.h"
30+
31+
32+
/* ########################## Module Selection ############################## */
33+
/**
34+
* @brief This is the list of modules to be used in the HAL driver
35+
*/
36+
#define USE_IMX335_SENSOR
37+
#define USE_VD66GY_SENSOR
38+
#define USE_VD55G1_SENSOR
39+
40+
#ifdef __cplusplus
41+
}
42+
#endif
43+
44+
#endif /* CMW_CAMERA_CONF_H */
File renamed without changes.
File renamed without changes.

Inc/isp_param_conf.h renamed to Application/NUCLEO-N657X0-Q/Inc/isp_param_conf.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ static const ISP_IQParamTypeDef ISP_IQParamCacheInit_IMX335 = {
3333
},
3434
.AECAlgo = {
3535
.enable = 1,
36-
.exposureCompensation = 0,
36+
.exposureCompensation = EXPOSURE_TARGET_0_0_EV,
37+
.antiFlickerFreq = 0,
3738
},
3839
.statRemoval = {
3940
.enable = 0,
@@ -56,7 +57,7 @@ static const ISP_IQParamTypeDef ISP_IQParamCacheInit_IMX335 = {
5657
},
5758
.demosaicing = {
5859
.enable = 1,
59-
.type = 0,
60+
.type = ISP_DEMOS_TYPE_RGGB,
6061
.peak = 2,
6162
.lineV = 4,
6263
.lineH = 4,
@@ -111,13 +112,13 @@ static const ISP_IQParamTypeDef ISP_IQParamCacheInit_IMX335 = {
111112
},
112113
};
113114
#if CAMERA_FLIP == CMW_MIRRORFLIP_NONE
114-
#define BAYER_TYPE 1
115+
#define BAYER_TYPE ISP_DEMOS_TYPE_GRBG
115116
#elif CAMERA_FLIP == CMW_MIRRORFLIP_FLIP
116-
#define BAYER_TYPE 3
117+
#define BAYER_TYPE ISP_DEMOS_TYPE_BGGR
117118
#elif CAMERA_FLIP == CMW_MIRRORFLIP_MIRROR
118-
#define BAYER_TYPE 0
119+
#define BAYER_TYPE ISP_DEMOS_TYPE_RGGB
119120
#elif CAMERA_FLIP == CMW_MIRRORFLIP_FLIP_MIRROR
120-
#define BAYER_TYPE 2
121+
#define BAYER_TYPE ISP_DEMOS_TYPE_GBRG
121122
#endif
122123
/* DCMIPP ISP configuration for VD66GY sensor */
123124
static const ISP_IQParamTypeDef ISP_IQParamCacheInit_VD66GY = {
@@ -129,7 +130,8 @@ static const ISP_IQParamTypeDef ISP_IQParamCacheInit_VD66GY = {
129130
},
130131
.AECAlgo = {
131132
.enable = 1,
132-
.exposureCompensation = 0,
133+
.exposureCompensation = EXPOSURE_TARGET_0_0_EV,
134+
.antiFlickerFreq = 0,
133135
},
134136
.statRemoval = {
135137
.enable = 0,
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
******************************************************************************
3+
* @file main.h
4+
* @author GPM Application Team
5+
*
6+
******************************************************************************
7+
* @attention
8+
*
9+
* Copyright (c) 2023 STMicroelectronics.
10+
* All rights reserved.
11+
*
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
15+
*
16+
******************************************************************************
17+
*/
18+
19+
/* Define to prevent recursive inclusion -------------------------------------*/
20+
#ifndef MAIN_H
21+
#define MAIN_H
22+
23+
/* Includes ------------------------------------------------------------------*/
24+
#include "stm32n6xx_hal.h"
25+
26+
/* Exported types ------------------------------------------------------------*/
27+
/* Exported constants --------------------------------------------------------*/
28+
/* Exported macro ------------------------------------------------------------*/
29+
30+
/* Exported functions ------------------------------------------------------- */
31+
32+
#endif /* MAIN_H */
33+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
******************************************************************************
3+
* @file mx25um51245g_conf.h
4+
* @author MCD Application Team
5+
* @brief MX25UM51245G OctoSPI memory configuration template file.
6+
* This file should be copied to the application folder and renamed
7+
* to mx25um51245g_conf.h
8+
******************************************************************************
9+
* @attention
10+
*
11+
* Copyright (c) 2023 STMicroelectronics.
12+
* All rights reserved.
13+
*
14+
* This software is licensed under terms that can be found in the LICENSE file
15+
* in the root directory of this software component.
16+
* If no LICENSE file comes with this software, it is provided AS-IS.
17+
*
18+
******************************************************************************
19+
*/
20+
21+
/* Define to prevent recursive inclusion -------------------------------------*/
22+
#ifndef MX25UM51245G_CONF_H
23+
#define MX25UM51245G_CONF_H
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
/* Includes ------------------------------------------------------------------*/
30+
#include "stm32n6xx_hal.h"
31+
32+
/** @addtogroup BSP
33+
* @{
34+
*/
35+
#define CONF_OSPI_ODS MX25UM51245G_CR_ODS_24 /* MX25UM51245G Output Driver Strength */
36+
37+
#define DUMMY_CYCLES_READ 8U
38+
#define DUMMY_CYCLES_READ_OCTAL 6U
39+
#define DUMMY_CYCLES_READ_OCTAL_DTR 6U
40+
#define DUMMY_CYCLES_REG_OCTAL 4U
41+
#define DUMMY_CYCLES_REG_OCTAL_DTR 5U
42+
43+
/**
44+
* @}
45+
*/
46+
47+
#ifdef __cplusplus
48+
}
49+
#endif
50+
51+
#endif /* MX25UM51245G_CONF_H */
52+
53+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)