* usb_8dev: firmware and windows library
@ 2013-01-17 9:03 "Bernd Krumböck"
2013-01-17 16:32 ` Oliver Hartkopp
` (3 more replies)
0 siblings, 4 replies; 26+ messages in thread
From: "Bernd Krumböck" @ 2013-01-17 9:03 UTC (permalink / raw)
To: linux-can; +Cc: gediminas
Hello!
8 devices (http://www.8devices.com/) allowed me to publish the firmware to
the public:
firmware:
https://github.com/krumboeck/usb2can_firmware
canal library:
https://github.com/krumboeck/usb2can_canal
Many thanks to 8 devices!
regards,
Bernd
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2013-01-17 9:03 usb_8dev: firmware and windows library "Bernd Krumböck"
@ 2013-01-17 16:32 ` Oliver Hartkopp
2013-01-17 20:24 ` Robert Schwebel
` (2 subsequent siblings)
3 siblings, 0 replies; 26+ messages in thread
From: Oliver Hartkopp @ 2013-01-17 16:32 UTC (permalink / raw)
To: Bernd Krumböck, gediminas; +Cc: linux-can
Whow! Great!
On 17.01.2013 10:03, "Bernd Krumböck" wrote:
>
> 8 devices (http://www.8devices.com/) allowed me to publish the firmware to
> the public:
>
> firmware:
> https://github.com/krumboeck/usb2can_firmware
>
> canal library:
> https://github.com/krumboeck/usb2can_canal
>
>
> Many thanks to 8 devices!
Indeed. Great step for this CAN hardware.
Today i compared the performance of the 8devices CAN USB with
cangen -g0 -i -I 010 -L 8 -D 0000000000000000 canX
in my Laptop:
EMS PCMCIA sja1000 tx busload up to 74% (5699 frames/s)
8devices CAN USB tx busload up to 88% (6780 frames/s)
PEAK USB (mainline) tx busload up to 68% (5288 frames/s)
ALL: rx busload up to 104% (8007 frames/s) == 88% w/o bitstuff estimation
So the 8devices CAN USB has an excellent performance right now.
Tnx & regards,
Oliver
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2013-01-17 9:03 usb_8dev: firmware and windows library "Bernd Krumböck"
2013-01-17 16:32 ` Oliver Hartkopp
@ 2013-01-17 20:24 ` Robert Schwebel
2013-01-18 10:43 ` Uwe Bonnes
2014-01-21 11:50 ` Oliver Hartkopp
3 siblings, 0 replies; 26+ messages in thread
From: Robert Schwebel @ 2013-01-17 20:24 UTC (permalink / raw)
To: "Bernd Krumböck"; +Cc: linux-can, gediminas
On Thu, Jan 17, 2013 at 10:03:14AM +0100, "Bernd Krumböck" wrote:
> 8 devices (http://www.8devices.com/) allowed me to publish the firmware to
> the public:
>
> firmware:
> https://github.com/krumboeck/usb2can_firmware
If the license allows it, it would be great to have the firmware in the
linux-firmware repository.
rsc
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2013-01-17 9:03 usb_8dev: firmware and windows library "Bernd Krumböck"
2013-01-17 16:32 ` Oliver Hartkopp
2013-01-17 20:24 ` Robert Schwebel
@ 2013-01-18 10:43 ` Uwe Bonnes
2014-01-21 11:50 ` Oliver Hartkopp
3 siblings, 0 replies; 26+ messages in thread
From: Uwe Bonnes @ 2013-01-18 10:43 UTC (permalink / raw)
To: "Bernd Krumböck"; +Cc: linux-can, gediminas
>>>>> "Bernd" == Bernd Krumböck <krumboeck@universalnet.at> writes:
Bernd> Hello! 8 devices (http://www.8devices.com/) allowed me to
Bernd> publish the firmware to the public:
Bernd> firmware: https://github.com/krumboeck/usb2can_firmware
Bernd> canal library: https://github.com/krumboeck/usb2can_canal
I know, I am greedy :-)
Does anybody have a Makefile or at least a log file of a build?
Thanks
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2013-01-17 9:03 usb_8dev: firmware and windows library "Bernd Krumböck"
` (2 preceding siblings ...)
2013-01-18 10:43 ` Uwe Bonnes
@ 2014-01-21 11:50 ` Oliver Hartkopp
2014-01-21 11:57 ` Gediminas Simanskis
3 siblings, 1 reply; 26+ messages in thread
From: Oliver Hartkopp @ 2014-01-21 11:50 UTC (permalink / raw)
To: Bernd Krumböck, linux-can; +Cc: gediminas
Hello Bernd,
I noticed that there was a firmware update from v1.4 to v1.5 for the 8devices
USB2CAN interface:
http://8devices.com/usb2can#downloads
Do you know if there's any change which would be relevant for the usb_8dev
driver in Linux?
Will there be an update of the sources at github?
Many thanks,
Oliver
On 17.01.2013 10:03, "Bernd Krumböck" wrote:
> Hello!
>
>
> 8 devices (http://www.8devices.com/) allowed me to publish the firmware to
> the public:
>
> firmware:
> https://github.com/krumboeck/usb2can_firmware
>
> canal library:
> https://github.com/krumboeck/usb2can_canal
>
>
> Many thanks to 8 devices!
>
> regards,
> Bernd
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-21 11:50 ` Oliver Hartkopp
@ 2014-01-21 11:57 ` Gediminas Simanskis
2014-01-21 12:19 ` bon
2014-01-22 12:58 ` Bernd Krumboeck
0 siblings, 2 replies; 26+ messages in thread
From: Gediminas Simanskis @ 2014-01-21 11:57 UTC (permalink / raw)
To: Oliver Hartkopp, Bernd Krumböck, linux-can
Hello,
I have changed in v1.5 usb2can firmware only 2x endpoints (3 and 4)
sizes from 25 bytes to 64 because was problem (USB RX cmd enpoint
freezing) on some PC which use windows7 or windows8 64 bit versions and
under USB3 ports.Now works correct.
On windows systems usb2can works old driver without any changes.
Gediminas
8devices
> Hello Bernd,
>
> I noticed that there was a firmware update from v1.4 to v1.5 for the 8devices
> USB2CAN interface:
>
> http://8devices.com/usb2can#downloads
>
> Do you know if there's any change which would be relevant for the usb_8dev
> driver in Linux?
>
> Will there be an update of the sources at github?
>
> Many thanks,
> Oliver
>
>
> On 17.01.2013 10:03, "Bernd Krumböck" wrote:
>> Hello!
>>
>>
>> 8 devices (http://www.8devices.com/) allowed me to publish the firmware to
>> the public:
>>
>> firmware:
>> https://github.com/krumboeck/usb2can_firmware
>>
>> canal library:
>> https://github.com/krumboeck/usb2can_canal
>>
>>
>> Many thanks to 8 devices!
>>
>> regards,
>> Bernd
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-21 11:57 ` Gediminas Simanskis
@ 2014-01-21 12:19 ` bon
2014-01-21 16:03 ` Gediminas Simanskis
2014-01-22 12:58 ` Bernd Krumboeck
1 sibling, 1 reply; 26+ messages in thread
From: bon @ 2014-01-21 12:19 UTC (permalink / raw)
To: Gediminas Simanskis; +Cc: linux-can
>>>>> "Gediminas" == Gediminas Simanskis <gediminas@8devices.com> writes:
Gediminas> Hello, I have changed in v1.5 usb2can firmware only 2x
Gediminas> endpoints (3 and 4) sizes from 25 bytes to 64 because was
Gediminas> problem (USB RX cmd enpoint freezing) on some PC which use
Gediminas> windows7 or windows8 64 bit versions and under USB3 ports.Now
Gediminas> works correct. On windows systems usb2can works old driver
Gediminas> without any changes.
Gediminas,
https://github.com/krumboeck/usb2can_firmware has no Makefile(.am) or
CMakeLists.txt. Can you perhaps send me a build log so I could try to
create a build environment?
Thanks
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-21 12:19 ` bon
@ 2014-01-21 16:03 ` Gediminas Simanskis
2014-01-21 16:07 ` bon
0 siblings, 1 reply; 26+ messages in thread
From: Gediminas Simanskis @ 2014-01-21 16:03 UTC (permalink / raw)
To: bon; +Cc: linux-can
Hi,
this image was compiled using commercial version IAR compiller for ARM.
Gediminas,
https://github.com/krumboeck/usb2can_firmware has no Makefile(.am) or
CMakeLists.txt. Can you perhaps send me a build log so I could try to
create a build environment? Thanks
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-21 16:03 ` Gediminas Simanskis
@ 2014-01-21 16:07 ` bon
2014-01-22 5:42 ` Gediminas Simanskis
0 siblings, 1 reply; 26+ messages in thread
From: bon @ 2014-01-21 16:07 UTC (permalink / raw)
To: Gediminas Simanskis; +Cc: linux-can
>>>>> "Gediminas" == Gediminas Simanskis <gediminas@8devices.com> writes:
Gediminas> Hi, this image was compiled using commercial version IAR
Gediminas> compiller for ARM.
I understand.
But isn't there any output log during the build stage that tells what files
are compiled with what options and defines?
Thanks
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-21 16:07 ` bon
@ 2014-01-22 5:42 ` Gediminas Simanskis
0 siblings, 0 replies; 26+ messages in thread
From: Gediminas Simanskis @ 2014-01-22 5:42 UTC (permalink / raw)
To: bon; +Cc: linux-can
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
Hi,
attached
>>>>>> "Gediminas" == Gediminas Simanskis <gediminas@8devices.com> writes:
> Gediminas> Hi, this image was compiled using commercial version IAR
> Gediminas> compiller for ARM.
>
> I understand.
>
> But isn't there any output log during the build stage that tells what files
> are compiled with what options and defines?
>
> Thanks
[-- Attachment #2: usb2can.map --]
[-- Type: text/plain, Size: 36670 bytes --]
###############################################################################
# #
# IAR ELF Linker V5.41.0.51741/W32 for ARM 18/Dec/2013 12:41:15 #
# Copyright (C) 2007-2009 IAR Systems AB. #
# #
# Output file = C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\E #
# xe\usb2can.out.tmp #
# Map file = C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\L #
# ist\usb2can.map #
# Command line = C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\75x_can.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwar #
# e\IAR\Debug\Obj\75x_cfg.o C:\Users\Ged\Documents\Work\US #
# B2CAN\Firmware\IAR\Debug\Obj\75x_eic.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\75x_gpio.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwa #
# re\IAR\Debug\Obj\75x_i2c.o C:\Users\Ged\Documents\Work\U #
# SB2CAN\Firmware\IAR\Debug\Obj\75x_init.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\75x_it.o C:\Users\Ged\Documents\Work\USB2CAN\Firmware #
# \IAR\Debug\Obj\75x_lib.o C:\Users\Ged\Documents\Work\USB #
# 2CAN\Firmware\IAR\Debug\Obj\75x_mrcc.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\75x_pwm.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwar #
# e\IAR\Debug\Obj\75x_tb.o C:\Users\Ged\Documents\Work\USB #
# 2CAN\Firmware\IAR\Debug\Obj\75x_tim.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\75x_uart.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwa #
# re\IAR\Debug\Obj\75x_vect.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\75x_wdg.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwar #
# e\IAR\Debug\Obj\Checksum.o C:\Users\Ged\Documents\Work\U #
# SB2CAN\Firmware\IAR\Debug\Obj\buffers.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\commands.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwa #
# re\IAR\Debug\Obj\configuration.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\hw_config.o C:\Users\Ged\Documents\Work\USB2CAN\Firmw #
# are\IAR\Debug\Obj\i2c_ee.o C:\Users\Ged\Documents\Work\U #
# SB2CAN\Firmware\IAR\Debug\Obj\leds.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\lists.o C:\Users\Ged\Documents\Work\USB2CAN\Firmware\ #
# IAR\Debug\Obj\low_level_init.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\main.o C:\Users\Ged\Documents\Work\USB2CAN\Firmware\I #
# AR\Debug\Obj\messages.o C:\Users\Ged\Documents\Work\USB2 #
# CAN\Firmware\IAR\Debug\Obj\usb_core.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\usb_desc.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwa #
# re\IAR\Debug\Obj\usb_endp.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\usb_init.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwa #
# re\IAR\Debug\Obj\usb_int.o C:\Users\Ged\Documents\Work\U #
# SB2CAN\Firmware\IAR\Debug\Obj\usb_istr.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\usb_mem.o C:\Users\Ged\Documents\Work\USB2CAN\Firmwar #
# e\IAR\Debug\Obj\usb_prop.o C:\Users\Ged\Documents\Work\U #
# SB2CAN\Firmware\IAR\Debug\Obj\usb_pwr.o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\O #
# bj\usb_regs.o --redirect _Printf=_PrintfSmall #
# --redirect _Scanf=_ScanfSmall -o #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\E #
# xe\usb2can.out.tmp --map C:\Users\Ged\Documents\Work\USB #
# 2CAN\Firmware\IAR\Debug\List\usb2can.map --config #
# C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\linker\ #
# STR75x_FLASH.icf --semihosting --entry #
# __iar_program_start --place_holder #
# __checksum,2,.checksum,1 --define_symbol #
# __checksum_begin=0x20006000 --define_symbol #
# __checksum_end=0x2000bffb #
# #
# #
###############################################################################
*******************************************************************************
*** PLACEMENT SUMMARY
***
"P1": place in [from 0x20006000 to 0x2000bfff] { block IntVecInit };
"P2": place in [from 0x40000000 to 0x40003fff] { block IntVec };
"P3": place in [from 0x20006000 to 0x2000bfff] { ro };
"P4": place in [from 0x40000000 to 0x40003fff] {
rw, block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
block UND_STACK, block ABT_STACK, block HEAP };
"A1": place at 0x200c0000 { section configuration };
"A2": place at end of [0x20006000-0x2000bfff] { ro section .checksum };
Section Kind Address Size Object
------- ---- ------- ---- ------
"P1": 0x6f0
IntVecInit 0x20006000 0x6f0 <Block>
Initializer bytes ro data 0x20006000 0x6f0 <for IntVec-1>
- 0x200066f0 0x6f0
"P3": 0x4508
.text ro code 0x200066f0 0xd2c usb_core.o [1]
.text ro code 0x2000741c 0x634 75x_can.o [1]
.text ro code 0x20007a50 0x630 75x_mrcc.o [1]
.text ro code 0x20008080 0x4f0 messages.o [1]
.text ro code 0x20008570 0x3a8 hw_config.o [1]
.text ro code 0x20008918 0x3a8 main.o [1]
.text ro code 0x20008cc0 0x370 usb_prop.o [1]
.text ro code 0x20009030 0x2f4 leds.o [1]
.text ro code 0x20009324 0x2f4 usb_regs.o [1]
.text ro code 0x20009618 0x29c usb_int.o [1]
.text ro code 0x200098b4 0x238 commands.o [1]
.text ro code 0x20009aec 0x210 75x_gpio.o [1]
.rodata const 0x20009cfc 0x200 Checksum.o [1]
.text ro code 0x20009efc 0x1c4 75x_it.o [1]
.text ro code 0x2000a0c0 0x180 75x_tb.o [1]
.text ro code 0x2000a240 0x154 lists.o [1]
.text ro code 0x2000a394 0x11c 75x_init.o [1]
.text ro code 0x2000a4b0 0xd4 ABImemcpy.o [4]
.text ro code 0x2000a584 0x98 75x_eic.o [1]
.text ro code 0x2000a61c 0x90 usb_istr.o [1]
.text ro code 0x2000a6ac 0x84 75x_wdg.o [1]
.text ro code 0x2000a730 0x64 usb_mem.o [1]
.text ro code 0x2000a794 0x4c Checksum.o [1]
.text ro code 0x2000a7e0 0x48 usb_pwr.o [1]
.text ro code 0x2000a828 0x38 usb_endp.o [1]
.text ro code 0x2000a860 0x38 data_init2.o [4]
.text ro code 0x2000a898 0x34 usb_init.o [1]
.text ro code 0x2000a8cc 0x34 iarwstd.o [5]
.rodata const 0x2000a900 0x30 usb_desc.o [1]
.text ro code 0x2000a930 0x2c copy_init2.o [4]
.text ro code 0x2000a95c 0x28 zero_init2.o [4]
.rodata const 0x2000a984 0x24 usb_desc.o [1]
.text ro code 0x2000a9a8 0x24 cmain.o [4]
.iar.init_table const 0x2000a9cc 0x38 - Linker created -
.rodata const 0x2000aa04 0x20 usb_desc.o [1]
.text ro code 0x2000aa24 0x20 75x_cfg.o [1]
.text ro code 0x2000aa44 0x20 uread4.o [4]
.text ro code 0x2000aa64 0x20 exit.o [5]
.rodata const 0x2000aa84 0x14 usb_desc.o [1]
.text ro code 0x2000aa98 0x10 cexit.o [4]
.text ro code 0x2000aaa8 0x8 low_level_init.o [1]
.text ro code 0x2000aab0 0x8 exit.o [3]
.rodata const 0x2000aab8 0x4 usb_desc.o [1]
.text ro code 0x2000aabc 0x4 xreturnswi.o [5]
Initializer bytes ro data 0x2000aac0 0x138 <for P4 s0>
- 0x2000abf8 0x4508
"A2": 0x2
.checksum const 0x2000bffe 0x2 Place holder __checksum
- 0x2000c000 0x2
"A1": 0xc
configuration uninit 0x200c0000 0xc configuration.o [1]
- 0x200c000c 0xc
"P2": 0x6f0
IntVec 0x40000000 0x6f0 <Block>
IntVec-1 0x40000000 0x6f0 <Init block>
.intvec inited 0x40000000 0x6f0 75x_vect.o [1]
- 0x400006f0 0x6f0
"P4", part 1 of 3: 0x700
CSTACK 0x400006f0 0x200 <Block>
CSTACK uninit 0x400006f0 0x200 <Block tail>
SVC_STACK 0x400008f0 0x100 <Block>
SVC_STACK uninit 0x400008f0 0x100 <Block tail>
IRQ_STACK 0x400009f0 0x100 <Block>
IRQ_STACK uninit 0x400009f0 0x100 <Block tail>
FIQ_STACK 0x40000af0 0x100 <Block>
FIQ_STACK uninit 0x40000af0 0x100 <Block tail>
UND_STACK 0x40000bf0 0x100 <Block>
UND_STACK uninit 0x40000bf0 0x100 <Block tail>
ABT_STACK 0x40000cf0 0x100 <Block>
ABT_STACK uninit 0x40000cf0 0x100 <Block tail>
- 0x40000df0 0x700
"P4", part 2 of 3: 0x138
P4 s0 0x40000df0 0x138 <Init block>
.data inited 0x40000df0 0x3c usb_istr.o [1]
.data inited 0x40000e2c 0x3c usb_istr.o [1]
.data inited 0x40000e68 0x30 usb_prop.o [1]
.data inited 0x40000e98 0x28 usb_prop.o [1]
.data inited 0x40000ec0 0x24 usb_prop.o [1]
.data inited 0x40000ee4 0x14 75x_can.o [1]
.data inited 0x40000ef8 0x14 usb_desc.o [1]
.data inited 0x40000f0c 0x8 usb_prop.o [1]
.data inited 0x40000f14 0x8 usb_prop.o [1]
.data inited 0x40000f1c 0x8 usb_prop.o [1]
.data inited 0x40000f24 0x4 usb_prop.o [1]
- 0x40000f28 0x138
"P4", part 3 of 3: 0xd94
.bss zero 0x40000f28 0x608 lists.o [1]
.bss zero 0x40001530 0x608 lists.o [1]
.bss zero 0x40001b38 0xa4 main.o [1]
.bss zero 0x40001bdc 0x40 main.o [1]
.bss zero 0x40001c1c 0x40 main.o [1]
.bss zero 0x40001c5c 0x28 usb_init.o [1]
.bss zero 0x40001c84 0xc hw_config.o [1]
.bss zero 0x40001c90 0x6 leds.o [1]
.bss zero 0x40001c98 0x4 75x_it.o [1]
.bss zero 0x40001c9c 0x4 hw_config.o [1]
.bss zero 0x40001ca0 0x4 usb_core.o [1]
.bss zero 0x40001ca4 0x4 usb_core.o [1]
.bss zero 0x40001ca8 0x4 iarwstd.o [5]
.bss zero 0x40001cac 0x4 usb_int.o [1]
.bss zero 0x40001cb0 0x2 main.o [1]
.bss zero 0x40001cb2 0x2 usb_init.o [1]
.bss zero 0x40001cb4 0x2 usb_istr.o [1]
.bss zero 0x40001cb6 0x1 hw_config.o [1]
.bss zero 0x40001cb7 0x1 main.o [1]
.bss zero 0x40001cb8 0x1 main.o [1]
.bss zero 0x40001cb9 0x1 usb_init.o [1]
.bss zero 0x40001cba 0x1 usb_pwr.o [1]
- 0x40001cbb 0xd93
*******************************************************************************
*** INIT TABLE
***
Address Size
------- ----
Zero (__iar_zero_init2)
1 destination range, total size 0xd93:
0x40000f28 0xd93
Copy (__iar_copy_init2)
1 source range, total size 0x6f0 (100% of destination):
0x20006000 0x6f0
1 destination range, total size 0x6f0:
0x40000000 0x6f0
Copy (__iar_copy_init2)
1 source range, total size 0x138 (100% of destination):
0x2000aac0 0x138
1 destination range, total size 0x138:
0x40000df0 0x138
*******************************************************************************
*** MODULE SUMMARY
***
Module ro code rw code ro data rw data
------ ------- ------- ------- -------
C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\Obj: [1]
75x_can.o 1 588 20 20
75x_cfg.o 32
75x_eic.o 152
75x_gpio.o 528
75x_init.o 284
75x_it.o 452 4
75x_mrcc.o 1 584
75x_tb.o 384
75x_vect.o 1 776 1 776
75x_wdg.o 132
Checksum.o 76 512
commands.o 568
configuration.o 12
hw_config.o 936 17
leds.o 756 6
lists.o 340 3 088
low_level_init.o 8
main.o 936 296
messages.o 1 264
usb_core.o 3 372 8
usb_desc.o 160 20
usb_endp.o 56
usb_init.o 52 43
usb_int.o 668 4
usb_istr.o 144 120 122
usb_mem.o 100
usb_prop.o 880 152 152
usb_pwr.o 72 1
usb_regs.o 756
----------------------------------------------------
Total: 16 120 1 776 2 740 3 793
command line: [2]
----------------------------------------------------
Total:
dl4t_al_in.a: [3]
exit.o 8
----------------------------------------------------
Total: 8
rt4t_al.a: [4]
ABImemcpy.o 212
cexit.o 16
cmain.o 36
copy_init2.o 44
data_init2.o 56
uread4.o 32
zero_init2.o 40
----------------------------------------------------
Total: 436
shs_l.a: [5]
exit.o 32
iarwstd.o 52 4
xreturnswi.o 4
----------------------------------------------------
Total: 88 4
Gaps 2
Linker created 56 1 792
--------------------------------------------------------
Grand Total: 16 652 1 776 2 798 5 591
*******************************************************************************
*** ENTRY LIST
***
Entry Address Size Type Object
----- ------- ---- ---- ------
?main 0x2000a9a8 Code Gb cmain.o [4]
ABT_STACK$$Base 0x40000cf0 -- Gb - Linker created -
ABT_STACK$$Limit 0x40000df0 -- Gb - Linker created -
ADC_IRQHandler 0x2000a070 0x4 Code Gb 75x_it.o [1]
Abort_Handler 0x20009f0c 0x4 Code Gb 75x_it.o [1]
ByteSwap 0x20009608 0x10 Code Gb usb_regs.o [1]
CAN_Config 0x2000878c 0xd0 Code Gb hw_config.o [1]
CAN_DISABLE 0x20008860 0x18 Code Gb hw_config.o [1]
CAN_DeInit 0x2000741c 0x20 Code Gb 75x_can.o [1]
CAN_ENABLE 0x2000885c 0x4 Code Gb hw_config.o [1]
CAN_EnterInitMode 0x20007978 0x1c Code Gb 75x_can.o [1]
CAN_EnterTestMode 0x200079ac 0x24 Code Gb 75x_can.o [1]
CAN_IRQHandler 0x20009f68 0x100 Code Gb 75x_it.o [1]
CAN_Init 0x2000743c 0x40 Code Gb 75x_can.o [1]
CAN_InvalidateAllMsgObj
0x20007710 0x24 Code Gb 75x_can.o [1]
CAN_IsMessageWaiting 0x20007a24 0x8 Code Gb 75x_can.o [1]
CAN_IsTransmitRequested
0x20007a2c 0x4 Code Gb 75x_can.o [1]
CAN_LeaveInitMode 0x20007994 0x18 Code Gb 75x_can.o [1]
CAN_LeaveTestMode 0x200079d0 0x30 Code Gb 75x_can.o [1]
CAN_ReceiveMessage 0x20007850 0x128 Code Gb 75x_can.o [1]
CAN_ReleaseRxMessage 0x20007a08 0x4 Code Gb 75x_can.o [1]
CAN_ReleaseTxMessage 0x20007a00 0x8 Code Gb 75x_can.o [1]
CAN_SendMessage 0x20007744 0x10c Code Gb 75x_can.o [1]
CAN_SetBitrate 0x2000747c 0x24 Code Gb 75x_can.o [1]
CAN_SetRxMsgObj 0x20007608 0x108 Code Gb 75x_can.o [1]
CAN_SetTiming 0x200074a4 0x5c Code Gb 75x_can.o [1]
CAN_SetTxMsgObj 0x20007570 0x98 Code Gb 75x_can.o [1]
CAN_SetUnusedMsgObj 0x20007500 0x70 Code Gb 75x_can.o [1]
CANtoUSBdata 0x20008148 0x108 Code Gb messages.o [1]
CFG_USBFilterConfig 0x2000aa24 0x20 Code Gb 75x_cfg.o [1]
CSTACK$$Base 0x400006f0 -- Gb - Linker created -
CSTACK$$Limit 0x400008f0 -- Gb - Linker created -
CTR_HP 0x200097ec 0xb4 Code Gb usb_int.o [1]
CTR_LP 0x20009618 0x1d4 Code Gb usb_int.o [1]
CanListClear 0x2000a244 Code Gb lists.o [1]
CanListGet 0x2000a308 0x8c Code Gb lists.o [1]
CanListInit 0x2000a240 0x4 Code Gb lists.o [1]
CanListPut 0x2000a278 0x90 Code Gb lists.o [1]
CanRXlist 0x40000f28 0x608 Data Gb lists.o [1]
CanTXlist 0x40001530 0x608 Data Gb lists.o [1]
CanTimings 0x40000ee4 0x14 Data Gb 75x_can.o [1]
ClearDTOG_RX 0x20009428 0x30 Code Gb usb_regs.o [1]
ClearDTOG_TX 0x20009458 0x30 Code Gb usb_regs.o [1]
Clear_Status_Out 0x20009400 0x18 Code Gb usb_regs.o [1]
Config_Descriptor 0x40000f1c 0x8 Data Gb usb_prop.o [1]
DMA_IRQHandler 0x2000a074 0x4 Code Gb 75x_it.o [1]
DataStageIn 0x20006cb4 0xd4 Code Gb usb_core.o [1]
DataStageOut 0x20006b98 0x11c Code Gb usb_core.o [1]
Data_Setup0 0x20006ef8 0x298 Code Gb usb_core.o [1]
Device_Descriptor 0x40000f14 0x8 Data Gb usb_prop.o [1]
Device_Info 0x40001c5c 0x1c Data Gb usb_init.o [1]
Device_Property 0x40000e68 0x30 Data Gb usb_prop.o [1]
Device_Table 0x40000f24 0x4 Data Gb usb_prop.o [1]
EIC_IRQCmd 0x2000a5fc 0x20 Code Gb 75x_eic.o [1]
EIC_IRQInit 0x2000a584 0x78 Code Gb 75x_eic.o [1]
EIC_IRQInitStructure 0x40001c9c 0x4 Data Gb hw_config.o [1]
EP1_IN_Callback 0x2000a838 0x8 Code Gb usb_endp.o [1]
EP1_busy 0x40001b78 0x1 Data Gb main.o [1]
EP2_OUT_Callback 0x2000a828 0xc Code Gb usb_endp.o [1]
EP2_dataReady 0x40001b79 0x1 Data Gb main.o [1]
EP3_IN_Callback 0x2000a848 0xc Code Gb usb_endp.o [1]
EP4_OUT_Callback 0x2000a834 0x4 Code Gb usb_endp.o [1]
EPindex 0x40001cb9 0x1 Data Gb usb_init.o [1]
EXTIT_IRQHandler 0x2000a078 0x4 Code Gb 75x_it.o [1]
ErrLec 0x40001b72 0x1 Data Gb main.o [1]
ErrLecNext 0x40001b73 0x1 Data Gb main.o [1]
ErrStatus 0x40001b70 0x1 Data Gb main.o [1]
ErrStatusNext 0x40001b71 0x1 Data Gb main.o [1]
FIQ_Handler 0x20009f00 0x4 Code Gb 75x_it.o [1]
FIQ_STACK$$Base 0x40000af0 -- Gb - Linker created -
FIQ_STACK$$Limit 0x40000bf0 -- Gb - Linker created -
FLASHSMI_IRQHandler 0x2000a080 0x4 Code Gb 75x_it.o [1]
GPIO_DeInit 0x20009aec 0x1c Code Gb 75x_gpio.o [1]
GPIO_Init 0x20009b08 0x1dc Code Gb 75x_gpio.o [1]
GPIO_WriteBit 0x20009ce4 0x18 Code Gb 75x_gpio.o [1]
GetEPDblBuf0Addr 0x200095c0 Code Gb usb_regs.o [1]
GetEPRxAddr 0x200094c0 0x20 Code Gb usb_regs.o [1]
GetEPRxCount 0x20009570 0x20 Code Gb usb_regs.o [1]
GetEPTxAddr 0x200094bc 0x4 Code Gb usb_regs.o [1]
GetUSBcmd 0x20008250 0x29c Code Gb messages.o [1]
GlobalTick 0x40001c98 0x4 Data Gb 75x_it.o [1]
I2C_IRQHandler 0x20009f50 0x4 Code Gb 75x_it.o [1]
IRQ_STACK$$Base 0x400009f0 -- Gb - Linker created -
IRQ_STACK$$Limit 0x40000af0 -- Gb - Linker created -
In0_Process 0x20007248 0x8c Code Gb usb_core.o [1]
IntVec$$Base 0x40000000 -- Gb - Linker created -
IntVec$$Limit 0x400006f0 -- Gb - Linker created -
IntVecInit$$Base 0x20006000 -- Gb - Linker created -
IntVecInit$$Limit 0x200066f0 -- Gb - Linker created -
MRCC_CKSYSConfig 0x20007b30 0x1b4 Code Gb 75x_mrcc.o [1]
MRCC_CKTIMConfig 0x20007cfc 0x18 Code Gb 75x_mrcc.o [1]
MRCC_CKUSBConfig 0x20007d30 0x54 Code Gb 75x_mrcc.o [1]
MRCC_ClearFlag 0x20007e3c 0x78 Code Gb 75x_mrcc.o [1]
MRCC_DeInit 0x20007a50 0xe0 Code Gb 75x_mrcc.o [1]
MRCC_GetFlagStatus 0x20007de0 0x5c Code Gb 75x_mrcc.o [1]
MRCC_HCLKConfig 0x20007ce4 0x18 Code Gb 75x_mrcc.o [1]
MRCC_IOVoltageRangeConfig
0x20007db8 0x1c Code Gb 75x_mrcc.o [1]
MRCC_IRQHandler 0x2000a07c 0x4 Code Gb 75x_it.o [1]
MRCC_ITConfig 0x20007d84 0x8 Code Gb 75x_mrcc.o [1]
MRCC_PCLKConfig 0x20007d14 0x1c Code Gb 75x_mrcc.o [1]
MRCC_PeripheralClockConfig
0x20007d8c 0x4 Code Gb 75x_mrcc.o [1]
MRCC_PeripheralSWResetConfig
0x20007dac 0x8 Code Gb 75x_mrcc.o [1]
MRCC_WaitForOSC4MStartUp
0x20007ec0 0x54 Code Gb 75x_mrcc.o [1]
NOP_Process 0x20007418 0x4 Code Gb usb_core.o [1]
NoData_Setup0 0x20006d88 0x170 Code Gb usb_core.o [1]
OSC4MStartUpStatus 0x40001cb6 0x1 Data Gb hw_config.o [1]
Out0_Process 0x200072d4 0x5c Code Gb usb_core.o [1]
PMAToUserBufferCopy 0x2000a768 0x2c Code Gb usb_mem.o [1]
PWM_EM_IRQHandler 0x20009f48 0x4 Code Gb 75x_it.o [1]
PWM_OC123_IRQHandler 0x20009f44 0x4 Code Gb 75x_it.o [1]
PWM_UP_IRQHandler 0x20009f4c 0x4 Code Gb 75x_it.o [1]
Post0_Process 0x20007330 0x58 Code Gb usb_core.o [1]
PowerOn 0x2000a7e0 0x44 Code Gb usb_pwr.o [1]
Prefetch_Handler 0x20009f08 0x4 Code Gb 75x_it.o [1]
RTC_IRQHandler 0x2000a084 0x4 Code Gb 75x_it.o [1]
Region$$Table$$Base 0x2000a9cc -- Gb - Linker created -
Region$$Table$$Limit 0x2000aa04 -- Gb - Linker created -
Reset_Device 0x200088d0 0x48 Code Gb hw_config.o [1]
RxCanMsgList 0x40001b7c 0x48 Data Gb main.o [1]
RxMsgCnt 0x40001b76 0x1 Data Gb main.o [1]
SSP0_IRQHandler 0x20009f58 0x4 Code Gb 75x_it.o [1]
SSP1_IRQHandler 0x20009f54 0x4 Code Gb 75x_it.o [1]
SVC_STACK$$Base 0x400008f0 -- Gb - Linker created -
SVC_STACK$$Limit 0x400009f0 -- Gb - Linker created -
SWI_Handler 0x20009f04 0x4 Code Gb 75x_it.o [1]
SaveRState 0x40001cac 0x2 Data Gb usb_int.o [1]
SaveTState 0x40001cae 0x2 Data Gb usb_int.o [1]
SendErrorMessage 0x200084ec 0x64 Code Gb messages.o [1]
SetBTABLE 0x20009330 0x14 Code Gb usb_regs.o [1]
SetCKSYS_OSC4MPLL 0x20007f14 0x140 Code Lc 75x_mrcc.o [1]
SetDeviceAddress 0x20007388 0x60 Code Gb usb_core.o [1]
SetEPDblBuf0Addr 0x20009590 Code Gb usb_regs.o [1]
SetEPRxAddr 0x2000949c 0x20 Code Gb usb_regs.o [1]
SetEPRxCount 0x20009504 0x24 Code Gb usb_regs.o [1]
SetEPRxStatus 0x20009388 0x28 Code Gb usb_regs.o [1]
SetEPRxValid 0x200093e0 0x20 Code Gb usb_regs.o [1]
SetEPTxAddr 0x20009498 0x4 Code Gb usb_regs.o [1]
SetEPTxCount 0x200094e0 0x24 Code Gb usb_regs.o [1]
SetEPTxStatus 0x2000935c 0x2c Code Gb usb_regs.o [1]
SetEPTxValid 0x200093c0 0x20 Code Gb usb_regs.o [1]
SetEPType 0x20009344 0x18 Code Gb usb_regs.o [1]
Set_System 0x20008570 0x178 Code Gb hw_config.o [1]
Set_TB 0x20008878 0x48 Code Gb hw_config.o [1]
Set_USBClock 0x200086e8 0x18 Code Gb hw_config.o [1]
Setup0_Process 0x20007190 0xb8 Code Gb usb_core.o [1]
Standard_ClearFeature 0x20006944 0x130 Code Gb usb_core.o [1]
Standard_GetConfiguration
0x200066f0 0x48 Code Gb usb_core.o [1]
Standard_GetDescriptorData
0x20006b64 0x34 Code Gb usb_core.o [1]
Standard_GetInterface 0x20006798 0x48 Code Gb usb_core.o [1]
Standard_GetStatus 0x20006870 0xd4 Code Gb usb_core.o [1]
Standard_SetConfiguration
0x20006738 0x60 Code Gb usb_core.o [1]
Standard_SetDeviceFeature
0x20006b2c 0x38 Code Gb usb_core.o [1]
Standard_SetEndPointFeature
0x20006a74 0xb8 Code Gb usb_core.o [1]
Standard_SetInterface 0x200067e0 0x90 Code Gb usb_core.o [1]
Statistics 0x40001b54 0x1c Data Gb main.o [1]
StatisticsInit 0x20008918 0x28 Code Gb main.o [1]
StatusInfo 0x40001ca0 0x4 Data Gb usb_core.o [1]
String_Descriptor 0x40000e98 0x28 Data Gb usb_prop.o [1]
TB_ClearITPendingBit 0x2000a224 0x1c Code Gb 75x_tb.o [1]
TB_Cmd 0x2000a160 0x1c Code Gb 75x_tb.o [1]
TB_IRQHandler 0x2000a088 0x24 Code Gb 75x_it.o [1]
TB_ITConfig 0x2000a17c 0x9c Code Gb 75x_tb.o [1]
TB_Init 0x2000a0c0 0xa0 Code Gb 75x_tb.o [1]
TB_InitStructure 0x40001c84 0xc Data Gb hw_config.o [1]
TIM0_IC12_IRQHandler 0x20009f3c 0x4 Code Gb 75x_it.o [1]
TIM0_OC1_IRQHandler 0x20009f38 0x4 Code Gb 75x_it.o [1]
TIM0_OC2_IRQHandler 0x20009f34 0x4 Code Gb 75x_it.o [1]
TIM0_UP_IRQHandler 0x20009f40 0x4 Code Gb 75x_it.o [1]
TIM1_IC12_IRQHandler 0x20009f2c 0x4 Code Gb 75x_it.o [1]
TIM1_OC1_IRQHandler 0x20009f28 0x4 Code Gb 75x_it.o [1]
TIM1_OC2_IRQHandler 0x20009f24 0x4 Code Gb 75x_it.o [1]
TIM1_UP_IRQHandler 0x20009f30 0x4 Code Gb 75x_it.o [1]
TIM2_IC12_IRQHandler 0x20009f1c 0x4 Code Gb 75x_it.o [1]
TIM2_OC1_IRQHandler 0x20009f18 0x4 Code Gb 75x_it.o [1]
TIM2_OC2_IRQHandler 0x20009f14 0x4 Code Gb 75x_it.o [1]
TIM2_UP_IRQHandler 0x20009f20 0x4 Code Gb 75x_it.o [1]
TmpCanMsg 0x40001bc4 0x18 Data Gb main.o [1]
TxCanFlag 0x40001b77 0x1 Data Gb main.o [1]
TxCanMsg 0x40001b3c 0x18 Data Gb main.o [1]
UART0_IRQHandler 0x20009f64 0x4 Code Gb 75x_it.o [1]
UART1_IRQHandler 0x20009f60 0x4 Code Gb 75x_it.o [1]
UART2_IRQHandler 0x20009f5c 0x4 Code Gb 75x_it.o [1]
UND_STACK$$Base 0x40000bf0 -- Gb - Linker created -
UND_STACK$$Limit 0x40000cf0 -- Gb - Linker created -
USB2CAN_close 0x200099f0 0x4 Code Gb commands.o [1]
USB2CAN_get_statistics 0x20009a3c 0x94 Code Gb commands.o [1]
USB2CAN_get_status 0x200099f4 0x48 Code Gb commands.o [1]
USB2CAN_next_status 0x40001cb0 0x2 Data Gb main.o [1]
USB2CAN_open 0x20009970 0x80 Code Gb commands.o [1]
USB2CAN_reset 0x200098b4 0x4 Code Gb commands.o [1]
USB2CAN_set_speed 0x200098b8 0xb8 Code Gb commands.o [1]
USB2CAN_status 0x40001b38 0x2 Data Gb main.o [1]
USB_Cable_Config 0x2000876c 0x20 Code Gb hw_config.o [1]
USB_HP_IRQHandler 0x2000a06c 0x4 Code Gb 75x_it.o [1]
USB_Init 0x2000a898 0x34 Code Gb usb_init.o [1]
USB_Interrupts_Config 0x20008700 0x6c Code Gb hw_config.o [1]
USB_Istr 0x2000a61c 0x90 Code Gb usb_istr.o [1]
USB_LP_IRQHandler 0x2000a068 0x4 Code Gb 75x_it.o [1]
USBdataCANmsg 0x20008080 0xc8 Code Gb messages.o [1]
Undefined_Handler 0x20009efc 0x4 Code Gb 75x_it.o [1]
UserToPMABufferCopy 0x2000a730 0x38 Code Gb usb_mem.o [1]
User_Standard_Requests 0x40000ec0 0x24 Data Gb usb_prop.o [1]
Virtual_Com_Port_ConfigDescriptor
0x2000a900 0x30 Data Gb usb_desc.o [1]
Virtual_Com_Port_Data_Setup
0x20008eb0 0x8c Code Gb usb_prop.o [1]
Virtual_Com_Port_DeviceDescriptor
0x2000aa84 0x14 Data Gb usb_desc.o [1]
Virtual_Com_Port_GetConfigDescriptor
0x20008f78 0x8 Code Gb usb_prop.o [1]
Virtual_Com_Port_GetDeviceDescriptor
0x20008f70 0x8 Code Gb usb_prop.o [1]
Virtual_Com_Port_GetLineCoding
0x20008fbc 0x14 Code Gb usb_prop.o [1]
Virtual_Com_Port_GetStringDescriptor
0x20008f80 0x20 Code Gb usb_prop.o [1]
Virtual_Com_Port_Get_Interface_Setting
0x20008fa0 0x1c Code Gb usb_prop.o [1]
Virtual_Com_Port_NoData_Setup
0x20008f3c 0x34 Code Gb usb_prop.o [1]
Virtual_Com_Port_Reset 0x20008d3c 0x16c Code Gb usb_prop.o [1]
Virtual_Com_Port_SetLineCoding
0x20008fd0 0x14 Code Gb usb_prop.o [1]
Virtual_Com_Port_Status_In
0x20008ea8 0x4 Code Gb usb_prop.o [1]
Virtual_Com_Port_Status_Out
0x20008eac 0x4 Code Gb usb_prop.o [1]
Virtual_Com_Port_StringLangID
0x2000aab8 0x4 Data Gb usb_desc.o [1]
Virtual_Com_Port_StringProduct
0x2000a984 0x24 Data Gb usb_desc.o [1]
Virtual_Com_Port_StringSerial
0x40000ef8 0x14 Data Gb usb_desc.o [1]
Virtual_Com_Port_StringVendor
0x2000aa04 0x20 Data Gb usb_desc.o [1]
Virtual_Com_Port_init 0x20008cc0 0x7c Code Gb usb_prop.o [1]
WAKUP_Addr 0x40000040 Code Gb 75x_vect.o [1]
WAKUP_IRQHandler 0x20009f10 0x4 Code Gb 75x_it.o [1]
WDG_Cmd 0x2000a6cc 0x4c Code Gb 75x_wdg.o [1]
WDG_Init 0x2000a6ac 0x20 Code Gb 75x_wdg.o [1]
WriteCKOSCSELBit 0x20008054 0x1c Code Lc 75x_mrcc.o [1]
__aeabi_memcpy 0x2000a4b0 Code Gb ABImemcpy.o [4]
__aeabi_memcpy4 0x2000a4d4 Code Gb ABImemcpy.o [4]
__aeabi_memcpy8 0x2000a4d4 Code Gb ABImemcpy.o [4]
__aeabi_uread4 0x2000aa44 Code Gb uread4.o [4]
__checksum 0x2000bffe 0x2 Data Gb Place holder __checksum
__checksum_begin 0x20006000 -- Gb command line/config [2]
__checksum_end 0x2000bffb -- Gb command line/config [2]
__exit 0x2000aa64 0x20 Code Gb exit.o [5]
__iar_copy_init2 0x2000a930 0x2c Code Gb copy_init2.o [4]
__iar_data_init2 0x2000a860 0x38 Code Gb data_init2.o [4]
__iar_program_start 0x2000a394 Code Gb 75x_init.o [1]
__iar_return_from_swi 0x2000aabc 0x4 Code Gb xreturnswi.o [5]
__iar_sh_stdout_close 0x2000a8cc 0x30 Code Gb iarwstd.o [5]
__iar_sh_stdout_handle 0x40001ca8 0x4 Data Lc iarwstd.o [5]
__iar_zero_init2 0x2000a95c 0x28 Code Gb zero_init2.o [4]
__low_level_init 0x2000aaa8 0x8 Code Gb low_level_init.o [1]
_exit 0x2000aa98 Code Gb cexit.o [4]
bDeviceState 0x40001cba 0x1 Data Gb usb_pwr.o [1]
bRun 0x40001b74 0x1 Data Gb main.o [1]
bRunNext 0x40001b75 0x1 Data Gb main.o [1]
blink 0x200090bc 0x264 Code Gb leds.o [1]
blink_state 0x40001c94 0x1 Data Gb leds.o [1]
blink_state_time 0x40001c90 0x4 Data Gb leds.o [1]
blink_type 0x40001c95 0x1 Data Gb leds.o [1]
buffer_cmd_in 0x40001c1c 0x40 Data Gb main.o [1]
buffer_cmd_out 0x40001bdc 0x40 Data Gb main.o [1]
conf 0x200c0000 0xc Data Gb configuration.o [1]
count_cmd_in 0x40001cb8 0x1 Data Gb main.o [1]
count_cmd_out 0x40001cb7 0x1 Data Gb main.o [1]
crc16_table 0x20009cfc 0x200 Data Gb Checksum.o [1]
exit 0x2000aab0 0x8 Code Gb exit.o [3]
fast_crc16 0x2000a794 0x48 Code Gb Checksum.o [1]
ledOff 0x2000906c 0x3c Code Gb leds.o [1]
ledOn 0x20009030 0x3c Code Gb leds.o [1]
linecoding 0x40000f0c 0x8 Data Gb usb_prop.o [1]
main 0x20008940 0x360 Code Gb main.o [1]
pEpInt_IN 0x40000df0 0x3c Data Gb usb_istr.o [1]
pEpInt_OUT 0x40000e2c 0x3c Data Gb usb_istr.o [1]
pInformation 0x40001c78 0x4 Data Gb usb_init.o [1]
pProperty 0x40001c7c 0x4 Data Gb usb_init.o [1]
pUser_Standard_Requests
0x40001c80 0x4 Data Gb usb_init.o [1]
setBlinkType 0x200090a8 0x14 Code Gb leds.o [1]
sum 0x40001b3a 0x2 Data Gb main.o [1]
wInterrupt_Mask 0x40001cb2 0x2 Data Gb usb_init.o [1]
wIstr 0x40001cb4 0x2 Data Gb usb_istr.o [1]
[1] = C:\Users\Ged\Documents\Work\USB2CAN\Firmware\IAR\Debug\Obj
[2] = command line
[3] = dl4t_al_in.a
[4] = rt4t_al.a
[5] = shs_l.a
16 652 bytes of readonly code memory
1 776 bytes of readwrite code memory
2 798 bytes of readonly data memory
5 591 bytes of readwrite data memory
Errors: none
Warnings: none
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-21 11:57 ` Gediminas Simanskis
2014-01-21 12:19 ` bon
@ 2014-01-22 12:58 ` Bernd Krumboeck
2014-01-22 14:46 ` Marc Kleine-Budde
1 sibling, 1 reply; 26+ messages in thread
From: Bernd Krumboeck @ 2014-01-22 12:58 UTC (permalink / raw)
To: Gediminas Simanskis, linux-can
Hi Gediminas!
May I kindly ask you to send me a diff/patch about the changes, so I can update the firmware sources on github.
regards,
Bernd
Am 2014-01-21 12:57, schrieb Gediminas Simanskis:
> Hello,
> I have changed in v1.5 usb2can firmware only 2x endpoints (3 and 4) sizes from 25 bytes to 64 because was problem (USB RX cmd enpoint freezing) on some PC which use windows7 or windows8 64 bit versions and under USB3 ports.Now works correct.
> On windows systems usb2can works old driver without any changes.
>
> Gediminas
> 8devices
>
>
>> Hello Bernd,
>>
>> I noticed that there was a firmware update from v1.4 to v1.5 for the 8devices
>> USB2CAN interface:
>>
>> http://8devices.com/usb2can#downloads
>>
>> Do you know if there's any change which would be relevant for the usb_8dev
>> driver in Linux?
>>
>> Will there be an update of the sources at github?
>>
>> Many thanks,
>> Oliver
>>
>>
>> On 17.01.2013 10:03, "Bernd Krumböck" wrote:
>>> Hello!
>>>
>>>
>>> 8 devices (http://www.8devices.com/) allowed me to publish the firmware to
>>> the public:
>>>
>>> firmware:
>>> https://github.com/krumboeck/usb2can_firmware
>>>
>>> canal library:
>>> https://github.com/krumboeck/usb2can_canal
>>>
>>>
>>> Many thanks to 8 devices!
>>>
>>> regards,
>>> Bernd
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-22 12:58 ` Bernd Krumboeck
@ 2014-01-22 14:46 ` Marc Kleine-Budde
2014-01-25 7:04 ` Bernd Krumboeck
0 siblings, 1 reply; 26+ messages in thread
From: Marc Kleine-Budde @ 2014-01-22 14:46 UTC (permalink / raw)
To: Bernd Krumboeck, Gediminas Simanskis, linux-can
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
> 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
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-22 14:46 ` Marc Kleine-Budde
@ 2014-01-25 7:04 ` Bernd Krumboeck
2014-01-25 8:29 ` Brennan Ashton
` (2 more replies)
0 siblings, 3 replies; 26+ messages in thread
From: Bernd Krumboeck @ 2014-01-25 7:04 UTC (permalink / raw)
To: Marc Kleine-Budde, Gediminas Simanskis, linux-can
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:
> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>> 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
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-25 7:04 ` Bernd Krumboeck
@ 2014-01-25 8:29 ` Brennan Ashton
2014-01-25 9:08 ` Bernd Krumboeck
2014-01-25 11:04 ` Oliver Hartkopp
2015-01-30 21:56 ` Oliver Hartkopp
2 siblings, 1 reply; 26+ messages in thread
From: Brennan Ashton @ 2014-01-25 8:29 UTC (permalink / raw)
To: Bernd Krumboeck; +Cc: Marc Kleine-Budde, Gediminas Simanskis, linux-can
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 <krumboeck@universalnet.at> wrote:
> 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:
>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>> 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
>>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-25 8:29 ` Brennan Ashton
@ 2014-01-25 9:08 ` Bernd Krumboeck
2014-01-25 15:55 ` Brennan Ashton
0 siblings, 1 reply; 26+ messages in thread
From: Bernd Krumboeck @ 2014-01-25 9:08 UTC (permalink / raw)
To: Brennan Ashton; +Cc: Marc Kleine-Budde, Gediminas Simanskis, linux-can
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:
> 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 <krumboeck@universalnet.at> wrote:
>> 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:
>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>> 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
>>>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-25 7:04 ` Bernd Krumboeck
2014-01-25 8:29 ` Brennan Ashton
@ 2014-01-25 11:04 ` Oliver Hartkopp
2014-01-25 11:45 ` Oliver Hartkopp
2015-01-30 21:56 ` Oliver Hartkopp
2 siblings, 1 reply; 26+ messages in thread
From: Oliver Hartkopp @ 2014-01-25 11:04 UTC (permalink / raw)
To: Bernd Krumboeck; +Cc: linux-can
[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]
On 25.01.2014 08:04, Bernd Krumboeck wrote:
>
> 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
>
>
Hello Bernd,
many thanks - especially for the flash description above!
Two remarks to your dfu for Linux description:
change "./configure.sh" to "./configure"
A proper patch for removing the vendor check is attached, so that you can
link the patch in your description.
It should appear in this posting e.g. at http://marc.info/?l=linux-can like
the attachment from Gediminas:
http://marc.info/?l=linux-can&m=139036935703648&w=1
here: http://marc.info/?l=linux-can&m=139036935703648&q=p3
Btw. I was not able to update my adapter because it fails at different
percentages of the download - see below. I'll try with another usblib or
another Linux box.
Best regards,
Oliver
# dfu-util -d 0483:df11 -a 0 -D usb2can_1_5.dfu
dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
dfu-util: WARNING: Runtime device already in DFU state ?!?
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash 0"
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (1 elements, total size = 24584)
parsing element 1, address = 0x20006000, size = 24576
Download [========= ] 37% 9216 bytesdfu-util: dfuse_download: libusb_control_transfer returned -9
# _
[-- Attachment #2: dfu-remove-vendor-check.patch --]
[-- Type: text/x-diff, Size: 853 bytes --]
diff --git a/src/main.c b/src/main.c
index 30a9bd8..516a460 100644
--- a/src/main.c
+++ b/src/main.c
@@ -655,16 +655,6 @@ status_again:
break;
case MODE_DOWNLOAD:
- if (((file.idVendor != 0xffff && file.idVendor != runtime_vendor) ||
- (file.idProduct != 0xffff && file.idProduct != runtime_product)) &&
- ((file.idVendor != 0xffff && file.idVendor != dfu_root->vendor) ||
- (file.idProduct != 0xffff && file.idProduct != dfu_root->product))) {
- errx(EX_IOERR, "Error: File ID %04x:%04x does "
- "not match device (%04x:%04x or %04x:%04x)",
- file.idVendor, file.idProduct,
- runtime_vendor, runtime_product,
- dfu_root->vendor, dfu_root->product);
- }
if (dfuse_device || dfuse_options || file.bcdDFU == 0x11a) {
if (dfuse_do_dnload(dfu_root, transfer_size, &file,
dfuse_options) < 0)
^ permalink raw reply related [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-25 11:04 ` Oliver Hartkopp
@ 2014-01-25 11:45 ` Oliver Hartkopp
0 siblings, 0 replies; 26+ messages in thread
From: Oliver Hartkopp @ 2014-01-25 11:45 UTC (permalink / raw)
To: Bernd Krumboeck; +Cc: linux-can
Using a stock debian kernel 3.12-1-686-pae it just worked fine.
Maybe it had something to do with my system upgrade I did at the same time.
So no issue here - sorry for the noise.
Tnx,
Oliver
On 25.01.2014 12:04, Oliver Hartkopp wrote:
> Btw. I was not able to update my adapter because it fails at different
> percentages of the download - see below. I'll try with another usblib or
> another Linux box.
(..)
> parsing element 1, address = 0x20006000, size = 24576
> Download [========= ] 37% 9216 bytesdfu-util: dfuse_download: libusb_control_transfer returned -9
> # _
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-25 9:08 ` Bernd Krumboeck
@ 2014-01-25 15:55 ` Brennan Ashton
2014-01-25 16:55 ` Oliver Hartkopp
0 siblings, 1 reply; 26+ messages in thread
From: Brennan Ashton @ 2014-01-25 15:55 UTC (permalink / raw)
To: Bernd Krumboeck; +Cc: Marc Kleine-Budde, Gediminas Simanskis, linux-can
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 <krumboeck@universalnet.at> wrote:
> 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:
>> 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 <krumboeck@universalnet.at> wrote:
>>> 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:
>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>>> 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
>>>>
>
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-25 15:55 ` Brennan Ashton
@ 2014-01-25 16:55 ` Oliver Hartkopp
[not found] ` <52E4CEA2.5030407@universalnet.at>
0 siblings, 1 reply; 26+ messages in thread
From: Oliver Hartkopp @ 2014-01-25 16:55 UTC (permalink / raw)
To: Brennan Ashton, Bernd Krumboeck
Cc: Marc Kleine-Budde, Gediminas Simanskis, linux-can
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:
> 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 <krumboeck@universalnet.at> wrote:
>> 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:
>>> 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 <krumboeck@universalnet.at> wrote:
>>>> 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:
>>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>>>> 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
>>>>>
>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
[not found] ` <52E4CEA2.5030407@universalnet.at>
@ 2014-01-26 9:22 ` Gediminas Simanskis
2014-01-26 9:38 ` Bernd Krumboeck
0 siblings, 1 reply; 26+ messages in thread
From: Gediminas Simanskis @ 2014-01-26 9:22 UTC (permalink / raw)
To: Bernd Krumboeck, Oliver Hartkopp, Brennan Ashton
Cc: Marc Kleine-Budde, linux-can, Uwe Bonnes
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:
>> 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:
>>> 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 <krumboeck@universalnet.at> wrote:
>>>> 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:
>>>>> 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 <krumboeck@universalnet.at> wrote:
>>>>>> 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:
>>>>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>>>>>> 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
>>>>>>>
>>>>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-26 9:22 ` Gediminas Simanskis
@ 2014-01-26 9:38 ` Bernd Krumboeck
2014-01-26 10:04 ` Gediminas Simanskis
0 siblings, 1 reply; 26+ messages in thread
From: Bernd Krumboeck @ 2014-01-26 9:38 UTC (permalink / raw)
To: Gediminas Simanskis, Oliver Hartkopp, Brennan Ashton
Cc: Marc Kleine-Budde, linux-can, Uwe Bonnes
Hi!
Thank you for the fast response.
Protection against disassembling?
Is it possible to get the key?
regards,
Bernd
Am 2014-01-26 10:22, schrieb Gediminas Simanskis:
> 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:
>>> 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:
>>>> 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 <krumboeck@universalnet.at> wrote:
>>>>> 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:
>>>>>> 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 <krumboeck@universalnet.at> wrote:
>>>>>>> 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:
>>>>>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>>>>>>> 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
>>>>>>>>
>>>>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-26 9:38 ` Bernd Krumboeck
@ 2014-01-26 10:04 ` Gediminas Simanskis
2014-01-26 20:56 ` Bernd Krumboeck
0 siblings, 1 reply; 26+ messages in thread
From: Gediminas Simanskis @ 2014-01-26 10:04 UTC (permalink / raw)
To: Bernd Krumboeck, Oliver Hartkopp, Brennan Ashton
Cc: Marc Kleine-Budde, linux-can, Uwe Bonnes
I still not decided yet.
> Hi!
>
>
> Thank you for the fast response.
>
> Protection against disassembling?
> Is it possible to get the key?
>
>
> regards,
> Bernd
>
>
> Am 2014-01-26 10:22, schrieb Gediminas Simanskis:
>> 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:
>>>> 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:
>>>>> 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 <krumboeck@universalnet.at> wrote:
>>>>>> 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:
>>>>>>> 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 <krumboeck@universalnet.at> wrote:
>>>>>>>> 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:
>>>>>>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>>>>>>>> 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
>>>>>>>>>
>>>>>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-26 10:04 ` Gediminas Simanskis
@ 2014-01-26 20:56 ` Bernd Krumboeck
0 siblings, 0 replies; 26+ messages in thread
From: Bernd Krumboeck @ 2014-01-26 20:56 UTC (permalink / raw)
To: Gediminas Simanskis, Oliver Hartkopp, Brennan Ashton
Cc: Marc Kleine-Budde, linux-can, Uwe Bonnes
I've created a new branch for tests with GNU toolchain.
https://github.com/krumboeck/usb2can_firmware/tree/gcc-test
The code should compile and create a main.bin file.
Missing things:
* Tests on hardware
* Generate CRC16 and replace the last 2 bytes of main.bin
regards,
Bernd
Am 2014-01-26 11:04, schrieb Gediminas Simanskis:
> I still not decided yet.
>
>
>> Hi!
>>
>>
>> Thank you for the fast response.
>>
>> Protection against disassembling?
>> Is it possible to get the key?
>>
>>
>> regards,
>> Bernd
>>
>>
>> Am 2014-01-26 10:22, schrieb Gediminas Simanskis:
>>> 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:
>>>>> 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:
>>>>>> 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 <krumboeck@universalnet.at> wrote:
>>>>>>> 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:
>>>>>>>> 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 <krumboeck@universalnet.at> wrote:
>>>>>>>>> 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:
>>>>>>>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2014-01-25 7:04 ` Bernd Krumboeck
2014-01-25 8:29 ` Brennan Ashton
2014-01-25 11:04 ` Oliver Hartkopp
@ 2015-01-30 21:56 ` Oliver Hartkopp
2015-01-30 22:09 ` Bernd Krumboeck
2 siblings, 1 reply; 26+ messages in thread
From: Oliver Hartkopp @ 2015-01-30 21:56 UTC (permalink / raw)
To: Bernd Krumboeck; +Cc: Gediminas Simanskis, linux-can
[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]
Hi Bernd,
I had an adapter with a firmware < v1.5 here and tried to follow the
documentation at
https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental
Unfortunately the referenced patch at
http://lists.gnumonks.org/pipermail/dfu-util/attachments/20140124/1abbc049/attachment.bin
disappeared ...
I had this patch somewhere on my former laptop and attached it for the records.
As dfu-util moved to to gitorious I cloned the dfu-util master into
https://gitorious.org/dfu-util/8devices-usb2can-dfu-util
an applied the two patches so that this version is able to flash the 8devices
USB2CAN adapter again.
Regards,
Oliver
On 25.01.2014 08:04, Bernd Krumboeck wrote:
> 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:
>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>> 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
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: dfu.patch --]
[-- Type: text/x-patch, Size: 2249 bytes --]
diff --git a/src/dfuse.c b/src/dfuse.c
index 1ee6575..77648c2 100644
--- a/src/dfuse.c
+++ b/src/dfuse.c
@@ -248,6 +248,9 @@ int dfuse_special_command(struct dfu_if *dif, unsigned int address,
}
milli_sleep(dst.bwPollTimeout);
+ if (command == SET_ADDRESS)
+ return ret;
+
ret = dfu_abort(dif->dev_handle, dif->interface);
if (ret < 0) {
errx(EX_IOERR, "Error sending dfu abort request");
@@ -401,11 +404,18 @@ int dfuse_dnload_element(struct dfu_if *dif, unsigned int dwElementAddress,
dwElementAddress + dwElementSize - 1);
}
+ for (p = 0; p < (int)dwElementSize;) {
+ unsigned int address = dwElementAddress + p;
+ segment = find_segment(mem_layout, address);
+ if ((segment->memtype & DFUSE_ERASABLE) && !dfuse_mass_erase) {
+ dfuse_special_command(dif, address, ERASE_PAGE);
+ }
+ p = p + segment->pagesize;
+ }
+
dfu_progress_bar("Download", 0, 1);
for (p = 0; p < (int)dwElementSize; p += xfer_size) {
- int page_size;
- unsigned int erase_address;
unsigned int address = dwElementAddress + p;
int chunk_size = xfer_size;
@@ -414,35 +424,11 @@ int dfuse_dnload_element(struct dfu_if *dif, unsigned int dwElementAddress,
errx(EX_IOERR, "Page at 0x%08x is not writeable",
address);
}
- page_size = segment->pagesize;
/* check if this is the last chunk */
if (p + chunk_size > (int)dwElementSize)
chunk_size = dwElementSize - p;
- /* Erase only for flash memory downloads */
- if ((segment->memtype & DFUSE_ERASABLE) && !dfuse_mass_erase) {
- /* erase all involved pages */
- for (erase_address = address;
- erase_address < address + chunk_size;
- erase_address += page_size)
- if ((erase_address & ~(page_size - 1)) !=
- last_erased_page)
- dfuse_special_command(dif,
- erase_address,
- ERASE_PAGE);
-
- if (((address + chunk_size - 1) & ~(page_size - 1)) !=
- last_erased_page) {
- if (verbose > 2)
- printf(" Chunk extends into next page,"
- " erase it as well\n");
- dfuse_special_command(dif,
- address + chunk_size - 1,
- ERASE_PAGE);
- }
- }
-
if (verbose) {
printf(" Download from image offset "
"%08x to memory %08x-%08x, size %i\n",
[-- Attachment #3: dfu-remove-vendor-check.patch --]
[-- Type: text/x-patch, Size: 853 bytes --]
diff --git a/src/main.c b/src/main.c
index 30a9bd8..516a460 100644
--- a/src/main.c
+++ b/src/main.c
@@ -655,16 +655,6 @@ status_again:
break;
case MODE_DOWNLOAD:
- if (((file.idVendor != 0xffff && file.idVendor != runtime_vendor) ||
- (file.idProduct != 0xffff && file.idProduct != runtime_product)) &&
- ((file.idVendor != 0xffff && file.idVendor != dfu_root->vendor) ||
- (file.idProduct != 0xffff && file.idProduct != dfu_root->product))) {
- errx(EX_IOERR, "Error: File ID %04x:%04x does "
- "not match device (%04x:%04x or %04x:%04x)",
- file.idVendor, file.idProduct,
- runtime_vendor, runtime_product,
- dfu_root->vendor, dfu_root->product);
- }
if (dfuse_device || dfuse_options || file.bcdDFU == 0x11a) {
if (dfuse_do_dnload(dfu_root, transfer_size, &file,
dfuse_options) < 0)
^ permalink raw reply related [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2015-01-30 21:56 ` Oliver Hartkopp
@ 2015-01-30 22:09 ` Bernd Krumboeck
2015-01-31 10:09 ` Oliver Hartkopp
0 siblings, 1 reply; 26+ messages in thread
From: Bernd Krumboeck @ 2015-01-30 22:09 UTC (permalink / raw)
To: Oliver Hartkopp; +Cc: Gediminas Simanskis, linux-can
Hi Oliver!
dfu-util 0.8 should be able to patch the adapter:
http://dfu-util.sourceforge.net/releases/dfu-util-0.8.tar.gz
At least when 8devices corrected the device identifier in the provided firmware image.
Sadly I have no time to test it myself. :-(
Maybe in a month.
regards,
Bernd
Am 2015-01-30 um 22:56 schrieb Oliver Hartkopp:
> Hi Bernd,
>
> I had an adapter with a firmware < v1.5 here and tried to follow the documentation at
>
> https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental
>
> Unfortunately the referenced patch at
> http://lists.gnumonks.org/pipermail/dfu-util/attachments/20140124/1abbc049/attachment.bin
> disappeared ...
>
> I had this patch somewhere on my former laptop and attached it for the records.
>
> As dfu-util moved to to gitorious I cloned the dfu-util master into
>
> https://gitorious.org/dfu-util/8devices-usb2can-dfu-util
>
> an applied the two patches so that this version is able to flash the 8devices USB2CAN adapter again.
>
> Regards,
> Oliver
>
> On 25.01.2014 08:04, Bernd Krumboeck wrote:
>> 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:
>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>> 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
>>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: usb_8dev: firmware and windows library
2015-01-30 22:09 ` Bernd Krumboeck
@ 2015-01-31 10:09 ` Oliver Hartkopp
0 siblings, 0 replies; 26+ messages in thread
From: Oliver Hartkopp @ 2015-01-31 10:09 UTC (permalink / raw)
To: Bernd Krumboeck; +Cc: Gediminas Simanskis, linux-can
Hi Bernd,
On 30.01.2015 23:09, Bernd Krumboeck wrote:
> dfu-util 0.8 should be able to patch the adapter:
> http://dfu-util.sourceforge.net/releases/dfu-util-0.8.tar.gz
ok.
>
> At least when 8devices corrected the device identifier in the provided
> firmware image.
At least for the 1.4 version the way below worked.
If there is another 1.4 I can try the dfu-util 0.8 first.
> Sadly I have no time to test it myself. :-(
> Maybe in a month.
I also have some open projects for 'maybe in a month' ;-))
Thanks,
Oliver
>
> Am 2015-01-30 um 22:56 schrieb Oliver Hartkopp:
>> Hi Bernd,
>>
>> I had an adapter with a firmware < v1.5 here and tried to follow the
>> documentation at
>>
>> https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental
>>
>>
>> Unfortunately the referenced patch at
>> http://lists.gnumonks.org/pipermail/dfu-util/attachments/20140124/1abbc049/attachment.bin
>>
>> disappeared ...
>>
>> I had this patch somewhere on my former laptop and attached it for the records.
>>
>> As dfu-util moved to to gitorious I cloned the dfu-util master into
>>
>> https://gitorious.org/dfu-util/8devices-usb2can-dfu-util
>>
>> an applied the two patches so that this version is able to flash the
>> 8devices USB2CAN adapter again.
>>
>> Regards,
>> Oliver
>>
>> On 25.01.2014 08:04, Bernd Krumboeck wrote:
>>> 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:
>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote:
>>>>> 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
>>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2015-01-31 10:09 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-17 9:03 usb_8dev: firmware and windows library "Bernd Krumböck"
2013-01-17 16:32 ` Oliver Hartkopp
2013-01-17 20:24 ` Robert Schwebel
2013-01-18 10:43 ` Uwe Bonnes
2014-01-21 11:50 ` Oliver Hartkopp
2014-01-21 11:57 ` Gediminas Simanskis
2014-01-21 12:19 ` bon
2014-01-21 16:03 ` Gediminas Simanskis
2014-01-21 16:07 ` bon
2014-01-22 5:42 ` Gediminas Simanskis
2014-01-22 12:58 ` Bernd Krumboeck
2014-01-22 14:46 ` Marc Kleine-Budde
2014-01-25 7:04 ` Bernd Krumboeck
2014-01-25 8:29 ` Brennan Ashton
2014-01-25 9:08 ` Bernd Krumboeck
2014-01-25 15:55 ` Brennan Ashton
2014-01-25 16:55 ` Oliver Hartkopp
[not found] ` <52E4CEA2.5030407@universalnet.at>
2014-01-26 9:22 ` Gediminas Simanskis
2014-01-26 9:38 ` Bernd Krumboeck
2014-01-26 10:04 ` Gediminas Simanskis
2014-01-26 20:56 ` Bernd Krumboeck
2014-01-25 11:04 ` Oliver Hartkopp
2014-01-25 11:45 ` Oliver Hartkopp
2015-01-30 21:56 ` Oliver Hartkopp
2015-01-30 22:09 ` Bernd Krumboeck
2015-01-31 10:09 ` Oliver Hartkopp
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.