Issue encountered in starting address of SAMD21J18A by SAM-BA 2.16

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

Hi all,

 

Atmel application note AT07175 (as below) indicated that the starting writing address of application is 0x2000 when both USB and UART interfaces are enabled or 0x1000 when either USB or UART is enabled. 
Sadly I got an error as "Writing to the monitor area is forbidden, write operation aborted" in SAM-BA 2.16.
The bootloader we used is provided by Atmel (as below) and the test code is also okay.
It finally wrote successfully when I changed the started application writing to 0x6000.
It really confused me so much. May anyone know the reason? Thanks.  

 

FYR:
http://www.atmel.com/Images/Atme...
http://www.atmel.com/tools/atmel...

Last Edited: Thu. Jul 7, 2016 - 09:05 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Though changing starting address is ok but I aworry about unfollowing the applcation note.

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

Did you eventually figure out a solution to this problem?  I am working with a Sparkfun SAMD21G mini and am encountering exactly the same problem. Writing to any address below 0x6000 using the SAM-BA 2.16 GUI throws this error. I can connect just fine with the bootloader on the SAMD21 using the SAM-BA GUI.  I've programmed the SAMD21 using the USB stand-alone (starting address 0x1000) and the USB/USART combo (starting address 0x2000) to no avail.  I've checked and address 0x20002000 contains 0x1000, which strongly suggest that the bootloader I downloaded wants the application flashed to address 0x1000.  In fact I flashed a simple LED blink program to address 0x1000 using my Atmel ICE and the bootloader runs my LED flash when PA15 is pulled high on reset and the bootloader runs when PA15 is pulled low.

I need to figure out how to use the bootloader solution because I want a class-full of Junior-year engineering students to use the bootloader on a custom designed board instead of having each student purchase their own ICE.

This forum post seems to indicate that its the call to the SAM-BA bootloader is the problem.  Please any help would be appreciate

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

Hello, I have exactly the same problem with the SAM-BA 2.17 and ATSAMD21J18A. When I program with Atmel ICE and compare the file in SAM-BA 2.17 to be loaded with the flashed version starting from 0x01000, everything is OK, it matches.

But to SEND FILE to the address 0x01000 does not work with the same error message described above:

"Writing to the monitor area is forbidden, write operation aborted"

Does any one have the solution to this problem, please?

 

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

I expect the solution is to rebuild the applets or find an older SAM-BA where they are built for a lower start address. The change was probably made to accommodate the huge bootloader from the ASF example.
http://community.atmel.com/comme...
/Lars
 

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

Looks like I already attached an older 2.15 version in this thread
https://community.atmel.com/foru...
/Lars

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

Lars many thanks, I am now using SAM-BA 2.15 and it wirks with 0x02000 start address.