Page 1 of 1

"Device is not selected"

Posted: Tue Jan 19, 2021 12:41 pm
by Dave Squibb
Good morning,

I can no longer compile to HEX. Was previously working.

I've opened a test project, selected a PIC and set CONFIG only.


I get the following compiler message:

Launching the compiler...

C:\Program Files (x86)\Microchip\MPLABX\v5.40\mplab_platform\mplab_ipe\ipecmd.exe 16F1938 "C:\Users\HPUSER~1\DOCUME~1\FLOWCO~1\MORGAN~1\FLOWCO~1\" "Flowcode1"
....

Device is not selected

.........

C:\Program Files (x86)\Microchip\MPLABX\v5.40\mplab_platform\mplab_ipe\ipecmd.exe reported error code 7

Autoclose turned off

FINISHED


(Tried uninstalling and reinstalling Flowcode 8 )

Any ideas please? Thanks,
Dave.

Re: "Device is not selected"

Posted: Tue Jan 19, 2021 1:32 pm
by Steve
It appears you have changed your compiler settings and are 'pointing' at ipecmd.exe as the compiler rather than XC8. Try selecting a different option in the "compiler settings" window.

Re: "Device is not selected"

Posted: Tue Jan 19, 2021 4:38 pm
by Dave Squibb
Hi Steve,
Found this in default

$(compilerpic)batch\pic_xc8_comp.bat - Now it says toolchain not installed??

I think this happened when I opened a file from an older project from FC6 or even FC4

Re: "Device is not selected"

Posted: Tue Jan 19, 2021 4:58 pm
by Steve
Compiler information is not stored in the Flowcode project file, so I can't see how opening an older project file would have caused this problem.

To fix, I think you should reinstall the PIC (8-bit) toolchain. These are no longer on our matristsl.com site, but I think you can access in from your account page on the flowcode.co.uk site.

But note that the 8-bit PIC (and AVR/Arduino) toolchains on the download page of that site are not correct for Flowcode v8 and earlier. You will need to login and access them in your Flowcode account page (this is the same login details for Flowcode itself and matrixtsl.com). All other toolchains for v9 work with v8 and v7.

Re: "Device is not selected"

Posted: Tue Jan 19, 2021 6:27 pm
by Dave Squibb
That's done the trick Steve, Thanks for your help.