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

Keil monitor and EZ-USB

The project requires the use of both uarts on the Cypress EZ-USB chip, so the monitor must use an extra, external uart, and a custom monitor is required. Unfortunately the monitor toolkit that comes with the Cypress Dev Kit is a little different to that supplied elsewhere. Has anyone out there in cyberspace done this job, I have a multitude of questions.

Parents
  • processor to 48 meg
    you are talking about FX or FX2 aren't you?

    Stepping and run til break is not the problem. The main thing is that you won't be able to stop the cpu. This always require one of the serial irqs. The only other thing is to rewrite the serial irq handling. You may take a look into mon51 lib with an OMF dissassembler or ask Keil for the source.

    Without a new handler you need to reset the cpu which of course stops the usb connection. The best thing might be to use one internal UART for the mon and use the external for normal IO.
    This is how I did it here with special debug builds and special debug HW. It will be much more stable and painless than any other solution.
    Understanding Mon51 is not trivial and in conjunction with the EZUSB chips it will be a real pain.

    BTW:
    the monitor does not handle any of the usb requests thats completely up to you. IF you don't use the Reenum Feature all requests will be handled by usb core.
    If you are doing Reenum at startup you get a new device and all requests are handled by your firmware.

    Thomas

Reply
  • processor to 48 meg
    you are talking about FX or FX2 aren't you?

    Stepping and run til break is not the problem. The main thing is that you won't be able to stop the cpu. This always require one of the serial irqs. The only other thing is to rewrite the serial irq handling. You may take a look into mon51 lib with an OMF dissassembler or ask Keil for the source.

    Without a new handler you need to reset the cpu which of course stops the usb connection. The best thing might be to use one internal UART for the mon and use the external for normal IO.
    This is how I did it here with special debug builds and special debug HW. It will be much more stable and painless than any other solution.
    Understanding Mon51 is not trivial and in conjunction with the EZUSB chips it will be a real pain.

    BTW:
    the monitor does not handle any of the usb requests thats completely up to you. IF you don't use the Reenum Feature all requests will be handled by usb core.
    If you are doing Reenum at startup you get a new device and all requests are handled by your firmware.

    Thomas

Children