Re: [riot-devel] BIN FILES

2016-11-06 Thread Kees Bakker

To burn a program you only need the ELF file. No need to convert it to BIN.
Notice that I'm using a SODAQ Autonomo, with an Atmel SAMD21J18A. The 
openocd

command is:

  $ MYELF=tests/driver_bme280/bin/sodaq-autonomo/driver_bme280.elf
  $ openocd -d2 -f boards/sodaq-autonomo/dist/openocd.cfg -c 
"telnet_port disabled; init; halt; at91samd bootloader 0; program 
{{$MYELF}} verify reset; shutdown"


To be able to debug you must start openocd as a daemon waiting
for GDB to connect. (You are using GNU I hope. :-)

  $ openocd -d2 -f boards/sodaq-autonomo/dist/openocd.cfg -c "init; 
halt; at91samd bootloader 0"


Then start gdb with the ELF file.

  $ arm-none-eabi-gdb -i=mi 
tests/driver_bmp180/bin/sodaq-autonomo/driver_bmp180.elf


In gdb you first connect to the target, give it a reset, set breakpoints 
and give it a go.


  (gdb) target remote localhost:
  (gdb) monitor reset halt
  (gdb) b main
  (gdb) c

And of course, YMMV


On 06-11-16 21:08, Ilias Seitanidis wrote:


Thank you very much for your reply! I'm starting from scratch on using 
an external debugger. Everything is valuable :)



On Nov 6, 2016 20:30, "Kees Bakker" > wrote:


Yes, I have one, and I use it to burn and to debug.
I'm using openocd.

What do you want to know?

On 03-11-16 16:25, Ilias Seitanidis wrote:

Hi again,
I was given an Atmel Ice device, has anyone used it?
Thank you in advance!

Your Faithfully,
Ilias Seitanidis

2016-10-07 15:57 GMT+02:00 Oleg Hahm mailto:oliver.h...@inria.fr>>:

Hi Ilias!

On Fri, Oct 07, 2016 at 03:51:48PM +0200, Ilias Seitanidis wrote:
> The problem is that I have a board based on samr21 but
there is no edbg usb
> port, on the datasheet it mentions only
> reprogramming using a usb pen drive and a .bin file, I know
nothing about
> the bootloader.

In this case, Joakim's advice should work. I think a similar
trick is used for
the mbed_lpc1768.

Cheers,
Oleg
--
Yo mamma is so fat that she sat on a binary tree and made it
a linked list in
constant time.

___
devel mailing list
devel@riot-os.org 
https://lists.riot-os.org/mailman/listinfo/devel





___
devel mailing list
devel@riot-os.org 
https://lists.riot-os.org/mailman/listinfo/devel



-- 
Kees Bakker

Founder
SODAQ
M.0031617737165 
www.sodaq.com 

___ devel mailing list
devel@riot-os.org 
https://lists.riot-os.org/mailman/listinfo/devel
 


___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel

--
Kees Bakker
Founder
SODAQ
M. 0031617737165
www.sodaq.com
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] BIN FILES

2016-11-06 Thread Ilias Seitanidis
Thank you very much for your reply! I'm starting from scratch on using an
external debugger. Everything is valuable :)

On Nov 6, 2016 20:30, "Kees Bakker"  wrote:

> Yes, I have one, and I use it to burn and to debug.
> I'm using openocd.
>
> What do you want to know?
>
> On 03-11-16 16:25, Ilias Seitanidis wrote:
>
> Hi again,
> I was given an Atmel Ice device, has anyone used it?
> Thank you in advance!
>
> Your Faithfully,
> Ilias Seitanidis
>
> 2016-10-07 15:57 GMT+02:00 Oleg Hahm :
>
>> Hi Ilias!
>>
>> On Fri, Oct 07, 2016 at 03:51:48PM +0200, Ilias Seitanidis wrote:
>> > The problem is that I have a board based on samr21 but there is no edbg
>> usb
>> > port, on the datasheet it mentions only
>> > reprogramming using a usb pen drive and a .bin file, I know nothing
>> about
>> > the bootloader.
>>
>> In this case, Joakim's advice should work. I think a similar trick is
>> used for
>> the mbed_lpc1768.
>>
>> Cheers,
>> Oleg
>> --
>> Yo mamma is so fat that she sat on a binary tree and made it a linked
>> list in
>> constant time.
>>
>> ___
>> devel mailing list
>> devel@riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/devel
>>
>>
>
>
> ___
> devel mailing 
> listdevel@riot-os.orghttps://lists.riot-os.org/mailman/listinfo/devel
>
>
>
> --
> Kees Bakker
> Founder
> SODAQ
> M. 0031617737165www.sodaq.com
>
>
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] BIN FILES

2016-11-06 Thread Kees Bakker

Yes, I have one, and I use it to burn and to debug.
I'm using openocd.

What do you want to know?

On 03-11-16 16:25, Ilias Seitanidis wrote:

Hi again,
I was given an Atmel Ice device, has anyone used it?
Thank you in advance!

Your Faithfully,
Ilias Seitanidis

2016-10-07 15:57 GMT+02:00 Oleg Hahm >:


Hi Ilias!

On Fri, Oct 07, 2016 at 03:51:48PM +0200, Ilias Seitanidis wrote:
> The problem is that I have a board based on samr21 but there is
no edbg usb
> port, on the datasheet it mentions only
> reprogramming using a usb pen drive and a .bin file, I know
nothing about
> the bootloader.

In this case, Joakim's advice should work. I think a similar trick
is used for
the mbed_lpc1768.

Cheers,
Oleg
--
Yo mamma is so fat that she sat on a binary tree and made it a
linked list in
constant time.

___
devel mailing list
devel@riot-os.org 
https://lists.riot-os.org/mailman/listinfo/devel





___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel



--
Kees Bakker
Founder
SODAQ
M. 0031617737165
www.sodaq.com

___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel