Hi, I have two peice of code for different peripherals. Stand alone both are working fine.
But when i merge both code, device reset application 2 times and third time it got stuck at some somewhere in middle of application.
I am using USB bootloader for update of application.
Device is LPC2148. Application which i am merging are 1. USBCDC code. 2. combination of i2c, uart, spi and some IO.
Rajbabu
Yes, that is a statement describing the current state of your project. But do you happen to have any question?
If you want some help figuring out why the program fails, you really do have to supply some form of information. We have no ability to guess if you have enough stack space, are handling the different interrupts correctly etc. And we have zero knowledge about what type of debugging you might have tried.
I think we're supposed to guess.
It would appear that you didn't do the merge properly, or failed to consider the ramifications of how the combined code would behave. Study both more carefully, and the resources and expectations of each.
Please do not guess...
I found that I2C interrupt is creating problem when i shifted my Code to location 0x2000 since i am using USB bootloader.
On forum i found that i have to shift Vector table.
I changed Startup.s and defined variable REMAP RAM_MODE and RAM_INTVEC.
Still not working...
Should i post my code here?