.hex and .bin files - Analog 1

Universal I/O Module with CAN Interface
RubberDuck
Posts: 8
Joined: Tue 27. Jun 2017, 14:57

Re: .hex and .bin files - Analog 1

Post by RubberDuck » Tue 18. Jul 2017, 17:24

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
Attachments
Capture.PNG
Capture.PNG (73.4 KiB) Viewed 12833 times

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: .hex and .bin files - Analog 1

Post by PEAK-Support » Tue 18. Jul 2017, 19:03

please use the project files that we provide with the samples - thats why we build them.

Code: Select all

MM_Demo.prj
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
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

RubberDuck
Posts: 8
Joined: Tue 27. Jun 2017, 14:57

Re: .hex and .bin files - Analog 1

Post by RubberDuck » Tue 25. Jul 2017, 14:55

I am getting errors when trying to build the example you mentioned...

Here is the list
Attachments
Capture1.PNG
Capture1.PNG (48.99 KiB) Viewed 12815 times

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: .hex and .bin files - Analog 1

Post by PEAK-Support » Wed 26. Jul 2017, 09:17

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.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

RubberDuck
Posts: 8
Joined: Tue 27. Jun 2017, 14:57

Re: .hex and .bin files - Analog 1

Post by RubberDuck » Thu 27. Jul 2017, 14:49

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
Attachments
Capture2.PNG
Capture2.PNG (58.4 KiB) Viewed 12796 times

M.Maidhof
Support
Support
Posts: 1748
Joined: Wed 22. Sep 2010, 14:00

Re: .hex and .bin files - Analog 1

Post by M.Maidhof » Thu 27. Jul 2017, 16:39

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

Post Reply