Patch init stopped working?

my patch init is connected to power with a behringer eurorack power rack
it was working fine until a few hours ago while I was working on a simple 8 step sequencer but now it just doesn’t work
i uploaded a simple patch to turn on the CV_OUT_2 LED on the button toggle and it doesn’t seem to do anything

int main(void)
{
	patch.Init();
	patch.SetAudioBlockSize(48);
	patch.SetAudioSampleRate(SaiHandle::Config::SampleRate::SAI_48KHZ);

	patch.StartAdc();
	patch.StartAudio(AudioCallback);
	toggle.Init(patch.B8);

	while (1)
	{
		toggle.Debounce();
		bool state = toggle.Pressed();
		patch.WriteCvOut(CV_OUT_2, state ? 5.0f : 0.0f);
	}
}

any suggestions on how i can debug this issue?


I ran that code on my patch.Init() (with some lines added to get it to build) - it works correctly. Note: this program doesn’t need Eurorack power. Runs correctly on Eurorack power OR USB power OR both.

How to debug? You’re a software engineer? Divide and conquer, figure out what works, what doesn’t. Same as any bug.

It’s useful to have a spare, known good, device for times like this.

i guess it’s time to start printing the outputs and see what’s going on with the module
i have a daisy pod with me so maybe i can use that in the debugging
i am just afraid if i might have somehow broke it? but the LED at the back turns on so i don’t know anymore but i’ll start debugging it

thanks!

ok so look likes there was a problem with accessing the source files in my project folder when i moved it to a different folder
starting a new project and testing that on the init module works fine so definitely the module is not broken
but once i flash my custom code it stops working so probably there’s some issue in my code which i need to fix