USB on LPC2148 power-on starting address
2005-10-12 by jp_thrower
I'm evaluating the Keil MCB2140 board and uVision3 to read serial input and transmit it to the USB port of a PC. Seeing as how Keil generously already wrote software to mount an MCB2140 as a USB HID device and separately to communicate with interrupts via UART, you'd think this would be easy. It's not for me. I've pasted the two programs together and I'm tracking down a resulting bug that locks up the system. The bug is a result of some memory location being incorrect. I can't say too much on the bug itself because I can't trace the program from the moment of power-on. That is where I need help. The USB operation requires unplugging the USB cable to the board and plugging it back in so that the USB PC host will begin communication. Since this powers off and on the board, I expected the board to reset at 0x0. Again, I was wrong. Power-on does not do what pressing reset does. I'm guessing that the bootloader (v2.11) remaps something, but I really don't know. There is no battery visible on the board to preserve a volitile memory location, and the bug appears whether the JTAG is connected or not (to weed out JTAG power preserving state). Does anyone have suggestions, keywords to search for, or articles to help me understand power-on operation and how to trace it? Thanks, JP PS: Unfortunately, I don't see the USB peripheral supported in the simulator, so that doesn't appear to be an option.