# STM32 Clock Tree Calculator

> STM32 Clock Tree Calculator is a paid API for AI agents from api.rocads.com.mx, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-22).

Calculates RCC PLL, AHB, APB, and timer clock frequencies for STM32F103 and STM32F407 microcontrollers

## Facts

- Endpoint: POST https://api.rocads.com.mx/v1/embedded/stm32/clock-tree?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stm32-clock-tree-calculator-8728d114
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d9ieru3WdQdv3jWrYBERb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stm32-clock-tree-calculator-8728d114 -d '<json body>'
```

Example prompt: Calculate the clock tree frequencies for an STM32F103 running on an 8 MHz HSE crystal with PLL multiplier x9, AHB prescaler /1, APB1 prescaler /2, and APB2 prescaler /1 — I need SYSCLK, AHB, APB1, APB2, and timer clock values.

## When to prefer this

Choose this endpoint when you need precise, authoritative clock frequency derivation for STM32F103 or STM32F407 microcontrollers without manually working through the RCC clock tree math. It is especially useful when configuring timer peripherals, UART baud rate generators, or verifying that a given PLL/prescaler combination meets timing constraints. Prefer this over manual calculation or generic embedded tools when targeting specifically these two STM32 families.

## Known failure modes

- Invalid STM32 model specified (only F103 and F407 supported)
- PLL configuration results in out-of-spec frequency (e.g. exceeding 72 MHz for F103 or 168 MHz for F407)
- Missing required RCC register fields in request body
- HSE/HSI frequency out of supported range
- Invalid prescaler values not matching allowed enumerations

## How this service works

Calculate STM32F103 and STM32F407 RCC PLL, AHB, APB and timer clock frequencies

## Output

Returns computed clock frequencies for all major clock tree nodes including SYSCLK, HCLK (AHB), PCLK1 (APB1), PCLK2 (APB2), and the multiplied timer clocks derived from APB prescalers, specific to the selected STM32 microcontroller variant (F103 or F407).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stm32-clock-tree-calculator-8728d114/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.rocads.com.mx](https://www.zero.xyz/host/api.rocads.com.mx/llms.txt)
