Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error compiling variant (m5stack + esp32 cores) (Read 1851 times)
jpb.bricole
Newbies
*
Offline


Posts: 4
Joined: Dec 2nd, 2021
Error compiling variant (m5stack + esp32 cores)
Dec 5th, 2021 at 10:20am
Print Post  
Hi
Sorry for my english!
For some time now, whenever I want to compile an ESP32 program or M5Stack product, I have this text displayed in the windows output.
Code
Select All
Compiling 'Free_Font_Demo' for 'M5Stack-Core-ESP32'
C:\ArduinoDev\Arduino\java\bin>if exist re-esp32\Debug\partitions.csv" del /f re-esp32\Debug\partitions.csv"
C:\ArduinoDev\Arduino\java\bin>if exist \Free_Font_Demo\partitions.csv" copy /y \Free_Font_Demo\partitions.csv" re-esp32\Debug\partitions.csv"
C:\ArduinoDev\Arduino\java\bin>if not exist re-esp32\Debug\partitions.csv" copy \tools\partitions\default.csv" re-esp32\Debug\partitions.csv"
        1 fichier(s) copi‚(s).
C:\ArduinoDev\Arduino\java\bin>if not exist re-esp32\Debug\partitions.csv" COPY \tools\partitions\default.csv" re-esp32\Debug\partitions.csv"
C:\ArduinoDev\Arduino\java\bin>IF EXIST \Free_Font_Demo\bootloader.bin" (COPY /y \Free_Font_Demo\bootloader.bin" re-esp32\Debug\Free_Font_Demo.ino.bootloader.bin"  )  ELSE (IF EXIST \variants\m5stack_core_esp32\bootloader.bin" (COPY \variants\m5stack_core_esp32\bootloader.bin" re-esp32\Debug\Free_Font_Demo.ino.bootloader.bin"  )  ELSE (COPY /y \tools\sdk\esp32\bin\bootloader_qio_80m.bin" re-esp32\Debug\Free_Font_Demo.ino.bootloader.bin"  ) )
Le chemin d'accŠs sp‚cifi‚ est introuvable.
C:\ArduinoDev\Arduino\java\bin>if exist \Free_Font_Demo\build_opt.h" COPY /y \Free_Font_Demo\build_opt.h" re-esp32\Debug\build_opt.h"
C:\ArduinoDev\Arduino\java\bin>if not exist re-esp32\Debug\build_opt.h" type nul  core-esp32\Debug\build_opt.h"
C:\ArduinoDev\Arduino\java\bin>IF EXIST \Free_Font_Demo\bootloader.bin" (COPY /y \Free_Font_Demo\bootloader.bin" re-esp32\Debug\Free_Font_Demo.ino.bootloader.bin"  )  ELSE (IF EXIST \variants\m5stack_core_esp32\bootloader.bin" (COPY \variants\m5stack_core_esp32\bootloader.bin" re-esp32\Debug\Free_Font_Demo.ino.bootloader.bin"  )  ELSE (IF EXIST \tools\sdk\bin\bootloader_qio_80m.bin" (COPY /y \tools\sdk\bin\bootloader_qio_80m.bin" re-esp32\Debug\Free_Font_Demo.ino.bootloader.bin"  ) ) )
        1 fichier(s) copi‚(s).
Error compiling variant
Build failed for project 'Free_Font_Demo'
 


I have no problem from the Arduino IDE.

Previously I was under Microchip Studio / Visual Micro, with the same problem.

Conditions:
Windows 10
Arduino 1.8.16 (zip installation)
Visual Studio 2022
Visual Micro with license(installed via VS 2022 Extensions menu)

Thanks in advance
Cordially
jpbbricole
« Last Edit: Dec 7th, 2021 at 3:27pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling variant
Reply #1 - Dec 6th, 2021 at 5:45pm
Print Post  
Thank you for the report. 

We are investigating an issue when both esp32 and m5stack cores are installed.

A short term workaround is to remove esp32 from board manager and click rescan.

We will provide a better solution over the next week.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Error compiling variant
Reply #2 - Dec 7th, 2021 at 2:46pm
Print Post  
An alternative to removing one of the packages, is to ensure both ESP32 and M5Stack are on the same version.

The main "boundary" is v2.0 of each core, so if one is >= v2.0, ensure the other is also updated to a version >= v2.0
  
Back to top
IP Logged
 
jpb.bricole
Newbies
*
Offline


Posts: 4
Joined: Dec 2nd, 2021
Re: Error compiling variant
Reply #3 - Dec 8th, 2021 at 9:31am
Print Post  
Hi
Many thanks for your efficiency!

Reinstalling packages seems to be seems to be a part of the solution, I did some tests:
Test conditions:
Sketch M5Stack Free_Font_Demo
Sketch ESP32 dev module SD_Test

The packages installation is done from the Arduino IDE
M5STACK 2.0.0
ESP32 package 1.0.6

Erase 2 package m5stack and esp32 by deletion in folder
Installation m5stack package.
Start VS2022 and Rescan
Compilation M5Stack Free_Font_Demo OK
Quit VS

Installation ESP32 package
Start VS2022 and Rescan
Compilation ESP32 SD_Test error
Error creating archive. This is usually caused by a virus checker locking the archive file (core.a)
    note: The core.a file will now be invalid. Please click 'Build>Clean Solution' to reolve the issue.
          Please report this issue to http://www.visualmicro.com/forums. Let us know which virus checker and board you are using.
Build failed for project 'SD_Test'

Quit VS
Start VS2022 and Rescan
Compilation M5Stack Free_Font_Demo error
Error creating archive. This is usually caused by a virus checker locking the archive file (core.a)
    note: The core.a file will now be invalid. Please click 'Build>Clean Solution' to reolve the issue.
          Please report this issue to http://www.visualmicro.com/forums. Let us know which virus checker and board you are using.
Build failed for project 'Free_Font_Demo'

Quit VS
delete folder package m5stack
Start VS2022 and Rescan
Compilation ESP32 SD_Test OK.

With m5stack and esp32 package installed, in Arduino IDE, all works fine.

PS: visualMicro is really great!

cordially
jpbbricole
« Last Edit: Dec 8th, 2021 at 9:33am by jpb.bricole »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint