[riot-devel] BIN FILES

Ilias Seitanidis iliasseitanidis at gmail.com
Fri Oct 7 15:51:48 CEST 2016


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 <joakim.nohlgard at eistec.se>:

> 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 <oliver.hahm at inria.fr> 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 at riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/devel
>>
>>
>
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20161007/b924f6ca/attachment-0001.html>


More information about the devel mailing list