Guest
#1172035
Hello All, Following please find description of the irrational (at least for me) problem with a project based on LPC2138: The main problem is that code doesn't start correctly when project is powered up. For debugging purposes I'm testing Atmel dataflash connected via SPI0. Dataflash doesn't respond correctly. It appears that SSEL0 remains stil on the low level and doesn't return into 1. On the other hand when exactly the same code is downloaded to the micro via Philips LPC2000 then everything works ok! I've tries manual reset through push-buttom, changed reset ic (DS1818-10), implemented watch-dog reset (just one time reset. Once done, programm process further), additional init sequences for SPI0 and dataflash - nothing works. Testing RSIR, S0SPSR and PCONP registers doesn't show anything unusuall. Roughly the same piece of code works correct in few other applications, so I don't think the problem is there. I'm using makefile, linker script and start-up code from Martin's gamma example. IRQ stock size is 0x400. Does anyone know a difference in reset from Philips flash utility and another type of reset? Any hints are welcome. Slawek