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

Cypress EZUSB-FX USB disconnect and uVision2 Debugger

I just purchased the C51 development kit, with uVision V4.20a. I had an older version that came with the Cypress EZUSB-FX development kit.

The following code, which disconnects and then reconnects from the USB, used to work with the old debugger.

USBCS |= bmDISCON;
EZUSB_Delay(1000);
USBCS &= ~bmDISCON;

With the new development system, when the line
USBCS &= ~bmDISCON;
executes, my program somehow breaks and the PC gets set to 0x8000. There are no breakpoints set. My code resides at 0x2000-0x4FFF. The interrupts begin at 0 and CODE 0x0000 is a LJMP 0x3B27, which is the address of the startup code. This used to work fine. What has changed? Why is the PC being set to 0x8000, there are no custom STARTUP.A51 or .INI files in this project.

0