Page 1 of 1

Flashing tool with Linux RPI

Posted: Mon 17. May 2021, 15:19
by remi.deparis@stellantis.com
Hello
I current want to use the PCAN Router FD for an industrial solution for Automotiv Test Bench.
Our current soution is based on LPC1768(NXP) for 2 CAN Simulatiors and an Raspberry(RPI) for graphical HMI interface.
Both Ecus communicates throw serial connection (UART).

We have actually 80 Samples of this setup and we want to replace LPC1768 by "PCAN router FD" in order to integrated CAN FD in our network.

2 problems appends :
Flash tool seams only available on Windows (we actually manage upgrade LPC1768 binary with RPI over serial and USB comm )
Flash tool seams only available on PCAN- CAN1 communication (not on Serial port).

Do you imagine any proposition to solve those problematics

Re: Flashing tool with Linux RPI

Posted: Tue 18. May 2021, 15:55
by M.Heidemann
Hello,

flashing via UART will not be possible, however there was
a LINUX-flash tool written for flashing via CAN in Linux.
https://forum.peak-system.com/viewtopi ... =34&t=1818

I will check back with our developers how one can integrate PCAN-Router FD into this application,
seems like the hardware needs to be defined as it was not yet integrated into this tool.

We will report back to your regarding this.

Best Regards

Marvin

Re: Flashing tool with Linux RPI

Posted: Wed 19. May 2021, 11:24
by remi.deparis@stellantis.com
Hello thanks à lot for your feed back
Flash over uart is not possible but over your serial (rs232) port is it possible?
Otherwise i need to use the CAN port which is already used by the environnent simulation.
If it is not possible, you may imagine this CAN1 will be used to spread periodical CAN signal. Does it not disturbe the update if it is in the same time?

Re: Flashing tool with Linux RPI

Posted: Wed 19. May 2021, 11:45
by M.Heidemann
Hello,

Reflashing the device while in use will not possible,
to flash new firmware onto the device it needs to enter bootloader-mode,
in which it will not execute any logic defined in firmware.

Please see chapter 6 "Firmware-Upload" of the PCAN-Router FD
documentation:

https://www.peak-system.com/produktcd/P ... an_eng.pdf

Ideally the device is flashed and then introduced to an production-environment,
as we do not know the messages used in your application we cannot exclude interence
on your bus caused by the firmware-flashing procedure.

The RS-232 interface available on the PCAN-Router FD is not intended for the flashing of firmware.

Like mentioned earlier i will be in contact with our development-team regarding the use of the Linux-flash
tool to flash firmware onto the PCAN-Router FD, however this will enable flashing via CAN as it is done
on Windows.

Best Regards

Marvin

Re: Flashing tool with Linux RPI

Posted: Wed 19. May 2021, 12:51
by M.Heidemann
Hello,

I have talked to our developers.

We do not maintain the codebase for the linux flash tool and do not provide
support for it.

However you can, as it hosted on github, extend the software
for your usecase. One appraoch would be to trace a flash procedure on a windows system and implement
your solution based on that.

viewtopi ... =34&t=1818

A windows system for flashing the PCAN-Router FD is listed as a requirement in the
manual, which is available online:

https://www.peak-system.com/produktcd/P ... an_eng.pdf


Best Regards

Marvin

Re: Flashing tool with Linux RPI

Posted: Sun 31. Oct 2021, 15:10
by O.Hartkopp
Hello Marvin,

from the list of supported PEAK hardware I got from Philipp when creating the Linux pcanflash tool the PCAN-Router FD should work.
I will get my own PCAN-Router FD next week and try it on my own (as I need to flash this device from Linux too).

Will post the results if it works - or contact Phillipp if it fails :-D

Best regards,
Oliver

Re: Flashing tool with Linux RPI

Posted: Mon 1. Nov 2021, 19:26
by O.Hartkopp
Long story short: I does not work right now :(

The PCAN-Router FD is hardware type 40.

And the flash block description in pcanhw.c is unfortunately empty:

Code: Select all

const fblock_t hw40[] = {};
:roll:

Regards,
Oliver

Re: Flashing tool with Linux RPI

Posted: Wed 3. Nov 2021, 08:14
by O.Hartkopp
Good news!

I was able to flash the PCAN Router FD yesterday due to several updates and hints from the PEAK colleagues (Thanks!!).

The URLs and documentation(!) is still the same:

viewtopic.php?f=34&t=1818

I assume some more improvements to land in the code the next days - but it should do the job for normal application flashing.