SAM-BA over UART with Internal RC OSC - No Extrn Crystal/CLK

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

RandomDude
Posts: 1
Joined: Tue Mar 03, 2015 12:02 am

SAM-BA over UART with Internal RC OSC - No Extrn Crystal/CLK

Tue Mar 03, 2015 12:27 am

I am trying to use the SAM-BA GUI or Command-Line interface to program a SAM4S MCU over UART. My custom board does not have a crystal or external clock. I am able to communicate with the SAM4S bootloader using a terminal program.

Is it possible to program the MCU using SAM-BA 2.15 Software?

The SAM-BA 2.15 GUI only appears to support boards with crystals or external clocks whereas the bootloader supports operation from internal oscillator.

Code: Select all

Atmel\sam-ba_2.15\applets\sam4s\sam-ba_applets\lowlevelinit\main.c:

  /* Switch MCK to Slow clock  */
  PMC_SetMckSelection(PMC_MCKR_CSS_SLOW_CLK, PMC_MCKR_PRES_CLK);

  /* Then, enable Main XTAL oscillator */
  PMC_EnableExtOsc();

  /* Then, cofigure PLLB and switch clock */
  PMC_ConfigureMckWithPllb(mul, div, prescaler); 

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 2 guests