Forum Discussion
Altera_Forum
Honored Contributor
16 years agowrite char in DE2 SRAM
hello, Sorry I'm a newbie in NIOSII... I would like to write and read a char in the SRAM, I try to use itoa function but NIOSII doesn't recognize this function? I use this command:...
Altera_Forum
Honored Contributor
16 years agoFor declaring an initialized string at sram use:
char my_str __attribute__ ((section (".sram"))) = "abcde"; my_str must be global. This, assuming you have a sram object. For copying between memory locations just use memcpy().