Skip to content

Assertion failure running emulator on Windows #6

@codaris

Description

@codaris

I cross-compiled the Pebble emulator for Windows and I get the following runtime assertion failure:

Assertion failed: clk != NULL, file qemu/hw/arm/stm32_rcc.c, line 32

The assert is located here:

void stm32_rcc_set_periph_clk_irq(
        Stm32Rcc *s,
        stm32_periph_t periph,11
        qemu_irq periph_irq)
{
    Clk clk = s->PERIPHCLK[periph];

    assert(clk != NULL);

    clktree_adduser(clk, periph_irq);
}

This is called from the stm32_uart_init function:

    /* Register handlers to handle updates to the USART's peripheral clock. */
    clk_irq =
          qemu_allocate_irqs(stm32_uart_clk_irq_handler, (void *)s, 1);
    stm32_rcc_set_periph_clk_irq(s->stm32_rcc, s->periph, clk_irq[0]);

I don't really expect a solution but I thought I'd post this in case it's something obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions