esp-adf icon indicating copy to clipboard operation
esp-adf copied to clipboard

目前补丁已经打了,还是提醒$ADF_PATH/idf_patches/idf_v4.4_freertos.patch怎么解决啊 (AUD-5279)

Open liuliuu-112 opened this issue 2 years ago • 3 comments

image image 目前补丁已经打了,现在程序还是报请打补丁,这个怎么解决啊

liuliuu-112 avatar Mar 16 '24 03:03 liuliuu-112

这个路径有文件只说明patch在,要打的话需要切到IDF的根目录然后执行git apply ****.patch, 打完后确认下freertos/tasks.c里面有对应的函数在就可以了,手动将函数copy过去也可以

TempoTian avatar Mar 18 '24 11:03 TempoTian

这个路径有文件只说明patch在,要打的话需要切到IDF的根目录然后执行git apply ****.patch, 打完后确认下freertos/tasks.c里面有对应的函数在就可以了,手动将函数copy过去也可以

是只复制这个函数,对吧,求教

BaseType_t xTaskCreateRestrictedPinnedToCore( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask, const BaseType_t xCoreID) { TCB_t *pxNewTCB; BaseType_t xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;

	configASSERT( pxTaskDefinition->puxStackBuffer );

	if( pxTaskDefinition->puxStackBuffer != NULL )
	{
		/* Allocate space for the TCB.  Where the memory comes from depends
  •   	on the implementation of the port malloc function and whether or
    
  •   	not static allocation is being used. */
      	pxNewTCB = ( TCB_t * ) pvPortMallocTcbMem( sizeof( TCB_t ) );
    
      	if( pxNewTCB != NULL )
      	{
      		/* Store the stack location in the TCB. */
      		pxNewTCB->pxStack = pxTaskDefinition->puxStackBuffer;
    
      		/* Tasks can be created statically or dynamically, so note
    
  •   		this task had a statically allocated stack in case it is
    
  •   		later deleted.  The TCB was allocated dynamically. */
      		pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
    
      		prvInitialiseNewTask(	pxTaskDefinition->pvTaskCode,
      								pxTaskDefinition->pcName,
      								pxTaskDefinition->usStackDepth,
      								pxTaskDefinition->pvParameters,
      								pxTaskDefinition->uxPriority,
      								pxCreatedTask, pxNewTCB,
      								pxTaskDefinition->xRegions,
      								xCoreID );
    
      		prvAddNewTaskToReadyList( pxNewTCB, pxTaskDefinition->pvTaskCode, xCoreID );
      		xReturn = pdPASS;
      	}
      }
    
      return xReturn;
    
    }

liuliuu-112 avatar Mar 19 '24 01:03 liuliuu-112

是的

TempoTian avatar Mar 19 '24 01:03 TempoTian