.hex and .bin files - Analog 1

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

.hex and .bin files - Analog 1

Post by RubberDuck » Tue 27. Jun 2017, 15:39

The objective is to load the new code onto the Micromod.

We are using the Analog 1 to output signals, since we were unable to create the design we needed with the configuration tool, we looked into code examples and began working with these.

The problem is that the flashing tools within the software are looking for a ".bin or .hex" to load this on the micro controller. What can you use to convert the files from .c to .hex or .bin. Is there are advantages to .bin over .hex?

Then we noticed the MicroMod_Flash_Howto.txt asks for these files Which I was not able to find
- pcan2.cpl
- canapi2.dll
- Netcfg32.exe
- CAN2Flash.exe
- can2f.ini
- MicroModXXX.bin (Firmware binary)

It appears there is two flashing tools; the "PcanFlash.exe" and "Flash.exe" ...

I am confused and not sure what is the next step...

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

Re: .hex and .bin files - Analog 1

Post by M.Maidhof » Tue 27. Jun 2017, 16:06

Hi,

please see manual of PCAN-MicroMod on page 18:

http://www.peak-system.com/produktcd/Pd ... an_eng.pdf

You need the Softune Compiler Tool from Cypress/Spansion/Fujitsu. Available through the distributors of those microcontrollers here in Europe.

regards

Michael.

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

Re: .hex and .bin files - Analog 1

Post by RubberDuck » Tue 27. Jun 2017, 18:05

Great,

Thanks Michael, this looks perfect. The problem we are having is that the software is very hard to find. If this software is available through the distributor do you suggest reaching out to them directly?

Sincerely

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

Re: .hex and .bin files - Analog 1

Post by M.Maidhof » Wed 28. Jun 2017, 09:46

Hi,

yes, as written by email, please contact your local distributor of Cypress/Spansion/Fujitsu microcontrollers MB90F497G and ask for the Softune Workbench. Here in Germany you will get it for free on DVD, don´t know how it is handled in your country.

regards

Michael

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

Re: .hex and .bin files - Analog 1

Post by RubberDuck » Wed 5. Jul 2017, 16:00

Thank you,

We have got the software. I wanted to ask how you flash the controller. The Develop C examples include header files ... how are these handled? Are you only flashing the main file (the PCAN-MicroMod-Firmware Upload does not go into much detail here)?

Sincerely,
Dylan

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

Re: .hex and .bin files - Analog 1

Post by M.Maidhof » Thu 6. Jul 2017, 10:13

Hi,

you can flash the *.mhx file (build by the compiler) through the Fujitsu Flash tool (serial based) which you will find on our product CD. Or you can use the mot2bin converter (which you will find in the \Release\ABS directory of the sample codes) to build a *.bin file, which could be flashed through CAN using our PCAN-Flash tool. Please see manual of PCAN-Flash in the MicroMod directory of our CD:

http://www.peak-system.com/produktcd/

see: \Develop\Microcontroller hardware\PCAN-MicroMod\

Here the flash instructions for the Fujitsu tool (serial connection or Evalboard necessary): http://www.peak-system.com/produktcd/De ... ad_eng.pdf

Here the flash instructions for the CAN basd PCAN-Flash tool: http://www.peak-system.com/produktcd/De ... ct_eng.pdf

regards

Michael

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

Re: .hex and .bin files - Analog 1

Post by RubberDuck » Tue 11. Jul 2017, 14:59

Dear Michael,

Thank you for that Information. I do not think my question was clear. I understand the method with a .mhx file the PEAK manuals are very good. I was still stuck with the C Compiler tool Fujitsu I've been working through the manual. You mentioned that the C compiler was necessary to generate the .mhx files.

Do you have any advice?

Much Appreciated!

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 12. Jul 2017, 08:21

Yes, to compile a C file you need the C-Compiler.
As Michael wrote, please contact your local distributor of Cypress/Spansion/Fujitsu microcontrollers MB90F497G and ask for the Softune Workbench.
--------------------------------
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 » Wed 12. Jul 2017, 14:55

I finally did received the workbench with the C compiler Language tool, from Cypress directly. I have been looking through the C compiler manual (356 pages) it does not mention .mhx files at all.

Is there something I am missing?

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 12. Jul 2017, 15:54

After you get and install the Softune Workbench Compiler from your Distributor for the Module,
(be sure you heve the right compiler! - The setup is named "softune_setup_revxxxx.exe)
load one of our sample projects and run the build. After that you will find in the "Release\ABS\" directory the mhx file.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply