I've just started out into the 32 bit world, with a UC3-A3 XPLAINED Board, and the ASF.
I'm trying (in vain!) to get the SPI interface up and running, and I *think* I'm stuck at a clock set-up issue.
I've been following the layout for the ASF with regard to getting the SPI up and running, with input from the past topics in this forum.
The code compiles, but where I could have sworn I was once stepping through the main loop repeatedly, now appears to hang on "while(!spi_is_tx_empty(SPI1));",
Having started out with a logic analyzer on the header for SPI1, and now an Oscillocope, I can not observe /any/ activity on the SPI-related pins; the SCK line remains constantly high.
If I comment out the line of code "SPI1_init()", the SCK line remains low. This makes me think my pin mapping in "SPI1_setup()" is correct, (and I've traced it through the defines, which also make me think it's correct...), and leads me on to clocks.
My main suspiscion is a badly configured clock source, though the PBA div is set to 2 (ie,2^1), and this is in turn referenced by the function "spi_setupChipReg()"... I've attached the relevant code listings below, please let me know if I'm missing anything that would aid in diagnosis!
I'm apologise if I've missed something obvious, but this is a world apart from the simple ATTINYs I'm used to! I'd very much appreciate some pointers as to where I might have overlooked something.
Thanks very much,
Edit: Updated Main Listing to show revised code, after a few "d'oh" moments. Still no pin activity though!