SAM4L Xplained Pro Board EDBG

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

 

I recently got started with the SAM4L Xplained Pro board. Installed AS7 on WIN7 Pro. AS7 can see the board when plugged in to the USB port. I can also open an example project and build and run it on the board successfully. 

 

My issue is using the Terminal program (I am using Putty) to talk to the board using EDBG through the Virtual COM port. In addition to receiving the expected output I am receiving continuos garbage from the board. Please see the Putty log below. 

All the 1s are expected output from a printf command. All the 2s are garbage and unexpected. Any help debugging the issue will be greatly appreciated. 

 

Thanks. 

 

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.01.15 21:41:33 =~=~=~=~=~=~=~=~=~=~=~=
-- Getting Started Example --
-- SAM4L Xplained Pro --
-- Compiled: Jan 15 2016 21:09:47 --
Configure system tick to get 1ms tick period.
Configure button.
Configure TC.
Press SW0 to Start/Stop LED0 blinking.
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 -- Getting Started Example --
-- SAM4L Xplained Pro --
-- Compiled: Jan 15 2016 21:09:47 --
Configure system tick to get 1ms tick period.
Configure button.
Configure TC.
Press SW0 to Start/Stop LED0 blinking.
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 

 

 

 

Last Edited: Mon. Jan 18, 2016 - 07:12 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The SAM4L is not an AVR - it is an ARM Cortex-M4

 

So the correct forum is here: http://community.atmel.com/forum...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you sure there is not a piece of code like this:

 

/**
 *  Interrupt handler for TC0 interrupt. Toggles the state of LED\#2.
 */
// [main_tc0_handler]
void TC0_Handler(void)
{
	volatile uint32_t ul_dummy;

	/* Clear status bit to acknowledge interrupt */
	ul_dummy = tc_get_status(TC0, 0);

	/* Avoid compiler warning */
	UNUSED(ul_dummy);

#ifdef LED1_GPIO
	/** Toggle LED state. */
	ioport_toggle_pin_level(LED1_GPIO);
#endif

	printf("2 ");
}
// [main_tc0_handler]