Troubleshooting

In addition to this web page, there is a document version with photos located on Carmen and the O:Drive in the fehqt folder.


Code – Not Compiling after Fixing All Errors

Error: Code will not compile after fixing all syntax errors.

Solution: 90% of compiling problems can be fixed by copying all the text in the main.cpp file, closing the project, creating a new project, pasting over the hello world example with your old code, and recompiling.


Code – Not Running

Error: User program will not run.

Solution: Something may have interrupted the bootloader cycle of the Proteus. Try to re-download your code. If it still does not work, you most likely have a segmentation fault in your code.


Code – Takes a REALLY Long Time to Build

Error: Code has been building for a while.

Solution: The first time you open your code it will always take a long time to build. A progress bar can be seen at the bottom right of the screen. Unfortunately, patience is the solution. The second time and onward you build your code, the wait time drastically decreases.


Cygwin’s Heap

Error: An error mentions Cygwin’s Heap.

Solution: This is a memory distribution issue that is fixed by restarting the computer.


Error 1

Error: Error 1 appears.

Solution: Click the Compile Output tab and look for the error. You may need to scroll up once in the tab.


Error 2

Error: Error 2 appears.

Solution: The USB is not properly plugged in. Try again or get a new USB.


Error 128

Error: Error 128 appears.

Solution: This is often an issue with the project path. Make sure your project path has the U drive in it. Manually setting the path helps!

To create a file in the U: Drive:

  1. Open up FEH Qt Creator.
  2. Create a New Project using the FEH Proteus SD Template.
  3. On the “Introduction and Project Location Page” click on the ‘Browse’ button.
  4. Set the path to the U drive.

If you’re not in the mood to do that, you can try this as well (but you should really make your project in your U: Drive).

  1. Inside your project, go to Tools -> Options.
  2. Click ‘Build & Run’ and ‘Browse’.
  3. Set the directory to the U drive.

Git Bash Compiling Error

Error: Git bash compiling error appears.

Solution: Make sure that only one instance of Qt is running. If another Qt window is open, close it.


“Git cannot be found”

Error: The message “Git cannot be found” appears.

Solution: You are using an incorrect version of Qt Creator. Make sure you are using the correct version in O:/fehqt. Close Qt Creator and open the correct version.


Grayed/Greyed Out Icons

Error: The build and run icons are grayed out.

Solution: If the build and run icons are grayed out, then the wrong file was opened in Qt Creator. When an already-created project is opened for editing, you need to open the .creator file (NOT the main.cpp and NOT the .creator.user file). After opening the .creator file, if your code doesn’t appear, click on main.cpp


Internet Connection

Error: Connection to internet compile error.

Solution: In order to download the Proteus firmware libraries, you must be connected to the internet. Find an internet connection and continue compiling. If this does not work, try to connect to the OSU network via Cisco AnyConnect.


Mac Version

Error: Mac version of QT gives build error:
“make: *** No rule to make target `all’. Stop.”
OR
“C:\apps\FEHQt/Proteus/GCC/arm-none-eabi/lib/armv7e-m/ewl_c++_noio.specs”

Solution: You are currently using Qt Creator, not FEH Qt Creator. Open the FEH folder within your Mac’s application folder. Open FEH Qt Creator, not Qt Creator.


New Program not being loaded

Error: New Program not being loaded into the Proteus.

Solution: Make sure the SD card is named “FEHSD” and is inserted into the computer when you press “Run” in Qt Creator. Open File Explorer and look in the left column of folders (Documents, Pictures, etc.). The SD card will most likely be under Windows (C:) and above your personal U drive.


Old Code

Error: Old code continues to be deployed to the Proteus.

Possible Solutions:

  1. Make sure that your ‘int main’ function is in the main.cpp file.
  2. Make sure that the project that you are working on is set as the active project. Right click on the project folder you are working on and select: Set “Your Project Name Here” as Active Project.
  3. Check that your USB/SD card are properly plugged in.
  4. Make sure you’re in the correct project/window. 😊

Proteus – Motors

Error: Motor port shuts off mid-run or is non-functional.

Solution: The motor wire is touching and is shorted.


Proteus – Splash Screen

Error: Proteus doesn’t display splash screen when booted with user program.

Solution: Make sure you aren’t calling any methods in the global variable space.