Corrupted fast interrupt shadow registers

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
SpeedPIC32
Posts: 300
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Location: Germany
Has thanked: 41 times
Been thanked: 18 times

Flowcode v11 Corrupted fast interrupt shadow registers

Post by SpeedPIC32 »

C:\Users\Uwe\Documents\Matrix>"C:\Program Files (x86)\Flowcode\Compilers\picv2\bin\xc8.exe" --chip=18F2550 "18F2550USB1.c" --double=32 --float=32 --msgdisable=359,1273,1388
C:\Program Files (x86)\Flowcode\Compilers\picv2\pic\bin\picc18 --chip=18F2550 18F2550USB1.c --double=32 --float=32 --msgdisable=359,1273,1388
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
Employing 18F2550 errata work-arounds:
* Corrupted fast interrupt shadow registers
USB_CONFIG: 89: (141) can't open include file "C:/ProgramData/MatrixTSL/FlowcodeV10/CAL/PIC/USB/usb_serial_config.h": Invalid argument
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat Hat den Fehlercode 0x1 gemeldet

SpeedPIC32
Posts: 300
Joined: Thu Dec 10, 2020 2:35 pm
Location: Germany
Has thanked: 41 times
Been thanked: 18 times

Re: Corrupted fast interrupt shadow registers

Post by SpeedPIC32 »

This log indicates a compilation error during the build process for your Flowcode project.

🛠️ Analysis of the Error

The key error message is:

USB_CONFIG: 89: (141) can't open include file "C:/ProgramData/MatrixTSL/FlowcodeV10/CAL/PIC/USB/usb_serial_config.h": Invalid argument
(908) exit status = 1

This means:

Missing or Inaccessible Header File: The compiler could not find or open the file usb_serial_config.h. This header file is critical for configuring the USB stack in your project, which is necessary since your target device is the PIC18F2550, a device with built-in USB capability.

Version Mismatch in Path: The path for the missing file is: C:/ProgramData/MatrixTSL/FlowcodeV10/CAL/PIC/USB/usb_serial_config.h However, the project is being generated by Flowcode v11.0.0.8. This suggests that Flowcode v11 is trying to use a component (the USB configuration file) that is either missing or being referenced from the installation directory of a previous version (Flowcode V10).

🩹 Recommended Solutions

Here are the steps you should take to resolve this issue:

1. Check/Reinstall USB Components in Flowcode V11

The most likely fix is to ensure the Flowcode V11 installation is complete and its USB components are correctly installed and referenced.

Go to: Flowcode V11's Tools menu.

Select: Manage Components or Component Library Manager.

Verify/Reinstall: Find the USB component or CAL (Component Abstraction Layer) files and ensure they are installed and up-to-date for Flowcode V11. If you can't find a direct update/install option, a full re-install of Flowcode V11 is the most robust solution (see step 3).

2. Verify Project Settings and Component Version

Check the USB Component: Open your Flowcode V11 project (18F2550USB1.fcfx). Examine the properties of any USB-related components you are using (e.g., the CDC component) to make sure they are compatible with Flowcode V11 and the PIC18F2550.

3. Clean Reinstall of Flowcode V11 (If the above fails)

If the V10 path reference persists, a clean reinstall of V11 is often the easiest way to reset all paths.

Uninstall: Completely uninstall Flowcode V11.

Delete V10 and V11 Folders: Manually check and delete the remaining FlowcodeV10 and FlowcodeV11 folders under C:\ProgramData\MatrixTSL\ (and potentially C:\Program Files (x86)\Flowcode\). Backup any personal files or custom components first!

Reinstall: Reinstall Flowcode V11 from a fresh download if possible. This should ensure the compiler points to the correct V11-specific CAL files.

Would you like me to search for the specific location of the usb_serial_config.h file in a standard Flowcode V11 installation path to help you check your file system?

Post Reply