Demo Firmware Compiling Problems under Win Vista/7
Posted: Mon 19. Mar 2012, 17:37
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:
Greetings
Mark
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:
- [Win Vista/7 32-bit/64-bit]
When running "make all", the process is stopped with an "Error 126" message. - [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.
- Download the following two ZIP packages:
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
- 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. - 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. - 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:Replace it by this one:Code: Select all
$(HEX2BIN) temp.hex temp.bin I 0000 FFFF 2
Code: Select all
$(HEX2BIN) -s 0000 temp.hex
Greetings
Mark