Page 1 of 1

Demo Firmware Compiling Problems under Win Vista/7

Posted: Mon 19. Mar 2012, 17:37
by M.Gerber
Hello PCAN-Router Customers!

If you try to compile the demo firmware for the PCAN-Router under Windows Vista or Windows 7 as described in the user manual, you may run into the following problems:
  1. [Win Vista/7 32-bit/64-bit]
    When running "make all", the process is stopped with an "Error 126" message.
  2. [Win Vista/7 64-bit only]
    Windows shows a message box that the 16-bit program hex2bin.exe is incompatible with the 64-bit versions of Windows.
To overcome these problems, you can update parts of the toolchain:
  1. Download the following two ZIP packages:
    Replacement_WinARM-make.zip
    Replacement for make tool in the WinARM package
    (923.49 KiB) Downloaded 1003 times
    The corresponding sourcecode is available in the following linked places:
    make 3.82-5, libgcc 4.6.2-1, libiconv 1.14-2, libintl 0.18.1.1-2
    Replacement_hex2bin.zip
    Replacement for the hex2bin tool in the firmware project's directory (Hex2bin 1.0.9)
    (11.34 KiB) Downloaded 1145 times
  2. Extract the contents (including subdirectory structure!) of Replacement_WinARM-make.zip into the directory where your WinARM installation resides. This should be the root directory of C:\.

    This replaces the existing make tool with a fairly new one from the MinGW project and adds three needed DLLs.
  3. Extract the contents of Replacement_hex2bin.zip to the firmware project's directory.

    This replaces the vintage 16-bit hex2bin tool with a recent 32-bit version from the Hex2bin project.
  4. Edit the Makefile in the firmware project's directory in order to adapt the parameters for the hex2bin tool to the new version.
    Search for the following line:

    Code: Select all

      $(HEX2BIN) temp.hex temp.bin I 0000 FFFF 2
    Replace it by this one:

    Code: Select all

      $(HEX2BIN) -s 0000 temp.hex
Note: This solution is not tested extensively yet and may not help in all cases. Please give us feedback if there are still problems with our demo firmware projects.

Greetings
Mark

Integrate hex2bin into WinARM installation

Posted: Wed 4. Apr 2012, 15:47
by M.Gerber
Hi!

Here's a little modification to the first posting.

Of course you can also integrate the hex2bin tool into the WinARM installation (WinARM/utils/bin/) and remove the tool from each project's directory. This would facilitate the maintenance of several projects, since you don't need to update hex2bin in each single project.

The following package merges the two packages from above:
WinARM-Modifications_PEAK-System.zip
(935.49 KiB) Downloaded 1020 times
Greetings
Mark

Re: Demo Firmware Compiling Problems under Win Vista/7

Posted: Mon 8. Jul 2013, 08:36
by PEAK-Support
The latest PCAN-Router package have the new compiler included. Please use this Downloadlink. It includes the Compiler, Libs, Doku and Sample Source Code.