SAMD21G18A Controller,s Bootloader Delete after program with Arduino IDE

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

first i programmed the bootloader from atmel studio 7 then after that i tried to program from Arduino ide, packages are proper install but when i program and upload successfully code then controller doesn,t detect. currently using feather M0 board. and also tried restore bootloader with adafruit solution https://learn.adafruit.com/prope.... but doesn,t happen. Currently using replica of Feather MO made by myself.

 

Last Edited: Mon. Oct 5, 2020 - 07:58 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When cross-posting, always give links between your threads - otherwise you waste peoples time posting stuff in one thread, not knowing that it's already been said in the other:

 

https://community.arm.com/develo...

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you're programming with AS7, you must presumably have some sort of debugger? So have you used that to see what's going on?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes used j link debugger and being successful bootload.

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

awneil wrote:

If you're programming with AS7, you must presumably have some sort of debugger? So have you used that to see what's going on?

 

 

yes used j link debugger and being bootload.

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

Malik Qasim wrote:
yes used j link debugger 

So what debugging have you done to find what's going on?

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

Malik Qasim wrote:
yes used j link debugger 

So what debugging have you done to find what's going on?

 

 

 

i,m unable to debug. i just uploaded bootloader with j link debugger with atmel studio 7. then i connect to arduino ide and upload code with no problem. then it is  not detecting.

Last Edited: Mon. Oct 5, 2020 - 02:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Malik Qasim wrote:
i,m unable to debug.

why?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

Malik Qasim wrote:
i,m unable to debug.

why?

 

 

ok i,m trying for debug.

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

awneil wrote:

Malik Qasim wrote:
i,m unable to debug.

why?

 

how  can i debug i know only debug of code. but problem is before that.

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

It's all just code as far as the chip is concerned...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...