AnsweredAssumed Answered

Trouble reading STMPE1600_ID on STM324x9I-EVAL

Question asked by Barta.Hank on Jan 14, 2015
Latest reply on Jan 23, 2015 by Montassar BEN ROMDHANE
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() calls BSP_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;
}
(In stm324x9i_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 dealing with other issues in the S/W and I'm wondering if this is a result of one of those problems or just something unrelated.

Thanks!

Outcomes