Include generator issue


Hi, forum,
See the clip, I don’t know why my DS (v5.3) will auto generate an include file (“le_gpioPin25_interface.h”) although I didn’t binding the service (See gpioService.le_gpioPin25).
It seems there are some bugs with the DS(v5.3).

Can you give me any advises, thank you!

the . cdef file:

sources:
{
	TrackDemoComponent.c
}
requires:
{
	api:
	{
	// ======= GPIO API requires ========
		// IOT1_GPIO4
		le_gpioPin21 = le_gpio.api
		// IOT1_GPIO3
		le_gpioPin32 = le_gpio.api
		// IOT1_GPIO2
		le_gpioPin7  = le_gpio.api
		// IOT1_GPIO1
		//le_gpioPin25 = le_gpio.api
		
	// ======== ADC API requires ========
		le_adc = le_adc.api
		
	// ======== GPS API requires ========
		le_posCtrl = positioning/le_posCtrl.api
		le_pos = positioning/le_pos.api
		
	// ======== modem information. e.g. to get IMEI numbers ========
		le_info = le_info.api
		
	// ========  SIM ========
		le_sim = le_sim.api
		
	// ======== Radio ========
		le_mrc = le_mrc.api
		
	// ======== Modem data control e.g . to set APN ========
		le_mdc = le_mdc.api
		
	}
}

cflags:
{
    //"-std=c99"
    -I$CURDIR
	-I$CURDIR/user
}

the .adef file:

executables:
{
	trackdemo = ( TrackDemoComponent )
}

processes:
{
	envVars:
	{
		LE_LOG_LEVEL = DEBUG
	}

	run:
	{
		( trackdemo )
	}

	maxCoreDumpFileBytes: 512K
	maxFileBytes: 512K
}

bindings:
{
	trackdemo.TrackDemoComponent.le_gpioPin21 -> gpioService.le_gpioPin21	//IOT1_GPIO4
	trackdemo.TrackDemoComponent.le_gpioPin32 -> gpioService.le_gpioPin32	//IOT1_GPIO3
	trackdemo.TrackDemoComponent.le_gpioPin7 -> gpioService.le_gpioPin7  	//IOT1_GPIO2
	//trackdemo.TrackDemoComponent.le_gpioPin25 -> gpioService.le_gpioPin25	//IOT1_GPIO1
	trackdemo.TrackDemoComponent.le_adc -> modemService.le_adc				//ADC Service
	trackdemo.TrackDemoComponent.le_posCtrl -> positioningService.le_posCtrl//GPS Control Service
	trackdemo.TrackDemoComponent.le_pos -> positioningService.le_pos		//GPS Position Service
	
	//Bindings Modem information services e.g to get IMEI numbers
    trackdemo.TrackDemoComponent.le_info -> modemService.le_info
    
    //Bindings SIM services e.g to get ICCID number
    trackdemo.TrackDemoComponent.le_sim -> modemService.le_sim
    
    //Bindings Modem Radio Control
    trackdemo.TrackDemoComponent.le_mrc -> modemService.le_mrc
    
    //Bindings Modem data control e.g to set APN
    trackdemo.TrackDemoComponent.le_mdc -> modemService.le_mdc
}

version: 1.0.0
maxFileSystemBytes: 512K

Hi @lumao

Does it still occur after:

  • a clean build?
  • a project build after having deleted the inc-gen and the Target_Legato_Debug folders?

By the way, we’ll try to reproduce the issue, thanks for the files.

hi daav,
I restart the DS and I Clean Project and rebuild again, it is OK now. Thank you.