SAM21G18A Custom board programmed but not working : Atmel ICE

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

Hi All,

I'm using SAMD21G18A 32bit MCU in a custom board I designed. I programmed it using Atmel ICE, but the code does not execute. Arduino M0 board has the same MCU. Finally, I tried to change the fuse settings of custom board mcu from Arduino M0. Fuse values can be edited but there's an error message when trying to program the new fuse values " value has been modified but not programmed". 

Please share your ideas to get the custom board work.

 

Regards,
Sanjeewa

Pradeep Sanjeewa,
Electronic Engineer,
ParaQum Technologies

Last Edited: Thu. Jul 27, 2017 - 09:39 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is an idea,  how about showing us your schematic and pcb. 

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

Moved to the ARM related forum.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Hi, 

Please find the screen shot of the schematic here.

Is this enough or suggest me a better way to send.
In what format you need to see the PCB data?

Thanks a lot for the time spent.

Regards,
Sanjeewa

Pradeep Sanjeewa,
Electronic Engineer,
ParaQum Technologies

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

in a format we can see on the forum. How have you checked everything is connected?

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

Hi, I checked the connections manually and every connection is fine. 

Pradeep Sanjeewa,
Electronic Engineer,
ParaQum Technologies

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

If your schematic is fine, the connections are fine and the pcb is fine, then where is the problem?

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

Kartman wrote:

If your schematic is fine, the connections are fine and the pcb is fine, then where is the problem?

Hi, That is the problem I'm facing. Code get uploaded to MCU without any trouble. But it doesn't execute. Same code executes correctly on Arduino M0..

Pradeep Sanjeewa,
Electronic Engineer,
ParaQum Technologies

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

Let me guess..... the crystal is in the wrong way so when the code starts up and enables the crystal oscillator - it dies. You can verify this in the debugger.

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

Kartman wrote:
Let me guess..... the crystal is in the wrong way so when the code starts up and enables the crystal oscillator - it dies. You can verify this in the debugger.

We checked the connections and it was fine

Pradeep Sanjeewa,
Electronic Engineer,
ParaQum Technologies

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

Hy gpsanjeewa did you fix the problem? We've the exat same issue. The code works fine on my Genuino Zero but not on our own board. 

Our setup is some different from your's but may be someone could helb us with some wise advice?

Sorry for the bad picture but it's currently the only source I can offer you.