Altera_Forum
Honored Contributor
12 years agoHow to write(or read) soft IP registers with ARM DS-5?
I have started working on Cyclone V SoC development board. Using golden reference design and bare-metal program, I have succeeded to print 'Hello' in ARM DS-5. Now I want to modify the same hello.c code so that I can write into a PIO register, which is there in the QSYS design.
For Nios processor, that would be easier as I just had to use, for example, IOWR(pio_base,offset,1). How can I do the same for ARM processor? Is there any function, like IOWR, for it? (Tired of searching about it on net) In DS-5 debugger window, it shows avalon registers and their address. So, I can have the address of PIO but I can't figure out how can I access the PIO or for that matter any register of any peripheral IP. (I am working on Windows OS)