MKR1010 Blink Fail to run after DL - Can you confirm Bossa args

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

Hello,

I want to move my WiFi Server project into to Studio in order to delve into the CT BLOCK at a professional level.  I have experience with Silicon Devices, PIC, Maxim and a couple of odd ball names but my forte is Verilog, and then again I'm no expert.   I've started with the BLINK project and everything flowed smoothly except the program doesn't appear to execute after download cpu reset.  I'm using an o-scope and there is just no activity if I use Studio, Arduino runs fine.  Because this is the go to intro project I assuming the failure is in the only thing I had to do myself was set up the programmer.   There is conflicting research as to the Bossa args but my args I settled with makes sense based on the Bossa website table, except I didn't find a meaning for the -R at the end...   I hope it means RUN when ya done!!!.

 

Here is my USB programming tool config:

 

C:\Users\NXDAE\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe

 

 "-i -d --port=COM3 -U true -i -e -w -v "$(TargetDir)$(TargetName).bin "-R"

 

 

Here is the programming output......   do the ID and addresses look right??

 

 

Set binary mode
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device       : ATSAMD21G18A
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
Version      : v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security     : false
Boot Flash   : true
readWord(addr=0x40000834)=0x7000a
BOD          : true
readWord(addr=0x40000834)=0x7000a
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.596 seconds

Write 11428 bytes to flash (179 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)

[==========                    ] 35% (64/179 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)

[=====================         ] 71% (128/179 pages)write(addr=0x20005000,size=0xcc0)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0xcc0)

[==============================] 100% (179/179 pages)
done in 0.069 seconds

Verify 11428 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = 55df
checksumBuffer(start_addr=0x3000, size=0x1000) = 96ff
checksumBuffer(start_addr=0x4000, size=0xca4) = a663
Verify successful
done in 0.010 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)

 

 

 

I did modify the BLINK to a specific pin number and a shorter delay for the o-scope :

 

#include <Arduino.h>

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(3, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(3, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);                       // wait for a second
  digitalWrite(3, LOW);    // turn the LED off by making the voltage LOW
  delay(200);                       // wait for a second
}

 

Does anyone see anything wrong or know of any issues with the MKR1010 and Studio??

 

Thank You very much for your time and assistance................

 

 

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

UPDATE - MISSION OVER

 

Well I tried back and forth between Arduino and Studio with no success.  I then tried to download the bin using BOSSA desktop app and it hung during download.  Now the MKR1010 is bricked, door stopped, kaput........ refuses to go into boot loader.

 

My Arduino experience was disappointing; there are no functions with any period / timing precision of real world sensors.   Getting Studio to swallow my sketch was a three night nightmare getting the include pointers working and then the program wouldn't run.  Tried the above process with the BLINK, same problem, and the unit bricked.

 

Thank you.............  take care..............