Skip to content

Conflicts with Audio lib - impossible constraint in 'asm' #16

@DennisSchm

Description

@DennisSchm

Hello!
This is a really great and helpful project!
However there seems to be a problem when you want to use it in conjunction with the Teensy Audio lib (https://github.com/PaulStoffregen/Audio).
When including both libs (TeensyDebug needs to be defined first to avoid other warnings) I get

impossible constraint in 'asm'

as an error in the file "Audio\utility\dspinst.h" at line 38

asm volatile("ssat %0, %1, %2, asr %3" : "=r" (out) : "I" (bits), "r" (val), "I" (rshift));

and the following warning

asm operand 3 probably doesn't match constraints Audio/utility/dspinst.h:38:92: warning: asm operand 1 probably doesn't match constraints asm volatile("ssat %0, %1, %2, asr %3" : "=r" (out) : "I" (bits), "r" (val), "I" (rshift));

is there a way to resolve this issue?

I am using PlatformIO (Core 5.2.5) and VSCode. I tried different platformio.init configurations but my recent one is as adviced.

[env:teensy41]
platform = teensy
board = teensy41
framework = arduino

build_type = debug
build_flags = 
  -D USB_DUAL_SERIAL
build_unflags = -D USB_SERIAL
debug_port = \\.\COM3
debug_tool = custom
debug_load_mode = manual
debug_server = 
debug_init_cmds =
  target extended-remote $DEBUG_PORT
  $INIT_BREAK
  define pio_reset_run_target
  interrupt
  tbreak loop
  continue
  end
  define pio_restart_target
  echo Restart is undefined for now.
  end
debug_init_break =

I am using the latest version from GitHub of TeensyDebug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions