.hex and .bin files - Analog 1
-
- Posts: 8
- Joined: Tue 27. Jun 2017, 14:57
.hex and .bin files - Analog 1
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...
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...
Re: .hex and .bin files - Analog 1
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.
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.
-
- Posts: 8
- Joined: Tue 27. Jun 2017, 14:57
Re: .hex and .bin files - Analog 1
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
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
Re: .hex and .bin files - Analog 1
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
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
-
- Posts: 8
- Joined: Tue 27. Jun 2017, 14:57
Re: .hex and .bin files - Analog 1
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
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
Re: .hex and .bin files - Analog 1
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
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
-
- Posts: 8
- Joined: Tue 27. Jun 2017, 14:57
Re: .hex and .bin files - Analog 1
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!
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!
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: .hex and .bin files - Analog 1
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.
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
-
- Posts: 8
- Joined: Tue 27. Jun 2017, 14:57
Re: .hex and .bin files - Analog 1
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?
Is there something I am missing?
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: .hex and .bin files - Analog 1
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.
(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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------