5 Replies Latest reply on Apr 26, 2018 10:37 AM by wes_2584976

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

    user_499366433

      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