Bonjour,
Je veux injecter dans le microcontroleur M30626FHPGP (100 Pins) un programme .hex ou .bin via une communication série (RS232) et ceci en utilisant l'Hyperterminal.
Je veux connaitre la configuration et les étapes necessaires pour ce faire.
Cordialement.
Bonjour noussaier,
Je crains que vous n'ayez pas beaucoup de réponses en postant une question en français.
Ce document devrait vous intéresser: http://documentation.renesas.com/eng/products/mpumcu/apn/reg05b0025_m16c62pap.pdf
Bonjour Shibby,
Merci pour votre lien. à propos de ma langue j'ai des lacunes en Anglais mais qu'en meme je vais essayer. Le document contenu dans le lien comprend un menu qui doit etre affiché par l'Hyperterminal. Mon problème c'est de trouver la connexion necessaire avec la liaison RS232 pour pouvoir afficher le menu.
Cordialement.
Si je comprend bien, c'est un problème matériel.
Il suffit d'intercaler un convertisseur TTL/RS232 entre le microcontrôleur et le port série, comme un MAX232 par exemple: http://sodoityourself.com/max232-serial-level-converter/
Autre solution, si vous n'avez pas de port série sur l'ordinateur, c'est un convertisseur USB/UART qui remplace le MAX232: http://www.ftdichip.com/Documents/DataSheets/DS_FT232R_V205.pdf (page 30)
Merci bien Shibby,
C'est vraiment c'est ce que je cherche. Je vais réaliser ce circuit (comprenant le MAX232). Je crois bien qu'elle va marcher. En tout cas je vais vous répondre après le test.
Merci
Hello Noussaier,
I'm sorry, but my French is not good enough to answer in this language.
What do you want to do? Do you want to do the initial programming of the device via UART?
Will the device use the on-chip flash boot loader for programming?
If so, why don't you simply use FDT (http://www.renesas.com/products/tools/flash_prom_programming/fdt/flash_development_toolkit_tools_product_landing.jsp) or FlashSta (http://www.renesas.com/products/tools/flash_prom_programming/flash_programmers/m3a_0806/m3a_0806.jsp)?
Both can program M16C device via UART, and FlashSta is available as a Visual Studio 6 project, so you can adopt it to your needs.
It is possible to do it via Hyperterminal, but I think it is not very convenient. The main problem will be that you cannot send the hex-file as a whole to the device, but have to separate it in blocks of 256 byte, send each such block with a program command to the device and wait that programming is finished.
Hello FrankL,
Thank you for your answer. I'm also not good in English but i will try to understand you. I would like to inject in the microcontroller in-cicuit a .hex or .bin program. This will be realised with the assistance of BootLoader via a serial communication (RS232).This is my general idea. Concerning the FDT i'm not sure if it necessite to use a programmer like E8 or Flasher of Renesas, or simply we can use it via a serial communicarion (RS232) knowing that the size of the hex file is smaller than 256 byte ????
FDT does not need E8a or any other hardware. It can use a PC COM-port directly. And if you use a USB-RS232 converter, this will have a Windows driver to provide a simulated COM-port on the PC.
This 256 byte block size is only of concern if you program "manually" from Hyperteminal. If you use FDT there is no limitation, and FDT will take care of the block sizes in the communication.
Thank you FrankL,
There is another "problem": to communicate the microcontroller with the PC via the RS232, what are the necessary pins of the micro that must be connected except the Tx, Rx, Gnd and Vcc pins ???? i don't know if the CNVSS, RESET ... Pins must be connected or no, if so what are their equivalent of pins in the serial cable.????
Thanks.
The only coprresponding pin is GND in the srial cable (pin 1).
CNVss, P50 and P55 must be connected in your hardware to the correct level. They cannot be switched automatically via serial cable.
The German guy Ingo Busker developped the M16C-Flasher (http://www.m16c-flasher.de/), a software that can also program M16C devices via UART. And he also has a proposal how to use RTS and DTR on the RS-232 connector to switch the processor to flash programming mode.
until now i understand how to use Rx, Tx and Gnd of the serial cable. But i don't know how to use CNVSS, P55 and P50. Besides the proposal cicuit of the M16C-Flasher i don't understand it. Thank you to explain me more about how to connect the pins of the serial cable to the pins of the micro and how use the M16-Flasher to inject a .hex file on the micro.
Thank you.
The easiest way is to fix P50 to "H" and P55 to "L", put a pull-down on CNVss and use a jumper to connect CNVss to "H" if you want to program the device.
what about the pin "reset" before and when programming the micro ?
Nothing about RESET. The reset signal must be "H" as the processor is executing a software.
Thank you Frank,
After testing different connections, the micro emits an ambiguous signal. I still have a little doubt concerning the connection between the different pins . This link contain the electrical schematic of the carte containing the micro.http://dc197.4shared.com/download/238964136/a3d26eec/100989999-4a_SCM_CS7002_.pdf?tsid=20100311-083657-79782011http://www.4shared.com/dir/21897660/4a671fc9/sharing.html
Please send me the necessary connections (circuit) that i must realise it to program my micro.
Notes: The module IC3 is the micro, i will acced to the Pins of the micro by the connector 19.
Thanks a lot.
©2003–2009 Renesas Technology Corp. All rights reserved. Using Our Website | Privacy
Contact us