Forum Discussion
Altera_Forum
Honored Contributor
16 years agoUDP Read and Writing in SDRAM
Dear Friend's i am sucessfully able to read data through UDP but when i simultenauselly trying to write this received data in SDRAM it generate a message during run time and held operation. a...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- 1. the only doubt is that i am receiving my udp data in Data which is a two dimentionl array... --- Quote End --- Actually Data is monodimensional, since the first dimension is 1. Then the reference to Data[1] in recvfrom() is illegal and you are possibly writing to other data memory; the correct reference would be Data[0]. Moreover your use of myaddr as a pointer is not the best choice, unless you use sdram ONLY for udp data and all your code and program data resides in another memory section. You should rather define an array for storing data and then writing there, instead of direct addressing physical memory. Cris