Build process unable to delete contents of code gen dir. Error: Failed to delete...lcpsoc3 Part II

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GrLe_1336286
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

Hello All

Referring to a similar post titled "Build process unable to delete contents of code gen dir. Error: Failed to delete...lcpsoc3" i can confirm that this appears to be a glitch on Windows 10 (10.0.16299 b16299) - unsure if the originator of the previous thread was also on a Win10 domain environment where group policy may be coming into play???

Occasionally the lcpsoc3 directory located inside codegentemp becomes inaccessible and can not be deleted - a restart of Win10 is required after which the folder is no longer present in codegentemp. This issue does not appear related to permissions as a permission change cannot be applied to the codegentemp folder - see images further down this post. Attempting to copy the entire project folder is also met an error in Win10.

The same PSoC Creator 4.1 project was previously rebuilt several times. The only change made in creator was to change clocks, example of the Output window below.

Has anyone encountered this oddity, any ideas on addressing?

Kind regards

Greg

Flash used: 11144 of 262144 bytes (4.3%).

SRAM used: 2873 of 65536 bytes (4.4%). Stack: 2048 bytes. Heap: 128 bytes.

--------------- Build Succeeded: 01/10/2018 09:10:46 ---------------

--------------- Build Started: 01/10/2018 09:23:15 Project: MB-01_Bootloadable, Configuration: ARM GCC 5.4-2016-q2-update Debug ---------------

cydsfit.exe -.appdatapath "C:\Users\greg\AppData\Local\Cypress Semiconductor\PSoC Creator\4.1" -.fdsnotice -.fdswarpdepfile=warp_dependencies.txt -.fdselabdepfile=elab_dependencies.txt -.fdsbldfile=generated_files.txt -.fdsreffile=referenced_files.txt -p "C:\Users\greg\Desktop\Motorised Bracket\PSoC\MB-01_Bootloadable.cydsn\MB-01_Bootloadable.cyprj" -d CY8C5888LTI-LP097 -s "C:\Users\greg\Desktop\Motorised Bracket\PSoC\MB-01_Bootloadable.cydsn\Generated_Source\PSoC5" -- -yv2 -q10 -ygs -o2 -v3 -.fftcfgtype=LE

Elaborating Design...

