Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21324 Discussions

Problem with the MotionFire kit

Altera_Forum
Honored Contributor II
1,940 Views

Hello, 

 

I've acquired a MotionFire kit (a Cyclone III with some motion control hardware attached to it), and I'm trying to get the build environment up and the code to compile. I'm new to HDL, and I'm running into some compile errors that I don't know how to fix.  

 

Here's the error output: 

 

Error (10839): Verilog HDL error at eth_avalon_functions.v(17): declaring global objects is a SystemVerilog feature 

Error (10839): Verilog HDL error at eth_avalon_functions.v(28): declaring global objects is a SystemVerilog feature 

Error (10839): Verilog HDL error at eth_avalon_functions.v(37): declaring global objects is a SystemVerilog feature 

Error (10839): Verilog HDL error at eth_avalon_functions.v(47): declaring global objects is a SystemVerilog feature 

Error: Quartus II Analysis & Synthesis was unsuccessful. 4 errors, 19 warnings 

Error: Peak virtual memory: 190 megabytes 

Error: Processing ended: Thu Aug 19 09:07:09 2010 

Error: Elapsed time: 00:00:03 

Error: Total CPU time (on all processors): 00:00:03 

Error: Quartus II Full Compilation was unsuccessful. 6 errors, 19 warnings 

 

 

I tried changing the Verilog HDL Input setting in Assignments->Settings->Analysis&Synthesis Settings to SystemVerilog, but that just caused even more compile errors.  

 

Can anyone give me a clue as to how to get this software to build? 

 

Thanks!
0 Kudos
14 Replies
Altera_Forum
Honored Contributor II
1,027 Views

hymm it's weard i'm compilig i think the same program. I'm too have MotionFire problems, but i have successfuly compiled it and programm. Tell me exactly what aru u doing and in what do u compile FPGA or CPLD?? Mayby i will help u.

0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

Hi there, 

 

Thanks for offering to help! I actually got in contact with my local FAE, and he had to write some patches to the FPGA project to make it compile. I'll ask him if I can post the patches. Mostly it turned out to be naming problems with the rotoenc block. 

 

Did you manage to get any of the Nios projects to build? I'm stuck on the openfire2 project right now, specifically in of_cmd.h: 

 

"array type has incomplete element type of_cmd.h /of2 line 34 C/C++ Problem" 

 

I'm trying to make the MotionFire control two brushed servos with a single FireDriver board. This should be possible, but I'm just not sure where I should begin to make the changes fromt he kit's default setting (a single brushless servo). Do you happen to know if can you do it from the example program? If not, where would I start making changes to the code? 

 

What's your experience with the MotionFire been like? I'm finding the documentation sort of... Sparse. I can't figure out how to set the include paths and libraries that they want; the documentation seems to refer to menus that don't exist anymore.
0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

I have the same problem in NIOS. I'm not very experience in MotionFire. My professor write to programmers whose program MotionFire and They say they will write working program under Quartus 10.0 and NIOSII 10.0 but i don't really trust them. So I start to write my own Openfire program based on Their code. I think U successfully solve Quartus Compilation problem :) Now I'm trying to make program controlling only under NIOSII, when I finished it I will try to make communication by Ethernet:) 

 

But in this problem which we get: 

array type has incomplete element type 

 

I think this problem is not problem of 'of_cmd.h' file, I think this problem i going somewhere else, but I don't know where exactly and how deep is it going. I write on some forum, and They just don't know how it is possible this program don't work fine. 

 

Sorry for my English:) Good luck and write me how is it going with your programming. 

 

Oh I forgot to add file include You need to go to proporties of your project in project tree (without '_bsp' word near folder), then you go to C/C++ builder section and they last section in it but there is also second (I think chance to add file as include), go to proporties like I said above and go to NIOSII Builder option and then there is only one other section go there there will be some boxes where You can add your files you want too add. 

I'm tried othere way, just drag and drop folder/files into Your project in NIOSII programmer :) I find out that it work fine.
0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

I'm beginning to think that Arrow sold exactly two MotionFire kits. 

:)
0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

You think we have the same problems, I find out that we are not the only one who has this problems :)

0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

Ok I almost finished my simple menus in NIOS, but i only need value of the control register to control current regulator. Mayby u know what value i need to set in control register to control current regulator??

0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

Sorry. You seem to be much further along that I am. I'm still trying to figure out the meanings of register values.

0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

if u put in control register value of 151 u will be configuring speed regulator no command goto work. If u want again goto command working u need to put in register value of 159. I don't know what value has current to control it.

0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

Przykro mi, nie rozumiem tego. 

 

Dlaczego nie po prostu korzystać z translate.google.com, aby pomóc naszej rozmowy? Co wiesz o wartości do rejestru, które można ustawić za pomocą programu przykład? Czy możliwe jest sterowanie wieloma szczotkowanego serwomotorów za pomocą programu np. poprzez zmianę wartości rejestru?
0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

u know better english :) translate google is suck:) 

U know i don't know is it possible to drive 2 motors on one FireDriver? Write Your post in English :D
0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

Correct. I'm trying to figure out if I can use the example program to control two servo motors with a single firedriver board.

0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

like i said i don't think is it possible, mayby if u fill program FireDriver for multiprocessors. The Openfire is only for FireFighter. I think first you need to program FireDriver for multiprocessors and later program FireFighter for Controlling some how this multiprocessros. 

But for now I just don't know how to do that, I know that on Altera.com there is tutorial how to run multiprocessor NIOSII on Cyclone platform, so I think if you figure it out you will be probably can do it on FireDriver board. Of course You need to look on example code of FireDriver board for one motor. 

But for sure just write e-mail to Altera is it possible what you want to do:) 

 

This weak I will try to figure out error in program which we get in example 'Openfire2'. 

see you soon:)
0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

Hi kris2288 and ubarch, 

 

You might have problem using MotionFire reference design in Quartus 10 since latest file available are for Quartus 8.1 

 

Regards.
0 Kudos
Altera_Forum
Honored Contributor II
1,027 Views

Yes i know that coz i had problems with Quartus project and solved it successfuly. Now i only need make ethernet connection.

0 Kudos
Reply