Trouble reading STMPE1600_ID on STM324x9I-EVAL
I'm working with this board and the camera and a now modified derivative of the \STM32Cube_FW_F4_V1.3.0\Projects\STM324x9I_EVAL\Examples\DCMI\DCMI_CaptureMode project. When BSP_CAMERA_Init() callsBSP_IO_Init(), that procedure tries to read an ID using:
if(stmpe1600_io_drv.ReadID(IO_I2C_ADDRESS) == STMPE1600_ID)
{
/* Initialize the IO driver structure */
io_driver = &stmpe1600_io_drv;
ret = IO_OK;
} (Instm324x9i_eval_io.c)
Occasionally it gets status that causes it to not initialize
io_driver
which results in Usage Fault trying to dereference a null pointer. When this happens, the only way to keep it from happening again is to power cycle the board. The reset button and resetting via the debugger (STLINK) will not fix this.
Is this something that could be the result of a coding error or is there something flaky with the H/W? I'm dealingwithother issues in the S/W and I'mwonderingif this is a result of one of those problems or just something unrelated. Thanks! #stm324x9i-eval-camera-stmpe