904 Views 14 Replies Last post: Mar 11, 2010 6:28 AM by noussaier RSS
noussaier Newbie 12 posts since
Mar 3, 2010
Currently Being Moderated

Mar 3, 2010 2:35 PM

Comment programmer le micro M16C/62P ?

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.

SHIBBY Newbie 3 posts since
Oct 13, 2007
Currently Being Moderated
Mar 3, 2010 11:06 PM in response to: noussaier
Re: Comment programmer le micro M16C/62P ?

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

SHIBBY Newbie 3 posts since
Oct 13, 2007
Currently Being Moderated
Mar 4, 2010 1:13 PM in response to: noussaier
Re: Comment programmer le micro M16C/62P ?

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)

FrankL Apprentice 1,100 posts since
Mar 16, 2009
Currently Being Moderated
Mar 4, 2010 12:50 AM in response to: noussaier
Re: Comment programmer le micro M16C/62P ?

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.

FrankL Apprentice 1,100 posts since
Mar 16, 2009
Currently Being Moderated
Mar 5, 2010 12:29 AM in response to: noussaier
Re: Comment programmer le micro M16C/62P ?

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.

FrankL Apprentice 1,100 posts since
Mar 16, 2009
Currently Being Moderated
Mar 8, 2010 12:25 AM in response to: noussaier
Re: Comment programmer le micro M16C/62P ?

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.

FrankL Apprentice 1,100 posts since
Mar 16, 2009
Currently Being Moderated
Mar 8, 2010 2:31 AM in response to: noussaier
Re: Comment programmer le micro M16C/62P ?

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.

FrankL Apprentice 1,100 posts since
Mar 16, 2009
Currently Being Moderated
Mar 11, 2010 2:36 AM in response to: noussaier
Re: Comment programmer le micro M16C/62P ?

Nothing about RESET. The reset signal must be "H" as the processor is executing a software.

More Like This

  • Retrieving data ...

Bookmarked By (0)