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


Re: [riot-devel] BIN FILES

2016-11-03 Thread Michael Andersen
The blue one? It's basically the same hardware as a SEGGER JLink but the
firmware locks it to Atmel only devices. You can use JLinkExe to interact
with it.

On Thu, Nov 3, 2016 at 8:25 AM, 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
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] BIN FILES

2016-11-03 Thread Ilias Seitanidis
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


Re: [riot-devel] BIN FILES

2016-10-07 Thread 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.


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


Re: [riot-devel] BIN FILES

2016-10-07 Thread Ilias Seitanidis
Thank you all for your replies!
@Ludwig I do wear glasses :)

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.

2016-10-07 15:45 GMT+02:00 Joakim Nohlgård :

> If you want a binary file which is an exact byte-for-byte copy of the
> microcontroller ROM you can use objcopy to convert from ELF to raw binary.
> The RIOT build system also produces a HEX file for flashing, which is a
> plain-text variant of the raw binary.
>
> arm-none-eabi-objcopy -O binary myprog.elf myprog.bin
>
> You will not, however, need any of this manual handling for flashing the
> supported boards, `make flash` is all you need.
>
> Best regards,
> Joakim
>
> On Fri, Oct 7, 2016 at 3:35 PM, Oleg Hahm  wrote:
>
>> Hi Ilias!
>>
>> On Fri, Oct 07, 2016 at 03:29:38PM +0200, Ilias Seitanidis wrote:
>> > Is it possible to create a bin file, which includes everything and then
>> > flash the .bin file
>> > on the board? (From what I've seen RIOT OS doesn't support this,
>> right)
>>
>> What exactly do you mean by ".bin" file? By default RIOT produces an ELF
>> [1] file
>> for most platforms that contain the full binary that is flashed onto the
>> device.
>>
>> Cheers,
>> Oleg
>>
>> [1] https://en.wikipedia.org/wiki/Executable_and_Linkable_Format
>> --
>> Chuck Norris doesn't do TCP handshake - he does TCP roundhouse-kick to
>> initiate
>> the connection.
>>
>> ___
>> 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
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] BIN FILES

2016-10-07 Thread Joakim Nohlgård
If you want a binary file which is an exact byte-for-byte copy of the
microcontroller ROM you can use objcopy to convert from ELF to raw binary.
The RIOT build system also produces a HEX file for flashing, which is a
plain-text variant of the raw binary.

arm-none-eabi-objcopy -O binary myprog.elf myprog.bin

You will not, however, need any of this manual handling for flashing the
supported boards, `make flash` is all you need.

Best regards,
Joakim

On Fri, Oct 7, 2016 at 3:35 PM, Oleg Hahm  wrote:

> Hi Ilias!
>
> On Fri, Oct 07, 2016 at 03:29:38PM +0200, Ilias Seitanidis wrote:
> > Is it possible to create a bin file, which includes everything and then
> > flash the .bin file
> > on the board? (From what I've seen RIOT OS doesn't support this,
> right)
>
> What exactly do you mean by ".bin" file? By default RIOT produces an ELF
> [1] file
> for most platforms that contain the full binary that is flashed onto the
> device.
>
> Cheers,
> Oleg
>
> [1] https://en.wikipedia.org/wiki/Executable_and_Linkable_Format
> --
> Chuck Norris doesn't do TCP handshake - he does TCP roundhouse-kick to
> initiate
> the connection.
>
> ___
> 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-10-07 Thread Ludwig Knüpfer
Hi,

I guess you need glasses ;)

If you have your target exported, then 'make' creates a binary image.
'make flash' flashes this image onto your board.

Cheers,
Ludwig

Am 7. Oktober 2016 15:29:38 MESZ, schrieb Ilias Seitanidis 
:
>Dear all,
>Is it possible to create a bin file, which includes everything and then
>flash the .bin file
>on the board? (From what I've seen RIOT OS doesn't support this,
>right)
>
>Thank you in advance!
>
>Best,
>Ilias
>
>
>
>
>___
>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-10-07 Thread Oleg Hahm
Hi Ilias!

On Fri, Oct 07, 2016 at 03:29:38PM +0200, Ilias Seitanidis wrote:
> Is it possible to create a bin file, which includes everything and then
> flash the .bin file
> on the board? (From what I've seen RIOT OS doesn't support this, right)

What exactly do you mean by ".bin" file? By default RIOT produces an ELF [1] 
file
for most platforms that contain the full binary that is flashed onto the
device.

Cheers,
Oleg

[1] https://en.wikipedia.org/wiki/Executable_and_Linkable_Format
-- 
Chuck Norris doesn't do TCP handshake - he does TCP roundhouse-kick to initiate
the connection.


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


[riot-devel] BIN FILES

2016-10-07 Thread Ilias Seitanidis
Dear all,
Is it possible to create a bin file, which includes everything and then
flash the .bin file
on the board? (From what I've seen RIOT OS doesn't support this, right)

Thank you in advance!

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