Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by nios_ii@Apr 7 2006, 08:59 AM hello,
i wrote a code based on the count_binary about pio.
in sopc builder, i customed the niosii processor as following:
nios/e
on chip memory: 4k (if is it small?)
uart:default settings
pio_7seg:8bit output
pio_button:2bit input,generate irq,ring edge
but the builting project failed!
the error message:
region onchip_memory_0 is full
region needs to be 1228 bytes larger.
my question is:
if the 4k memory is not enough?
btw:
i am confused about the standard c data type and hal data type.
what's the difference between them?
i read the sw manual,but failed to get it out. any one could give me a example to explain it?
thanks!
http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/unsure.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14127)
--- quote end ---
--- Quote End --- Read the section on reducing code footprint in the Nios II Software Developers handbook. It's in the documents directory it's somehting like niisw_5v2.pdf. As for the HAL data types versus the C data types. C data types do not have guaranteed widths they change from compiler to compiler architecture to architecture. The HAL types give you a type of the width you choose on Nios