- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I use PSOC 4 and i have a few variables that I saving in flash memory.
How can I save the variables in predefined flash addresses?
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can use Linker commands for the same. I'm attaching a very basic project in which section command is used for placing an array at a particular address. I'm also attaching the debug watch window screenshot showing the array 'test' being placed at the desired address.
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can use Linker commands for the same. I'm attaching a very basic project in which section command is used for placing an array at a particular address. I'm also attaching the debug watch window screenshot showing the array 'test' being placed at the desired address.
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks it helped a lot but how do I add more than one custom flag to define a number of different variables in different addresses??
Thanks,
Michelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Michelle,
You can add multiple commands. As a reference please have a look at the screenshot. I've added another section named SECTION2 here.
Thanks,
Hima