Hello,
binary image must be encrypted in RC4 format with 40 bit key before
making DFU file.
Gediminas
Hi!
I tried to build my own firmware for the microcontroller with GNU
Toolchain.
I was able to build, but it doesn't work.
Sadly I'm not able to debug.
Maybe someone has an idea?
CAUTION: You can brick your hardware, if you accidentally overwrite
the bootloader!
If you work careful you can easily flash back to original firmware.
Setup project and build project:
1. Download GNU Toolchain for ARM
(https://launchpad.net/gcc-arm-embedded)
2. Unpack into /opt
3. Set Path: "export PATH=/opt/gcc-arm-none-eabi-4_8-2013q4/bin/:$PATH"
4. Unpack gccstartup.tar.gz
5. execute "make"
Convert bin file to dfu file:
1. Download dfu-20101118.tgz from
http://www.seeedstudio.com/forum/viewtopic.php?p=4504#p4504
2. Unpack wherever you want
3. execute "python dfu.py -b 0x20006000:main.bin main.dfu"
Flash to device:
https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental
What it should do (but does not work):
* Simple startup for C language
* Turn on the red led
Attached files:
gccstartup.tar.gz --- Project source
main.bin --- Binary output for flashing
main.map --- Linker Mapping file
Some last thoughts:
* The memory map from Gediminas contains a .checksum section. Maybe
the bootloader do some checks?
* Maybe the binary file is ok, but the dfu file is not compatible?
regards,
Bernd
Am 2014-01-25 17:55, schrieb Oliver Hartkopp:
quoted
Hello Brennan,
a packet from Germany to the US is about 16 EUR with DHL and 60EUR
with UPS??
Maybe I missed anything with the UPS Website while trying to get some
shipping
costs %-]
Btw. with all the customs stuff it looks pretty pointless to sent
this adapter
to you from Germany and back again :-(
I know some guys in the US that bought some of these adapters last year.
I'll try to contact them on Monday if it's possible to lend you one
of the
adapters and ship it inside the US.
Regards,
Oliver
On 25.01.2014 16:55, Brennan Ashton wrote:
quoted
Bernd,
Assuming it's not coming from the Arctic Circle or something I have no
problem covering the cost of shipping. Just shoot me a private email
with how much shipping is and how to get the funds to you.
--Brennan
On 1/25/14, Bernd Krumboeck [off-list ref] wrote:
quoted
I could lend, but the delivery costs would eat my pocket. ;-)
Maybe I could find some time in the next days.
Are you willing to assist by mail?
regards,
Bernd
Am 2014-01-25 09:29, schrieb Brennan Ashton:
quoted
If there is interest and someone can lend me one of these for a
bit of
time I'm sure I could get this ported over to the GCC arm tool chain.
I have done a few IAR to GCC ports and besides a few tricks they
usually are not too bad.
--Brennan Ashton
On 1/24/14, Bernd Krumboeck [off-list ref] wrote:
quoted
Hi!
Source code from firmware v1.5:
https://github.com/krumboeck/usb2can_firmware
After some experiments I was able to flash the firmware with
dfu-util
under
linux:
https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental
Sadly I don't know the way how to build the firmware with a free
tools
chain.
regards,
Bernd
Am 2014-01-22 15:46, schrieb Marc Kleine-Budde:
quoted
On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
quoted
May I kindly ask you to send me a diff/patch about the changes,
so I
can
update the firmware sources on github.
A complete new set of sources will do, too. Git will create the
diff
for
you. :)
Marc