Glad to help!
Kernel driver for ACPI node load fail as Code 12 (0xC00000E5)
Hi,
I am writing a kernel driver for an ACPI node.
I declared resource in ASL for this node as below:
Device (TEST)
{
Name (\_HID, "ACPITEST") // \_HID: Hardware ID
Name (ACRS, ResourceTemplate() {
Memory32Fixed (ReadWrite, 0xFE0B0000, 0x1000)
IO (Decode16, 0x940, 0x940, 0, 0x01)
})
Method (\_CRS, 0, Serialized)
{
Return (ACRS)
}
}
I created a KMDF driver based on the VS2022 template. I only modifed the INF to include the ACPI Hardware ID.
%TestDriver.DeviceDesc%=TestDriver\_Device, ACPI\ACPITEST ; TODO: edit hw-id
When I load the driver, the device cannot start successfully, while the resource seems set correctly.
Device status: Code 12
Resource settings meet my ASL code.
Driver status: 0xC00000E5
Any idea is appreciated.
Thanks.
Windows for home | Windows 11 | Devices and drivers
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
3 answers
Sort by: Most helpful
-
Anonymous
2023-08-04T03:09:49+00:00 Thanks Dave. I have posted the question in Microsoft Q&A.
-
DaveM121 891.1K Reputation points Independent Advisor2023-08-03T06:39:31+00:00 Hi Kevin,
I am Dave, I will help you with this.
I apologize, Community is just a consumer forum, due to the scope of your question (Driver Dev) can you please post this question to our sister forum on Microsoft Q&A (The Developers Forum)
Over there you will have access to a host of developers and programming experts and will get a knowledgeable and quick answer to this question.