- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remeber that the variable MUST be used(accessed) in your code, else it would be optimised out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PSoC3 uses a different compiler (Keil C51) than PSoC5 (GCC). So according to www.keil.com/support/docs/2829.htm you need to use pointers instead.
Alternatively you can do this while linking the code: sourceware.org/binutils/docs/ld/SECTIONS.html#SECTIONS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I post the answer awhile ago but cannot remember when. Shall check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, found it
www.cypress.com/?app=forum&id=2233&rID=55749
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remeber that the variable MUST be used(accessed) in your code, else it would be optimised out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
'MUST' is not the name of a variable. hl meant that your code needs to use the variable which is used to reference to RAM address. Otherwise the compiler will remove it during compile or linking, and may reuse this address for something else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks hli