We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear sir
We are using LPC2364 for our application project. Application of our project is interfacing of LPC2364 to 20 * 4 LCD-Display,USB,Ethernet and also UART,SPI. In first phase of our project we developed separate code of 1) USB, 2) Ethernet and 3) LCD with UART,SPI in (cygwin)GNU compiler. After successful testing of those individual code we combined those code. But we face lot of problems with that combined code which are Given below.
1) In beginning, combined code was not working but after changing C source file Sequence, all code working properly. 2) Changing in any LCD C source file USB, Ethernet is not working. Change in LCD file means if we add any new variable or remove which in not related to USB and Ethernet but related to LCD code then also USB and Ethernet is not working and some time LPC2364 controller get hanged. 3) How to handle number of interrupts in windows based (cygwin)GNU compiler when they are more then four. We have used five interrupt which are Timer 0 and 1,USB interrupt, SPI and UART. 4) Is there any Effect of our Operating system? We are using Windows 98. Is it sufficient for the KeilIDE and GCC compiler? 5) Our Code is working in only Level-2 (Size) optimization level. What should we do to operate our code in all optimization level?
Thank you, Dushyant Rana
dear sir,
thanks for your reply.
But we have already incresed the user stack size. here is the little configuration of our start up code.
.equ Top_Stack, 0x40002000 .equ UND_Stack_Size, 0x00000008 .equ SVC_Stack_Size, 0x00000000 .equ ABT_Stack_Size, 0x00000000 .equ FIQ_Stack_Size, 0x00000000 .equ IRQ_Stack_Size, 0x00000100 .equ USR_Stack_Size, 0x00000400
Is it Ok?
One thing again i would like to tell you that we are using (cygwin)GNU compiler in windows 98.
In real view compiler normally IENABLE and IDISABLE is used when we used interrupt. But in GNU compiler these instructions not working and give error. And in our code we have used 5 interrupt without use of these instructions code so could this generate problem.