Page 2 of 2
Re: .hex and .bin files - Analog 1
Posted: Tue 18. Jul 2017, 17:24
by RubberDuck
Thank you,
I am working with the examples provided in the Develop area (Variable CAN Queues).
After adding the Source and Header files to the Project and attempting to compile, I am recieving hundreds of very weird compiling errors..
How can this be handled? Many error description say "Syntax error near '/' " so it is hard to say what to fix...
Thanks again,
Dylan
Re: .hex and .bin files - Analog 1
Posted: Tue 18. Jul 2017, 19:03
by PEAK-Support
please use the project files that we provide with the samples - thats why we build them.
works like a charm - hundreds of users have it done this way without any problem.
You also could generate a own project and workspace file from scretch..but then you must know
exactly what you do...thinks like this
Code: Select all
[CPUTYPE-Release]
CsvFile=Lib\907\907.csv
CpuName=MB90F497
ChgChipInfo-0=5@0x000000:0x000000:0x000000:0x000000:0x000100:0x0008FF
Count=1
Re: .hex and .bin files - Analog 1
Posted: Tue 25. Jul 2017, 14:55
by RubberDuck
I am getting errors when trying to build the example you mentioned...
Here is the list
Re: .hex and .bin files - Analog 1
Posted: Wed 26. Jul 2017, 09:17
by PEAK-Support
As you could see, these are warnings - no errors. Your code is generated and could be used.
The warnings come up because our LIBs are RELEASE Libs no DEBUG LIBs.
Simply ignore these warnings - also the W1369 Warnings - they do not care.
Re: .hex and .bin files - Analog 1
Posted: Thu 27. Jul 2017, 14:49
by RubberDuck
Thank you for confirming this,
The next step forward is flashing the peak.
It was decided not to use the fuijitsu flash tool as we do not have an evaluation board. Instead we will use PCAN-Flash.
From my understanding PCAN-Flash uses a .bin file...
How is the file converter to bin? Is it mot2bin.exe
If so, how is mot2bin.exe implemented? Is it selected as "Program" for "Converter" in "Options" window.
If so, is parameter necessary?
What is used as "Filename" in "Options" window? The browse button only looks for ".hex, .bin, .h86" so can .hex be selected, (i.e. C:\Users\dbistany\Downloads\pcanmicromod\Develop\Examples\Demo05_timer\Release\ABS\MM_Demo.mhx)
Thanks
Re: .hex and .bin files - Analog 1
Posted: Thu 27. Jul 2017, 16:39
by M.Maidhof
Hi,
mot2bin.exe is a command line tool, call it in a command window or through a batch file:
mot2bin.exe myhexfile.mhx
it will generate a myhexfile.bin than
don“t forget to delete the old *.bin before
In our demo project you will find a f.bat to generate the necessary bin file. See \Release\ABS folder for more details.
regards
Michael