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

Build errors inside unicore? #2

Open
iandoesallthethings opened this issue Mar 28, 2024 · 3 comments
Open

Build errors inside unicore? #2

iandoesallthethings opened this issue Mar 28, 2024 · 3 comments

Comments

@iandoesallthethings
Copy link

iandoesallthethings commented Mar 28, 2024

I'm trying to flash this firmware onto a cheapo stm32f4 (weact brand? Not sure if it matters) but I'm getting stuck on the build step. I've been stumbling through getting all the dependencies squared away, but it seems like unicore-mx has some weird syntax errors. I've tried to debug it, but I'm pretty unfamiliar.

➜  muScribble git:(master) ✗ make flash
make -C unicore-mx TARGETS=stm32/f4 FP_FLAGS="-mfloat-abi=soft"
  GENHDR  include/unicore-mx/sam/3x/irq.json
  GENHDR  include/unicore-mx/sam/4l/irq.json
  GENHDR  include/unicore-mx/sam/3s/irq.json
  GENHDR  include/unicore-mx/sam/3a/irq.json
  GENHDR  include/unicore-mx/sam/3u/irq.json
  GENHDR  include/unicore-mx/sam/3n/irq.json
  GENHDR  include/unicore-mx/lpc17xx/irq.json
  GENHDR  include/unicore-mx/lpc13xx/irq.json
  GENHDR  include/unicore-mx/lpc43xx/m0/irq.json
  GENHDR  include/unicore-mx/lpc43xx/m4/irq.json
  GENHDR  include/unicore-mx/stm32/f4/irq.json
  GENHDR  include/unicore-mx/stm32/f3/irq.json
  GENHDR  include/unicore-mx/stm32/l4/irq.json
  GENHDR  include/unicore-mx/stm32/f2/irq.json
  GENHDR  include/unicore-mx/stm32/l0/irq.json
  GENHDR  include/unicore-mx/stm32/f0/irq.json
  GENHDR  include/unicore-mx/stm32/f7/irq.json
  GENHDR  include/unicore-mx/stm32/l1/irq.json
  GENHDR  include/unicore-mx/stm32/f1/irq.json
  GENHDR  include/unicore-mx/nrf/51/irq.json
  GENHDR  include/unicore-mx/nrf/52/irq.json
  GENHDR  include/unicore-mx/lm3s/irq.json
  GENHDR  include/unicore-mx/efm32/gg/irq.json
  GENHDR  include/unicore-mx/efm32/g/irq.json
  GENHDR  include/unicore-mx/efm32/lg/irq.json
  GENHDR  include/unicore-mx/efm32/tg/irq.json
  GENHDR  include/unicore-mx/vf6xx/irq.json
  BUILD   lib/stm32/f4
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: *** [Makefile:70: lib/stm32/f4] Error 2
make: *** [Makefile:47: unicore-mx/lib/libucmx_stm32f4.a] Error 2

Any idea what's going wrong here?

Edit: For the record, I also tried building in ubuntu running inside parallels. Similar errors, but slightly different messages. I'm not sure if the fact that it's apple silicon/arm would matter since they're syntax errors. I don't currently have an intel machine to try it on.

Edit: just had the thought that it could be a line ending thing maybe? I'll try windows if I can get parallels working.

@iandoesallthethings
Copy link
Author

Update: Trying it on debian 11 and getting the same errors, so I don't think it's a macos problem.

@iandoesallthethings iandoesallthethings changed the title Build errors on an m1 mac Build errors inside unicore? Apr 22, 2024
@biappi
Copy link
Owner

biappi commented May 5, 2024

hi! I'm having issues as well on my personal machine (an arm mac as well), albeit different ones... I think unicore-mx has a bit bit rotten over the years unfortunately :( I tried to quickly swap in libopencm3, but the usb stack is different enough that's not a direct recompilation.

I currently don't have much time to try and port this, but have you maybe looked into hacking the application code to work with an HAL library that works on your platform? as long as you have midi input and spi output you should be able to hack something working

@iandoesallthethings
Copy link
Author

iandoesallthethings commented May 6, 2024

but have you maybe looked into hacking the application code to work with an HAL library that works on your platform? as long as you have midi input and spi output you should be able to hack something working

Yeah, I'm interested in giving it a go! I'm pretty unfamiliar with this space (I'm a web dev by trade), so I'm unsure what to look for in a HAL. But if it's just a matter of replacing anything that uses unicore-mx with something else that does the same thing, I feel like I can probably figure it out.

My only other shortcut is to ask if you happen to have an old compiled binary laying around and hope my chip (stm32f411ce) is similar enough

Edit: lol this is hard
noidea

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

2 participants