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

Mon 51 8051

Hi there,
I am using a Cypress Fx2 chip which has an enhanced 8051. I am able to debug using the mon51 mon-ext-sio0-c0.hex supplied from Cypress. This version uses sio0 and external memory from 0xc000-0xcf75.
The Problem is that the working monitor starts the CPU with 12Mhz. But I need 24Mhz. As soon as I switch the clk I loose my serial connection (since the Baudrate changes). How can I configure the Monitor firmware to start with 24Mhz?
I tried to configure mon51 as described in the Keil documentation, but I never got one working at all. Any suggestions on getting those to work in general are welcome.
Thanks in advance,

Wallace

  • The Problem is that the working monitor starts the CPU with 12Mhz. But I need 24Mhz. As soon as I switch the clk I loose my serial connection (since the Baudrate changes). How can I configure the Monitor firmware to start with 24Mhz?

    Uhhh. Since the baudrate is a multiple of the clock. And since, you're doubling the clock. Does it make sense that the baudrate would double as well? Have you tried to communicate with the board at 2x the baudrate for 12MHZ?

    Jon

  • Hi,
    the problem is that the monitor connection is lost when I switch the CPU speed. Therefore I loose my Debugging connection. Reconnecting at a higher speed (if it would work)would start to download the firmware again.
    I need a monitor firmware that starts the CPU with 24Mhz with that I don't have to switch the speed and my debugger connection will not be lost.
    I appreciate any suggestions,

    Wallace

  • I had the same problem and I made a workaround - the first line of code before actual switching to 24MHz changed timer reload value to the new one...and never break between those two...

    - Dejan