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

[Help] Trouble running rust on xmc4500 relax lite kit #78

Open
SirWalross opened this issue Nov 25, 2023 · 2 comments
Open

[Help] Trouble running rust on xmc4500 relax lite kit #78

SirWalross opened this issue Nov 25, 2023 · 2 comments

Comments

@SirWalross
Copy link

Hello,

i have trouble running rust on my xmc4500 relax lite kit. Here is my project: https://github.com/SirWalross/xmc4500-rust. I can compile the project with cargo build, but if i try to debug it with the JLinkGDBServer using cargo run it never reaches the main function.

If i step in gdb it just gives me some weird error messages: Internal error: pc 0xbc4 in read in CU, but not in symtab.

I would very much appreciate any help, tips or information what i am doing wrong. Thanks in advance.


using

  • arm-none-eabi-gcc 13.2.0
  • arm-none-eabi-gdb 13.2
  • JLinkGDBServer V7.92o
  • rustc 1.74.0
@SirWalross
Copy link
Author

Ok, turns out the provided linker file doesn't work for some reason, with a custom memory.x file it works now.

But i have another question, how do you define an interrupt handler? For example the stm32f3 library exports a interrupt macro, but i couldn't find the counterpart for the xmc4500. Could you provide an example for defining one?

Thanks in advance.

@lucasbrendel
Copy link
Collaborator

Glad you were able to figure it out. I have sadly not been able to put the time in to these that I have wanted to so they are very incomplete. I am open to any PR that you want to contribute.

I myself have an XMC42xx kit and hope to attempt better work on these in the coming weeks.

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