I'm trying to debug a problem setting the PLL divider ratio using bfrom_SysControl on a BF548.
When I try to set the PLLDIV using this line:
rc = bfrom_SysControl(SYSCTRL_PLLDIV | SYSCTRL_WRITE, &frequency, NULL);
It will return 201 (decimal) when running via JTAG, unless I set a breakpoint in the function that calls bfrom_SysControl (in that case, it succeeds). It also seems to work (returns 0) when running the executable from NOR flash without a JTAG pod attached.
To start, I'm very curious about the meaning of the return code. I can't seem to find a reference for this anywhere. Any ideas?