Builds
mica build exits with code 1 and shows [FAIL] tasks
Exit
1 means at least one task in the build failed. The output lists each task, its error details (lines that start with !) and the files it did produce. Fix what the details point to, then run build again. Exit 2 (error: ... on stderr, the error output) means a MicaError stopped the command before it could run, for example a bad slug or a missing project folder.build refuses to run: subscription required (planned paid mode)
You should not see this today. Paid mode is planned and not live. It runs only when a license server is configured, so unset
MICA_LICENSE_SERVER_URL, or use MICA_BILLING_MODE=dev to skip the check.Routing the board (drawing the copper paths)
"My board won't route"
Start by finding out what failed:
- Too much in one area. A dense design can truly run out of room for the copper paths. Boards do not route reliably yet. Simple ones can route and pass, and many still fail. The router supports 4 layers, but normal builds use 2.
- Some connections are still missing. Run
mica pcb <slug>again and look at which connections failed. A net is one connection in the design. USB-C D+/D− and other differential pairs (two wires that carry one signal as a pair so noise cancels out) get special handling, with a length difference budget of 0.5 mm. If a pair fails, the board may need more room around the connector. - Grid rounding problems. The router works on a grid, so pad cells (the copper areas where parts connect) are rounded to grid positions. A past defect made rounded pads collide with vias (small holes that connect layers of the board) and marked good cells as blocked. If the cells that will not route cluster around pads, this may be the cause. Report it.
- Hard cases. Complex boards are not dependable. A very dense field of vias can defeat the router. Move parts apart or spread the vias out, and expect that some designs will not route today.
DRC failures after a route that looked clean
mica pcb runs DRC (design rule check, a test that the board can be manufactured) on the routed board. It covers the design rules. Common causes:- A tight corner crossing. On a 2-layer board, the 2-layer Manhattan router (it turns only at right angles) can send a path around a corner and across a narrow escape channel, a gap where paths leave a dense area. DRC then flags it. The differential pair builds say so outright. DRC catching the problem is the system working as intended.
- Copper pours. A copper pour is a filled area of copper on the board. DRC rules 27–30 check it: pour-to-track, pour-to-pad, pour-to-via and pour-to-pour. A clean DRC report means those clearances passed.
- Antenna keepouts. A keepout is an area where parts and copper are not allowed. When a keepout is declared, DRC flags copper or parts inside it.
Planned model access and licensing (not live)
401 missing_license_key
This belongs to the planned gateway, which is not live. The request reached the gateway (the server that would pass requests to the model) without an
Authorization: Bearer header. Set MICA_LICENSE_KEY, or write ~/.mica/license.json with {"license_key": "orc_..."}.401 invalid_license_key
The key is not recognized. The server stores only a SHA-256 hash, a scrambled fingerprint of the key, so a lost key cannot be recovered. The plan is that you would issue a new one from the app.
402 subscription_required
The subscription behind the key is not active. Renew it to get the included models back.
429 limit_reached
Your 5-hour session window or your weekly window is full. The response names the window and when it resets, and the app shows it next to the model picker. Retrying will not help before the reset. After it, a model with a lower multiplier makes the allowance last longer; on Free, Pro has a much larger allowance.
502 or 503 when a model request fails
503 inference_not_configured means the license server has no model provider configured. That is a setup problem on the operator's side (the person who runs the server). 502 upstream error is temporary, and the client (the program that calls the gateway) retries it. If 502 errors persist, the model provider itself is down.Firmware: the placeholder that builds on your computer
Firmware won't compile on my machine
The default build tools on your computer need
gcc, a C compiler (a program that turns source code into a runnable program). --cross with arm-none-eabi-gcc only checks that the code compiles for an ARM target. Generated firmware is a placeholder that compiles and passes tests on your computer against a simulated register map. It must not be flashed to a chip.Still stuck?
Run the failing command again and save the full error output. The
decisions.json file in the project folder records the design decisions the agents made, in a form a program can read. It is the most direct way to see why MICA did what it did.