Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Win32 error 487 - Couldn't reserve space for cygwin's heap and Invalid Application Error

    BCDS_Tester
    Member

    Win32 error 487 - Couldn't reserve space for cygwin's heap and Invalid Application Error

    I have a customer who is trying to build a simple MITA project.  He has tried with two Windows laptops and has been having a lot of trouble getting the application to compile and when it does compile the project often says invalid applcation.

    He has worked with two computers.  After sometime with both computer the application no longer builds.  I have attached the build log for when the application stops building.  It points to a windows issue.  Why does this stop working after sometime and how can we repair this issue.

    Before this issue occurs he was able to get the project to build, but he often runs into an issue where after flashing the file it will say this in the console log

    INFO | Flashing file 'C:/Users/matthew.saliken/XDK-Workspace/Accel/src-gen/debug/ClogDetection.bin'...

    INFO | XDK DEVICE 1: Ready

    INFO | XDK DEVICE 1: C

    INFO | XDK DEVICE 1: XMODEM Download Success

    INFO | XDK DEVICE 1: c

    INFO | XDK DEVICE 1:  CRC of application area

    INFO | XDK DEVICE 1:  CRC0000FB56

    INFO | Application checksum 'fb56' successfully verified.

    INFO | Transmission successfully completed!

    INFO | Booting application...

    INFO | XDK DEVICE 1:  Performing application CRC validation (this will take a couple of seconds)

    INFO | XDK DEVICE 1: Application Firmware Corrupted

    INFO | XDK DEVICE 1:  Invalid application

    INFO | XDK DEVICE 1:  Jumping to application on button 2 press

    INFO | XDK DEVICE 1: Application Firmware Corrupted

    I have worked with him on this and directed him to force the code to compile for his XDK's Bootloader (v1.2) and even though he got it to work once or twice, after a few attempts, it starts to fail again with the same issues.  We have also added the XDK Nature to the project and refreshed the index.  I have also asked him to clear out the console widows logs periodically, as I know when running a program that fills up the console window with too much data will cause the XDK to crash.

    I have not been able to reproduce this issue and am not sure what else we can to to solve the issue.  Please let me know what he can try to fix the issue.

    Thank you for your support.

    Christopher Koch

    Tags (2)
    5 REPLIES 5
    Mahalingam
    Occasional Contributor

    Re: Win32 error 487 - Couldn't reserve space for cygwin's heap and Invalid Application Error

    Hello BCDS_Tester 

    “Invalid application” error comes when the user is trying to flash an application which is not compatible with the bootloader version running in XDK device.

    I am using 64bit operating system, x64 based processor.

    I am able compile the MITA project successfully many times. I was not able to reproduce "Couldn't reserve space for cygwin's heap" compilation error.

    In some forum, they are recommended to use the 64-bit version, inorder to avoid  "Couldn't reserve space for cygwin's heap" error

    Restarting the computer to clean the address space  might solve "Couldn't reserve space for cygwin's heap" error.

    BCDS_Tester
    Member

    Re: Win32 error 487 - Couldn't reserve space for cygwin's heap and Invalid Application Error

    I understand the Invalid Application is when the bootloader version is incorrect, but we have set up the bootloader for their workbench and for the individaul project to match their XDK's bootloader and this error still pops up.

    I will try to understand his system better for the heap issue.  Right now they are using their personal computer to get it to work.

    Thanks for your help in understanding.

    Christopher Koch

    Mahalingam
    Occasional Contributor

    Re: Win32 error 487 - Couldn't reserve space for cygwin's heap and Invalid Application Error

    Hello BCDS_Tester

    Technical Reason for getting an "Invalid Application" error message in XDK Workbench console is,

    User has compiled the application binary file for specific bootloader version(Example: v0.0.10). When user trying to flash the same application binary file(which is compatible only for v0.0.10  device)  into XDK device having different bootloader version(Example: v1.2.0). Then the user may get "Invalid Application" Error message in XDK Workbench console

    I have added little bit more clear and detail steps below to understand the reason for getting "Invalid Application" error message in XDK Workbench console .

    Steps Done:

    1. Right Click on XDK device, Selected 'Flash Bootloader' option. Select v0.0.10 Bootloader version -> v0.0.10 Bootloader version was successfully flashed into XDK device.

    2. Selected "LedsAndButtons" project and Right clicked and Selected Build option -> "LedsAndButtons" application binary file was successfully generated for v0.0.10 Bootloader version.

    3. Selected "LedsAndButtons" project and Clicked "Flash" Button -> Application was flashed successfully into the XDK device having v0.0.10 Bootloader version.

    4. Right Click on XDK device, Selected 'Flash Bootloader' option. Select v1.2.0 Bootloader version -> v1.2.0 Bootloader version was successfully flashed into XDK device. Device was in Bootloader mode.

    5. Selected "LedsAndButtons" project and Clicked "Flash" Button.

    Findings:

    Workbench doesn't automatically compile the application for newer or current running bootloader version(v1.2.0) in device.

    Instead Workbench flashed the binary file which was generated in Step-2.

    Binary file generated  in step-2 is compatible only for the devices having v0.0.10 Bootloader version.

    Binary file generated in step-2 is not compatible for the device having v1.2.0 Bootloader version.

    This is the reason why the user was getting "Invalid application" error message in XDK Workbench console.

    Solution:

    Workbench does not automatically compile and flash the application based on the Bootloader version running on the device.

    User has to make sure to Re-compile the application based on the bootloader version running on the device and then flash the application.

    BCDS_Tester
    Member

    Re: Win32 error 487 - Couldn't reserve space for cygwin's heap and Invalid Application Error

    Hello,

    The user I have been helping, had been instructed to set the bootloader version for his project and for the Workbench to version 1.2, as this is the version of his XDK.  He had also been instructed to clean and build the project before he attempted to flash his XDK.  After some time this still proved to be iffy at best, as he still receieved the Invalid Application error on occasion when flashing his XDK.

    Chris

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist