2025-03-17 4:14 AM
I'm using Nucleo Board N6570X0-Q.
2 Problems:
1. the linker file can not automatically store parameters of the ai model to the on board flash?
I configured the flash (I think with the right configuration in XSPI2 for the Flash), but the generated ld file doesn't put ai model parameters inside the flash as the examples from the DK board(In DK board they are stored inside the PSRAM). What should I do? or it is all right just to use the default ld file? (my AI model is also rightly analyzed and used the Neutal ART runtime)
My ld file looks like this, which doesnt seem to be able to cover all the data of a AI model.
/*
******************************************************************************
**
** @file : STM32N6XX_AXISRAM2_fsbl.ld
**
** @author : GPM Application Team
**
** @brief : Linker script for STM32N6XX Device from STM32N6 series
** 512 KBytes RAM
**
** Set heap size, stack size and stack location according
** to application requirements.
**
** Set memory bank area and size if external memory is used
**
** Target : STMicroelectronics STM32
**
** Distribution: The file is distributed as is, without any warranty
** of any kind.
**
******************************************************************************
** @attention
**
** Copyright (c) 2024 STMicroelectronics.
** All rights reserved.
**
** This software is licensed under terms that can be found in the LICENSE file
** in the root directory of this software component.
** If no LICENSE file comes with this software, it is provided AS-IS.
**
******************************************************************************
*/
/* Entry Point */
ENTRY(Reset_Handler)
/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
_sstack = _estack - _Min_Stack_Size;
_Min_Heap_Size = 0x800 ; /* required amount of heap */
_Min_Stack_Size = 0x800 ; /* required amount of stack */
/* Memories definition */
MEMORY
{
ROM (xrw) : ORIGIN = 0x34180400, LENGTH = 255K
RAM (xrw) : ORIGIN = 0x341C0000, LENGTH = 256K
}
2. when I try to build the project (I'm using the main template from the offical file Embedded ST Neural ART API)
it always gives me this report:
Do you have any ideas whats wrong and what I can do to fix this? what should be included?
my include :
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include"ll_aton_NN_interface.h"
/* USER CODE END Includes */
Thanks a lot for the help!!!!!!