Assign Value on STM32
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-08-27 1:25 PM
Posted on August 27, 2012 at 22:25
Hi,
I used uint8_t CSD_Tab[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; to initialize an array. But when I use IAR EWARM to watch the content in this array, the value is always unchanged. Any ideas? Thank you
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-08-27 1:43 PM
Posted on August 27, 2012 at 22:43
OK, I just figure it out. I did not allocate the RAM memory for it.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-08-28 12:26 AM
Posted on August 28, 2012 at 09:26
Not quite true.
With ''uint8_t CSD_Tab[16] '' you did actually allocate that array. Perhaps you never changed it's contents, or the IAR compiler optimized it out. Trying to learn both C and microcontrollers at the same time could become difficult and frustrating ...