analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
60 stars 76 forks source link

fix(MiscDrivers): MSDK-1240: Clear out of bounds warnings seen with GCC v13.2 #852

Closed ahmetalincak closed 7 months ago

ahmetalincak commented 8 months ago

Description

GCC 13.2 warning clearance for tft_ssd2119.c

In the latest compiler version, the array bounds warnings appear. This was an internal issue and I tried building MAX78000 kws20_demo example and saw warnings myself.

The changes are in:

  1. MXC_TFT_Init function: Optional and tested for both GCC Versions (10.3 and 13.2) on MAX78000 kws20_demo.
  2. MXC_TFT_Printf function: This one works incorrect when using GCC v13.2 - so should be merged. Tested with MAX32662 Demo Example.