I successfully managed to write the BIT_FUSE_SEL bit in the eFuse register, using the OCOTP SDK example just changing address and value.
In our custom board we have BOOT_MODE[1:0] = 00b and BOOT_CFG[11:0] = 0 to boot from internal flash.
Using these settings on the evaluation board (mimxrt1064-evk) works smoothly letting me debug.
On our custom board I just get to some out of program address and can't debug (it behaves just like before flashing the BIT_FUSE_SEL bit, when the mcu booted to to Serial Downloader instead of program).
Is there something on the evaluation board that makes it boot correctly and maybe we miss something on our custom board?