Code 12 every time :(

FredDeb

Prominent
May 25, 2017
12
0
510
I have a ASrock H81 Pro BTC R2.0 mobo with 4gb ram and a Intel Pentium G3258.
I am trying to connect 3 GPU's to the motherboard but i always get a code 12 on one of the cards. If i connect 2 cards, one of them has a code 12. If i connect 3 cards, 2 are working and one of them has a code 12. Mobo bios is up to date. Drivers are up to date... I am using windows 10 and the cards are gtx 1060 6 gb's. I dunno what else i could try, please help, this is driving me nuts :(
 

FredDeb

Prominent
May 25, 2017
12
0
510
It should be ok, its a common used cpu for mining rigs.
What is strange is that it can run 2 gpu's when i connect 3. But it only runs 1 when i connect 2.
There is always one with code 12.
 

flyerstarter

Prominent
Nov 15, 2017
6
0
510


I've got exactly the same issue:

Specs:
ASRock H81 Pro R2.0 BTC
Intel Celeron G1840 Haswell Processor. 2.8 GHz. LGA1150. 2MB Cache
Corsair 4GB DDR3 1600MHz
SanDisk SSD PLUS 120 GB
3 x Gigabyte Nvidia GeForce GTX 1050 Ti G1 Gaming 4GB GDDR5
EVGA 1000 GQ, 80+ GOLD 1000W PSU
6x 1x To 16x Extender Riser USB 3.0 Power Cable Bitcoin Card Adapter PCI-E

What I have tried so far:
Tried an updated / custom BIOS that added "enable 4g encoding" v1.2
Tried latest BIOS, selected PCI as the primary display and not the onboard, selected GEN1 and GEN2 (neither made a difference).
Complete power off, install first GPU, install drivers - power off, install second GPU, install drivers - and so on
Latest Nvidia drivers and then the second most recent (388.13, 384.76)
Had a spare GTX750TI knocking around and it wouldn't accept that as a third card either.
Tried adding additional power via the two molex ports on the M/B.
Removed CMOS battery and reset via the jumper.
Disabled onboard GPU via device manager

I've tested each GPU individually and all PCI risers and can confirm all are fine and working correctly.
 
Although you say the G3258 is a common CPU to use for mining, i believe the problem you have running 3 GPU's is a limitation in the Intel H81 chipset. I would take a closer look at that for a solution. Keep in mind you are trying to do something the motherboard was never designed to do, so basically you're hacking the board. You have to find solutions that aren't in any book. Perhaps you can find website that focuses on mining.
 

FredDeb

Prominent
May 25, 2017
12
0
510
That motherboard is designed especially for mining, its designed for connecting 6 GPU's. Most people use a Intel Celeron G1840 CPU on that board which has even lower specs than the G3258.
 

I wan't aware of that. If that is the case, why do you not contact ASRock Technical Support directly for help with this issue? Their technicians should be able to provide a definitive answer for you.
 

flyerstarter

Prominent
Nov 15, 2017
6
0
510
Response from ASRock:

"Hello,

1. Please try to borrow more RAM to test with.

2. Try increasing virtual memory in Windows to at least 16GB.

3. The Molex power connectors on the motherboard must be used, even with powered risers. I know you tried this already.

4. Please try to test with Windows 10 version 1703.

Any change?

Kind regards,
ASRock Support"
 

Was it Technical Support [MB / Mini PC / IPC] you contacted? If so, reply back and tell them their 4 suggestions did not solve your problem. Then ask them directly: "Will three graphics cards run at the same time on this motherboard, or only two?" If they say yes, they have no excuses not to solve your problem.

I realize it's aggravating for both of you but you need to keep at them. You paid good money for their motherboard and they need to back it. I've always has good success contacting customer support in the past [not ASRock] and i ended up happy with the solution whether it was an answer or an RMA.
 

flyerstarter

Prominent
Nov 15, 2017
6
0
510


I've had another update, not sure exactly who from (raised a support ticker through ASRock website:

"Hello,

Thanks for testing.

Is your Windows 10 version 1709 an upgrade from an older Windows (10) version like 1703? Or did you make a fresh installation using 1709 directly?

Upgrades from 1703 (or older) to 1709 are causing several problems. Maybe your system is affected by that as well.
Testing with a fresh 1703 installation and drivers without connecting it to internet would be the best way to verify this.
But if you can only test by making a fresh 1709 installation then that would still be helpful.

Kind regards,
ASRock Support"

I've advised that all suggestions had failed to resolve the issue and got this reply:

"Hello,

I will ask a colleague in Taiwan to have a look at this case. It usually takes 1 or 2 business days to get a reply from Taiwan.

Kind regards,
ASRock Support"

Now waiting on Taiwan I suppose. If I get nothing back within a couple of days I'm returning the board and going to ASUS (Always rate their boards and have never had an issue)
 

At least you know someone at ASRock is "trying" to fix your problem, if nothing else.

 

flyerstarter

Prominent
Nov 15, 2017
6
0
510
WE HAVE A SOLUTION! (well it worked for me...) - Not taking credit here, came from someone on Bitcoin.org, just sharing here

Workaround for error:

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. To work around this issue, follow these steps:
Click the Start button, type regedit in the Start Search box, and then click regedit in the Programs list.

User Access Control permission If you are prompted for an administrator password or for confirmation, type the password, or click Continue.
Locate the following registry subkey, and then click it:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PnP\Pci
If the HackFlags registry entry is not present, follow these steps:
On the Edit menu, point to New, and then click DWORD (32-bit) Value.
Type HackFlags, and then press ENTER.
On the Edit menu, click Modify.
In the Value data box, type 0x600, click Hexadecimal in the Base area, and then click OK.
Exit Registry Editor.
If the HackFlags registry entry is present, follow these steps:
Right-click HackFlags, and then click Modify.
In the Value data box, type 0x600, click Hexadecimal in the Base area, and then click OK.
Exit Registry Editor.

Enjoy!
 

flyerstarter

Prominent
Nov 15, 2017
6
0
510


Shame, Nvidia did release new graphics drivers yesterday, try that?

BIOS setting working for me are default, only changes were Gen1 and Onboard graphics.

Page file for me on virtual memory is 16-30Gb.

Go on ASRock's website and download and install all software for the mobo
 

FredDeb

Prominent
May 25, 2017
12
0
510
Can i ask what Windows do you use? Pro or Home?
I'll do a fresh install of everything this weekend... If i don't get it to work this weekend, im gonna shoot my computer :p
 

FredDeb

Prominent
May 25, 2017
12
0
510
No i haven't tried that yet... :( I'm gonna try all other things first before i start messing with gpu bios.

Also when i did the regedit solution, i could not enter 0x600 in the value box. I had to enter 6000000 or something to get the 0x600 value show up on the right side of HackFlags registry entry. Dunno if that makes any sense lol

Anyway, im gonna try again when i get back home from work... wish me luck lol
 

vsop59

Prominent
Nov 18, 2017
3
0
510
Hello, I got the very same issue and also tried everything suggested here and there excepting 16 Gb virtual memory which I can't afford on my 32 GB SSD. When I boot up my rig with 2 GPU then only 1 is available and other one is locked with error code 12 in device manager ; now when I boot up with 3 GPU, only 2 are available and 1 is locked, not always the same one BTW.

I'm running H81 PRO BTC v2.0, 8 Gb DRAM, 32 GB SSD, GTX 1060, GTX 1050TI, GT 1030, VS650 Power, risers are USB3 cable + 6 pin connector, W10PRO 64.

The 'HackFlags' register thing has just permanently BSODed my Windows 10 so I probably modified something wrong there, I added '600' (0x600, 1536 decimal) dword32 value to 'HackFlags' new field.

I also modded Mobo w/ v1.3 firmware, 4g option is useless in my case and GEN1 / GEN2 as well.

I'd greatly appreciate any new idea around, thanks in advance.
 

FredDeb

Prominent
May 25, 2017
12
0
510
I gave up on it, i tried everything but with no luck.
The cards are showing up under linux though... so i guess it's a windows problem, and not a mobo problem.
I also tried windows 10 home instead of pro, but still nothing.
Plz post solution if you find how to fix it :)
 

vsop59

Prominent
Nov 18, 2017
3
0
510


 

FredDeb

Prominent
May 25, 2017
12
0
510
Yea too bad there is no Nicehash for linux, i liked it too.
I'm using https://simplemining.net/ now. I'm mining ETH at the moment. It works fine and is easy to setup.
I might take a look at Ethos too... Dunno what i'll end up using yet.
Still i wish there would be a solution for the code 12 problem. I would go back to windows if there was a fix...