Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TTjel
Beginner
226 Views

What can hang the Cyclone-V system when the open("/dev/mem" , O_RDWR|O_SYNC) command is used?

I can, with Quartus' Platform Designer, build a Cyclone V hard Processor System, which work. But when a make a new Bock Diagram as top level entity and insert the vhdl file (with Hard Processor as a soc_system component) as symbol, then the Linux-c command open("/dev/mem" , O_RDWR|O_SYNC) will hang the system.

0 Kudos
4 Replies
110 Views

Hi

Can you try the following commands separately and let us know the results

  1. open("/dev/mem",O_RDWR|O_DSYNC)

also

2. open("/dev/mem",O_RDONLY)

Thanks and Regards

Anil

TTjel
Beginner
110 Views

Hi, I realise that also printf was hanged and therefore not printed all text to the console. The actual hanging was when I tried to access the memory address. So the 'open' and the 'mmap' of the memory command worked, but when I wrote to the mapped memory the ARM become hanged. This hanging is only happens when the system is made inside a Block diagram and not when I make the same system from VHDL. I speculate that the AXI send a storm of interrupts, which is not handled properly, but I can’t verify that idé. /Tobbe Från: Intel Forums <supportreplies@intel.com> Svara till: Reply to Forums <1drdnnvptrw40fbp.cfb51zuuucboalmb.fbeqgqhntg3tmrbt@s55fxanfjsu1n6dz.nfctxsznf2ug8i.u-yt3cmag.na37.ch...> Datum: måndag 13 april 2020 08:56 Till: Torbjörn Tjelldén <tjellden@chalmers.se> Ämne: AnilA_Intel answered you: What can hang the Cyclone-V system when the open("/dev/mem" , O_RDWR|O_SYNC) command is used? Hi Can you try the following commands separately and let us know the results - open("/dev/mem",O_RDWR|O_DSYNC) also 2. open("/dev/mem",O_RDONLY) Thanks and Regards Anil [Bild som tagits bort av avsändaren.]<https://forums.intel.com/0050P000008xy6P?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> AnilA_Intel<https://forums.intel.com/0050P000008xy6P?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> (Intel) Hi Can you try the following commands separately and let us know the results 1. open("/dev/mem",O_RDWR|O_DSYNC) also 2. open("/dev/mem",O_RDONLY) Thanks and Regards Anil [cid:image002.png@01D61181.370ED2A0] or reply to this email Replying to [Bild som tagits bort av avsändaren.]<https://forums.intel.com/0050P000008yQWm?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> TTjel<https://forums.intel.com/0050P000008yQWm?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> (Customer) asked a question. Tuesday, den 24 March 2020 11:14<https://forums.intel.com/0D50P00004dOkBp?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> What can hang the Cyclone-V system when the open("/dev/mem" , O_RDWR|O_SYNC) command is used? I can, with Quartus' Platform Designer, build a Cyclone V hard Processor System, which work. But when a make a new Bock Diagram as top level entity and insert the vhdl file (with Hard Processor as a soc_system component) as symbol, then the Linux-c command open("/dev/mem" , O_RDWR|O_SYNC) will hang the system. [Bild som tagits bort av avsändaren.]<https://forums.intel.com/0050P000008xy6P?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> AnilA_Intel<https://forums.intel.com/0050P000008xy6P?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> (Intel) Hi Can you try the following commands separately and let us know the results 1. open("/dev/mem",O_RDWR|O_DSYNC) also 2. open("/dev/mem",O_RDONLY) Thanks and Regards Anil Monday, den 13 April 2020 07:55<https://forums.intel.com/0D70P000006viDb?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> You're receiving emails when someone "Comments on my posts." To change or turn off Forums email, log in<https://forums.intel.com/_ui/core/feeds/notification/ChatterEmailSettings?setupid=CollaborationEmail...> as 300002437007@intel.com.isvc. Are notifications about this post getting annoying? Reply to this email with the word " mute ". For Privacy and Legal notices, please visit these links: http://www.intel.com/privacy, https://www.intel.com/content/www/us/en/legal/terms-of-use.html. [Bild som tagits bort av avsändaren. Forums]
110 Views

Also

Please use platform designer for HPS based designs as the Qsys Interconnect are required for the HPS to connect to the fabric.

Regards

Anil

110 Views

Hi

Without having the Qsys interconnect the Hang is expected.

Please use the platform designer and have the Qsys interconnect in place and let us know the results.

Thanks and Regards

Anil

Reply