I am having problems with the dma access methods as they use exceptions and seemed to cause a fatal crash when called. So I setup a standalone test and it looks like for some reason exceptions don’t work at all. When I run the code here: https://gitlab.com/nemach-embedded/maix-pio-exceptions I get
W (39691089) SYSCALL: sys_exit called with 0x1
Does anyone know why exceptions are disabled or how to enable them?
@maxgerhardt Thank you for the investigation and comprehensive reply - it’s really helpful for me to understand your investigation process and not just the conclusion! I will try what you suggest later today and report findings.
But unfortunately I’m not sure how to get this into the platformio build process. The crt files are all currently included in the LINKFLAGS. Is it possible to split them? Or is there another way to reorder symbols, eg using the kendryte.ld files? Any hints appreciated…
…I don’t think it’s good that these libraries appear twice and also that stdc++ only appears in LIBS but not in the custom LINKFLAGS – I think that’s double. Maybe it works when LIBS is an empty array and all is in the linker flags? Or only the starting libs are in LIBS but the ending stuff is in LINKFLAGS?