ADD: fit.M0032: warning: Clock Warning: (UART_IntClock's accuracy range '1.846 MHz +/- 5%, (1.754 MHz - 1.938 MHz)' is not within the specified tolerance range '1.843 MHz +/- 4.595%, (1.759 MHz - 1.928 MHz)'.).

* C:\Program Files (x86)\Cypress\PSoC Creator\4.1\PSoC Creator\psoc\content\CyComponentLibrary\CyComponentLibrary.cylib\UART_v2_50\UART_v2_50.cysch (Instance:IntClock)

* C:\Users\greg\Desktop\Motorised Bracket\PSoC\MB-01_Bootloadable.cydsn\MB-01_Bootloadable.cydwr (UART_IntClock)

ADD: fit.M0032: warning: Clock Warning: (RS485_IntClock's accuracy range '15 MHz +/- 5%, (14.25 MHz - 15.75 MHz)' is not within the specified tolerance range '14.746 MHz +/- 4.595%, (14.068 MHz - 15.423 MHz)'.).

* C:\Program Files (x86)\Cypress\PSoC Creator\4.1\PSoC Creator\psoc\content\CyComponentLibrary\CyComponentLibrary.cylib\UART_v2_50\UART_v2_50.cysch (Instance:IntClock)

* C:\Users\greg\Desktop\Motorised Bracket\PSoC\MB-01_Bootloadable.cydsn\MB-01_Bootloadable.cydwr (RS485_IntClock)

HDL Generation...

Synthesis...

Dependency Generation...

Cleanup...

Error: fit.M0050: The fitter aborted due to errors, please address all errors and rebuild. (App=cydsfit)

--------------- Build Failed: 01/10/2018 09:23:19 ---------------

--------------- Rebuild Started: 01/10/2018 09:23:30 Project: MB-01_Bootloadable, Configuration: ARM GCC 5.4-2016-q2-update Debug ---------------

Deleting file ".\CortexM3\ARM_GCC_541\Debug\main.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\powerstep_commands.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\cyfitter_cfg.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\cymetadata.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\CyScBoostClk.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\SPIM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\SPIM_PM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\SPIM_INT.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\UART.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\UART_PM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\UART_INT.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\UART_BOOT.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Clock_1.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\UART_IntClock.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Cm3Start.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\CyBootAsmGnu.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\CyDmac.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\CyFlash.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\CyLib.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\cyPm.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\CySpc.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\cyutils.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Up_Switch.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Down_Switch.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\RS485.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\RS485_PM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\RS485_INT.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\RS485_BOOT.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\RS485_IntClock.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\isr_RS485.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Test_Pin.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Status_Reg.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\timer_clock.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Timer_1.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Timer_1_PM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\timer_clock_1.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\EZI2C.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\EZI2C_PM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\EZI2C_INT.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Timer_2.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Timer_2_PM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\SPIM_PV.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\SPIM_PV_PM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\SPIM_PV_INT.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\SPIM_PV_IntClock.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\isr_SysTmr.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Home_Switch.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MOT_MISO.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MOT_Reset.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MOT_MOSI.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MOT_SCK.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MOT_SS.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\POS_DO.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\POS_PRE.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\POC_CLK.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\POS_ERR.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MOT_LimSw.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Rx_1.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MOT_Busy.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\LED_Status.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Pin_2.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\Config.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\EEPROM.o"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MB-01_Bootloadable.hex"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MB-01_Bootloadable.elf"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\MB-01_Bootloadable.map"

Deleting file ".\MB-01_Bootloadable.rpt"

Deleting file ".\MB-01_Bootloadable_timing.html"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\.deps\SOURCE_C__ARM_GCC_GENERIC.P"

Deleting file ".\CortexM3\ARM_GCC_541\Debug\.deps\SOURCE_ASM__ARM_GCC_GENERIC.P"

Build process unable to delete contents of code gen dir.  Error: Failed to delete C:\Users\greg\Desktop\Motorised Bracket\PSoC\MB-01_Bootloadable.cydsn\codegentemp\lcpsoc3: Access to the path 'C:\Users\greg\Desktop\Motorised Bracket\PSoC\MB-01_Bootloadable.cydsn\codegentemp\lcpsoc3' is denied.

--------------- Rebuild Failed: 01/10/2018 09:23:30 ---------------

Properties of the lcpsoc3 directory - shows read only

lcpsoc3.jpg

Unchecking read only and clicking apply results in the following message

Error Applying Attributes.jpg

6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Did you already try to change the access rights after a clean boot with admin rights?

Bob

0 Likes

Hi Bob

Yes have tried changing the admin rights after a boot - no effect.

The lcpsoc3 directory never exists after a Win10 reboot, the issue is only related to this folder.

If anything more is discovered i will update this thread accordingly.

Regards

Greg

0 Likes
Anonymous
Not applicable

Yep.  Same issue started for me yesterday(10 Jan2018)

--------------- Build Started: 01/11/2018 13:35:53 Project: xxxx, Configuration: ARM GCC 5.4-2016-q2-update Debug ---------------

Build process unable to delete contents of code gen dir.  Error: Failed to delete ....\codegentemp\lcpsoc3' is denied.

I tried the permission settings several time with no luck.  All my projects were compiling fine and now all of them get this error.

On Windows 10 Surface Book.

Thanks

Wes

0 Likes

Should have an anti virus program running: try to stop it, or to exclude the project folder. It might hog onto to folder because of all the changes so it cannot be deleted.

0 Likes
Anonymous
Not applicable

I had the same problem and found that my Surface Win10 machine was running OneDrive in "Files On Demand" mode.  I had not used OneDrive before but it sounds like files are NOT stored on the local machine and only downloaded from OneDrive cloud as needed.

Turning OFF  Microsoft OneDrive Files On Demand seemed to help me.

Files on Demand tutorial

Video: Sync files with OneDrive Files on Demand - OneDrive

Wes

AgentRev
Level 1
Level 1
First reply posted Welcome!

Had the same problem, I solved it by first manually deleting "lcpsoc3" once, then by going in "Project > Build Settings" and "ARM GCC > User Commands" and entering the following for "Pre Build":

cmd /c rmdir /s /q .\codegentemp\lcpsoc3 2>nul & exit 0

However, if code generation fails (e.g. due to a schematic error), this command won't be executed and you might have to manually delete "lcpsoc3" once again.

0 Likes