After a while i'm back to my project where i use uTasker bootloader but i'm struggling to run my application from it.
Bootloader is setup for MSD and it's working perfectly fine but when i load my application using it, it runs but the clocks are wrong(pwm outputs are off, rgb diodes acts weird, usb enumartion fails etc).
I tried to setup SOPT and SCGC registers to defaults before i run my code but it doesn't help.
The application runs just fine without bootloader.
Here is beggining of the main:
SCB -> VTOR = 0x1fffe000;
The biggest problem is that i can't debug my application while bootloader is flashed so i'm unable to see what went wrong and why my clocks are off
Attaching also picture of main code clock setup:
Any ideas what i can do to make it work?