Hello. I've recently bought the uCAM-TTL module and I've been trying to get a picture from it with the help of a development board based on NXP's LPC1768 processor. I'm using Keil's uVision IDE and the language is C. So far I've managed to get an ACK and a SYNC from the camera as well as send an ACK back from the MCU. But that's all I can do for now. Whenever I issue an INIT command, I consistently get a NACK back (of the "Command Header Error" type - e.g. AA0F0009F000). I've even tried with a delay and a RESET command instead of an ACK (as mentioned in this thread) but the response from the camera is the same. More precisely, I have noticed two kinds of behavior: i) If I turn the camera off and then on again, the program seems to hang after the "INIT command sent" statement (please see attached code). ii) If I reload the program to the MCU flash, the program continues past the "INIT command sent", eventually returning the "NACK for INIT received" statement. What I'm really troubled about is the fact that the method I'm using is the same as in the SYNC process (send a HEX command by writing to the Tx buffer of the UART and then read the response from the Rx buffer) but the result is always a NACK. On one hand, I do get a response from the camera which is a good thing. On the other...the response is always negative. Warning you in advance about my elementary C skills, could it be something in my code that I overlook? Could it be something else? Thank you very much in advance for any reply as getting an image from the camera is an important step of my MSC thesis and one I cannot do without!
Best regards,
Manolis
ps I think accidentally pressed "Enter" before finishing the post... Attached files uCam.txt (3.5 KB)
Best regards,
Manolis
ps I think accidentally pressed "Enter" before finishing the post... Attached files uCam.txt (3.5 KB)
Comment