I'm trying to get a ATSAMD10C13 to run at 48mhz using the internal oscillator. I'm using Atmel Start to create the project.
As a test to see if the CPU is executing, I'm using the LED Flasher test program. With the default 1Mhz clock config the LED blinks. If I change the prescaler there to get to 8Mhz it also works. If I change the clock config to use OSC32K -> Clock 3 -> DFLL48M -> Clock 1 -> CPU and set NVM Wait States accordingly as specified in the datasheet, atmel start, various posts on this forum and every article I can find on the internet, it does not. The CPU appears to just be halted.
I have manually and automatically diffed my config and code against every snippet of code I could find to see if I'm missing something. I have read pretty deep into that datasheet. Made sure I have 4.7uF and 100nF decoupling capacitors. Checked to make sure that I am definitely running on 3.3V and a lot of other things. This has occupied me much of the weekend. I'm fresh out of ideas.
I uploaded screenshots of all the relevant screens in atmel start for both the working 8Mhz and not working 48Mhz configs. This is a fresh new project created with atmel start with no other changes made other than the one line change to the makefile to get it to compile on macs (Atmel/Microchip really should make that quick fix..) and copy/pasting the blink code into main.c.
My working and non-working .atstart files plus main.c is in this gist here: https://gist.github.com/lerouxb/...
I must be missing something, but I'm at the point where I'm starting to suspect a bug in atmel start even though I'm sure I would be super unlikely to be the first person to notice something like that or a defective chip or a chip with missing (or erased?) clock calibration settings in NVM..
Please help. I'm tearing out what little hair I have left.