Skip to content

Problematic HW Loops on ESP32-P4 (DSP-158) #102

Open
@f4lc0n-asm

Description

@f4lc0n-asm

Answers checklist.

  • I have read the ESP-DSP documentation and the issue is not addressed there.
  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my ESP-DSP branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hello,

I just obtained a Rev. 1.0 ESP32-P4 DevKit. It seems that hw loops on P4 are not utilized by GCC for a reason - when the loop setup asm instruction is not aligned on a 4-byte boundary, the CPU sometimes goes haywire (PMP faults - load/store/instr_fetch). It looks like it can be cured by inserting the .balignw 4, 0x0001 directive above the loop setup instruction, which inserts a 16-bit c.nop instruction if req'd. The P4 hasn't overcome its teething problems so far :/

Anyone with more knowledge can elucidate this arcane CPU bug?

f4lc0n

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions