VPC was generating incomplete code for SPI initialization. This was fixed. Recently I tested the generated code on a library and a project that works with Adafruit 160x80 0.96" TFT display - soon to be published. Changes are published in repository and can be seen here https://gitlab.com/funlw65/vscode_nucleo_l152re/commit/8e7b23a9