Hello,
I am trying to use nRFUart project given with the Master Emulator API, however; the original code crashes while trying to initially reset the hardware device. I am using Visual Studio Community 2013 on Windows 7 with .NET 4.5.1 and I believe this is also related to this question, while it seems to be that these programs crash when they try to process the dongle's ID and its COM port. I could solve this in MCP issue by using MCP 3.7.1.8567 and choosing the COM port without the ID, while the latest MCP 3.8.0.7 doesn't show a COM port without an ID.
During the process mentioned in this post I used Master Emulator API 2.1.10.8567 and MEFW_nrf51822_0.11.0_firmware_1M. The problems also occurred when I tried the latest Master Emulator API 2.1.11.7 but in this case I couldn't go deep into the code. When I tried to use .NET 4.0, Visual Studio stopped working.
The code originally crashed before the device could initialize with an error saying "vshost32.exe stopped working". Then, I unchecked "Enable the Visual Studio hosting process" inside the Debug Properties of the project and I checked "Enable native code debugging" as suggested to some related questions.
This is where it gets interesting, when I don't place any breakpoints I receive the error "Unhandled exception at 0x100A2923 in nRFUart.exe: 0xC0000005: Access violation executing location 0x100A2923." before the device could send a single HCI command. Here is the related log. log_without_breakpoints.txt
When I place breakpoints the program goes on longer and generally crashes or gets stuck in two points. Usually crashes with the same "Unhandled exception at 0x100A2923 in nRFUart.exe: 0xC0000005: Access violation executing location 0x100A2923." error at the end of initial reset, after printing the dongle's information. Here is the related log. log_with_breakpoints.txt
But sometimes, it manages to proceed into the device discovery, only to be stuck in a loop with the message "DeviceDiscovered worker busy." Here is the related log. log_device_discovery.txt
Since the error originates from an external and hidden code I can't do anything with the supposedly working example application. I am very frustrated about all these issues with the Master Emulator software and I believe I can at least expect a simple solution from Nordic.
Regards,