Running the debugger on a custom board without external memory AN2131
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Answer:
We include an internal version of the monitor with the development kit. However, with no external memory available you will be limited by the amount of remaining memory.
There is a readme.txt file in the C:\cypress\usb\target\monitor that explains the various monitors and the resources used by them.
There are some places where you can reclaim some RAM for your application. First, there is a chunk of code in main () that can be removed if your descriptors are located in internal RAM. You can remove this entire if statement:
if ((WORD)&DeviceDscr & 0xe000)
{... }
Also, if your device is self-powered, it does not need to worry about suspend and resume and you can remove the entire if statement:
if (sleep)
{ ... }
(ISODISAB bit in ISOCTL), and unused bulk endpoint buffers for code and data.
-
This widget could not be displayed.Anonymous