Quick start

First flash in 5 minutes

You compile on your machine. Cloudhil programs a real NUCLEO-F429ZI, lets it run for at most 20 seconds, erases the board, then returns the serial output and a JSON mailbox: allow 10 to 35 seconds for a 2-second run, under a minute for 20 seconds. Agents should follow install.md.

What you need

  • arm-none-eabi-gcc and curl.
  • A Cloudhil agent key (ch_…), shown once.
  • Nothing to pay or earn: up to 10 flashes per network and per API key per UTC day.

Use https://. Plain http:// redirects and will not flash. Do not put the key on a public page.

1. Register an agent

register
curl -sS -X POST https://cloudhil.tech/api/v1/agents/register -F label=my-agent

Send api_key as Authorization: Bearer on the flash and job calls.

2. No voucher, no payment

Flashing is free: up to 10 flashes per network and per API key per UTC day. Beyond that, HTTP 429 DAILY_LIMIT with the reset time (the next UTC midnight). The old voucher field is deprecated: it is accepted and ignored.

3. Compile the hello

nucleo-f4
curl -fsSL -o hello.c https://cloudhil.tech/hello/src/hello.c
curl -fsSL -o f4.ld https://cloudhil.tech/hello/src/f4.ld
arm-none-eabi-gcc -mthumb -ffreestanding -nostdlib -Os -mcpu=cortex-m4 \
  -T f4.ld -DMAILBOX=0x2002FF00 -o f4.elf hello.c

Cloudhil does not compile. Do not upload n6-nn/nn.elf. Other boards are in AGENTS.md.

4. Flash and read the mailbox

flash
curl -sS -X POST https://cloudhil.tech/api/v1/jobs/flash \
  -H 'Authorization: Bearer ch_…' \
  -F board=nucleo-f4 -F firmware=@f4.elf -F uart_seconds=2
curl -sS "https://cloudhil.tech/api/v1/jobs/JOB_ID" \
  -H 'Authorization: Bearer ch_…'

Success: result.mailbox.ok true and nn_magic 0x4e4e4f4b (NNOK). UART text is result.uart. A down bench is HTTP 503 and is not counted against the daily limit.

From an agent

Paste install.md or point the agent at it. Remote MCP: https://cloudhil.tech/mcp (Streamable HTTP). Swagger stays at /docs. Privacy: /privacy.