This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

rs232

I would like to program an 8051 development board using Keil and was wondering if it was at all possible to send a hex file (flash the ucontroller) via the rs232 serial com port. Could anyone tell me the options for doing this? Thanks

  • That depends completely on what development board and what processor that is used on the board.

    Some processors do support rs232 programming. Some don't. And the processos who do support serial in-system programming can have varying baudrates, protocols, programs, file formats, ...

  • I have a development board which has a 89s2051 used as a uart in order to send the file to an at89s4051. Is it possible? Or do I need a third party downloader?

  • 89s2051 ... at89s4051. Is it possible? Or do I need a third party downloader?
    these Arghmel chips are "SPI ICP" and require FLIP (free) and a download cable (I believe $25) both available from Arghmel. Or you can make the cable yourself and come back here with a post "why does the cable I build from a working design I found in tjhe internot not work" It seems that all "internet available designs" have some flaw or other, otherwise there would not be 100s of posts "why does the cable I build not work" in the various fora. Oddly enough such threads often include posts "this design works for me" so it seems that building such and find it working for you will be the luck of the draw.

    If you change to RS232 ISP chips (e.g. P89V51RD2, P89C66x. P89LPC92x- up) you can programe via the serial port.

    Erik

  • Hi Erik, thanks for the response.

    AT89S4051 is an ISP chip, so what would the change to the LPC's be necessary for? I gather you're familiar with Keil, let me see, when you click on Flash > Configure Flash Tools > Utilities, there is an option 'Use External Tool For Flash Programming' with a 'Command' text box which appears to let you open various files. Underneath this is an 'Argument' text box. do you know what these are used for, how they are implemented etc?

  • AT89S4051 is an ISP chip, so what would the change to the LPC's be necessary for

    necessary, hardly. BUT if you do not want to use the Arghmel download cable, the NXP chips program through the UART which you (in most cases) will have intefaced to RS-232 anyhow.

    when you click on Flash > Configure Flash Tools > Utilities,
    I would'nt have the foggiest Idea. While I use the Keil compiler/assembler/linker extensively. The IDE is totally incabable of doing what I need and thus I do not use it.

    Erik

  • Thanks Erik

    What software do you use to download the hex file onto the NXP chips. I believe FLIP doesn't support these chips.