Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DennisSchm opened this issue Apr 1, 2022 · 0 comments
Open

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

DennisSchm opened this issue Apr 1, 2022 · 0 comments

Comments

@DennisSchm
Copy link

DennisSchm commented Apr 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant