The code completion is not working for simple case
Posted: Mon Sep 07, 2015 3:12 pm
				
				Hi,
I tried to use CodeLite for MCU firmware developing (for STM32's MCUs) and was surprised CodeLite doesn't show suggestions for MCU objects (timers, ports etc). This is simple example made by copypasting of STM32 cmsis headers:
I expected code completion working after TIM2-> but it doesn't. How to fix it? 
PS: I tried both ctags and clang.
PPS: CodeLite 8.2.0 x86 for Windows
			I tried to use CodeLite for MCU firmware developing (for STM32's MCUs) and was surprised CodeLite doesn't show suggestions for MCU objects (timers, ports etc). This is simple example made by copypasting of STM32 cmsis headers:
Code: Select all
// code from stm32f10x.h BEGIN
#include <stdint.h>
#define __IO volatile
#define PERIPH_BASE     ((uint32_t)0x40000000)
#define APB1PERIPH_BASE PERIPH_BASE
#define TIM2_BASE       (APB1PERIPH_BASE + 0x0000)
typedef struct
{
  __IO uint16_t CR1;
  uint16_t  RESERVED0;
  __IO uint16_t CR2;
  uint16_t  RESERVED1;
  __IO uint16_t SMCR;
  uint16_t  RESERVED2;
  __IO uint16_t DIER;
  uint16_t  RESERVED3;
  __IO uint16_t SR;
  uint16_t  RESERVED4;
  __IO uint16_t EGR;
  uint16_t  RESERVED5;
  __IO uint16_t CCMR1;
  uint16_t  RESERVED6;
  __IO uint16_t CCMR2;
  uint16_t  RESERVED7;
  __IO uint16_t CCER;
  uint16_t  RESERVED8;
  __IO uint16_t CNT;
  uint16_t  RESERVED9;
  __IO uint16_t PSC;
  uint16_t  RESERVED10;
  __IO uint16_t ARR;
  uint16_t  RESERVED11;
  __IO uint16_t RCR;
  uint16_t  RESERVED12;
  __IO uint16_t CCR1;
  uint16_t  RESERVED13;
  __IO uint16_t CCR2;
  uint16_t  RESERVED14;
  __IO uint16_t CCR3;
  uint16_t  RESERVED15;
  __IO uint16_t CCR4;
  uint16_t  RESERVED16;
  __IO uint16_t BDTR;
  uint16_t  RESERVED17;
  __IO uint16_t DCR;
  uint16_t  RESERVED18;
  __IO uint16_t DMAR;
  uint16_t  RESERVED19;
} TIM_TypeDef;
#define TIM2  ((TIM_TypeDef *) TIM2_BASE)
// code from stm32f10x.h END
int main()
{
	TIM2->CR1 = 0; // the code completion after TIM2-> doesn't show suggestions!
	return 0;
}PS: I tried both ctags and clang.
PPS: CodeLite 8.2.0 x86 for Windows