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.chatter.salesforce.com>
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&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D>
AnilA_Intel<
https://forums.intel.com/0050P000008xy6P?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D> (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&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D>
TTjel<
https://forums.intel.com/0050P000008yQWm?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D> (Customer) asked a question.
Tuesday, den 24 March 2020 11:14<
https://forums.intel.com/0D50P00004dOkBp?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D&OpenCommentForEdit=1>
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&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D>
AnilA_Intel<
https://forums.intel.com/0050P000008xy6P?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D> (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&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D>
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=CollaborationEmailSettings&fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1uid=0050P000008yQWm&s1ext=0&emkind=chatterCommentNotification&emtm=1586760906157&emvtk=JJ4bkC9X119gd_A0Ngajos0X96DoJxY2WXUogDt05DM%3D> 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]