I made a small and really simple program to test my cape, so I am simply using the following command to configure the output.
pinMode(context, 0, iPin, OUTPUT);
And I write to the output using
digitalWrite(context, 0, iPin, OutValue);
The code does not use the CTAG, I only attached it because we are using it in the full code that will run on the Bela. Could it be related to missing CTAG configurations, the Bela that I use for test is newly flashed, so no setup of the CTAG have been made.