sama5d27 UPLL

2021-07-09 Thread Tim
Hi, Making slow progress getting MCAN sorted properly on my custom sama5d27 board and when clocking it from the "UPLL" clokc (an internal PLL used to generate a 480MHz clock for the USB interfaces, and a useful clock for higher speed CAN setups) I found that the CAN baud rate was out. This is bec

Re: sama5d27 UPLL

2021-07-09 Thread Alan Carvalho de Assis
Hi Tim, I don't know about the internal clock of SAMA5D27, but maybe some other configuration is changing the SFR. Do you have GDB working on your system? Maybe you can try to use watchpoint at this register position, see here: https://acassis.wordpress.com/2015/07/07/using-watchpoints-in-the-gdb

Re: sama5d27 UPLL

2021-07-11 Thread TimH
Hi Alan, Thanks for the suggestion - I have GDB and J-Link and am using VS Code as my IDE, which does have some "watch" limitations it seems :( But I have found I was wrong about it being NuttX that's changing the SFR register. It seems that U-boot doesn't set it despite being configured for