Run in the Arduino IDE the HelloWorld example with an ili9488 in SPI. In fact, you don't need an ili display to try this, because it fails at compile time. The possible wiring errors, are irrelevant ...
Apparently I'm facing an issue which is more interesting and hard than my capabilities. When using Arduino_JSON vers 0.2.0 and Arduino_LSM6DS3 1.0.2 I find an interesting issue in dealing with the IMU ...