Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

include file again

$
0
0

I'm using CCS5.5.0-0007 to evaluate MSP430 uC. I had one project built in CCS5.2. Thanks for TI's great incompatible strategy, I had to build the project from scratch for CCS5.5 again.  Hey, CCS developer, does the incompatibility ever bother you guys?

Anyway, I built the project. Now, all the ISR handlers are in the InterruptVectors_Init.c, which, I think , is great. Because the structure is now much more clear than the old one. I tried to add my code in there as following.

/* USER CODE START (section: InterruptVectors_init_c_prologue) */
/* User defined includes, defines, global variables and functions */
#include "gh.h"
extern unsigned char time, local_timer,timer_updated,task_timer; // second timer
extern unsigned char uart_rx_buf[16]; // uart rx buffer
extern unsigned char uart_tx_buf[8]; //uart tx buffer
extern unsigned char uart_rx_pt, uart_tx_pt,event_status,timer; // UART RX buffer pointer, tx buffer pointer

/* USER CODE END (section: InterruptVectors_init_c_prologue) */

Now, I got the error of "InterruptVectors_init.c", line 24: fatal error #1965: cannot open source file "gh.h" . The gh.h file is in the project folder. I add it using "new header file" option. It did complain it when I used it in the main.c. I have the project path in the include option for the compiler. Now, I can not understand why it can not find it. How can I fix this issue?

Before I post this, I did some search on this forum . it seems that CCS's compiler option was never user friendly. Lots of questions about  how to add include file and include file not being found. Do you guys know that it's almost for sure that the customer will add some new header file in the project folder. So why the hell you can not put project path as a default search option in your compiler include?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>