*** tpb <[email protected]> has joined #litex | 00:00 | |
*** shoragan <shoragan!~shoragan@user/shoragan> has quit IRC (Read error: Connection reset by peer) | 01:17 | |
*** shoragan <shoragan!~shoragan@user/shoragan> has joined #litex | 01:20 | |
*** shoragan <shoragan!~shoragan@user/shoragan> has quit IRC (Remote host closed the connection) | 01:22 | |
*** shoragan <shoragan!~shoragan@user/shoragan> has joined #litex | 01:23 | |
*** mtretter <[email protected]> has quit IRC (Read error: Connection reset by peer) | 01:27 | |
*** mtretter <[email protected]> has joined #litex | 01:32 | |
*** CarlFK <[email protected]> has joined #litex | 02:15 | |
*** Degi <[email protected]> has quit IRC (Ping timeout: 260 seconds) | 02:29 | |
*** Degi <[email protected]> has joined #litex | 02:33 | |
*** d_olex_ <d_olex_!~d_olex@user/d-olex:35658> has quit IRC (Ping timeout: 252 seconds) | 03:04 | |
kscz | okay - I'm caught in an infinite loop of isr handling???? | 05:55 |
---|---|---|
kscz | but the default handler looks like it should clear the interrupt flag and return | 05:55 |
kscz | breakpoints do not work so this is very hard to debug | 05:55 |
*** CarlFK <[email protected]> has quit IRC (Ping timeout: 265 seconds) | 06:13 | |
*** CarlFK <[email protected]> has joined #litex | 06:14 | |
*** FabM <FabM!~FabM@2a03:d604:114:5b00:21de:9d5d:443f:66aa> has joined #litex | 07:03 | |
*** CarlFK <[email protected]> has quit IRC (Ping timeout: 260 seconds) | 07:08 | |
*** TMM <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 07:30 | |
*** TMM <[email protected]> has joined #litex | 07:30 | |
kscz | why would just linking libliteeth cause infinite ISR handling? | 07:36 |
kscz | I am befuddled | 07:36 |
geertu | kscz: Are there any constructors in the library? | 07:38 |
kscz | not that I can spot? | 07:40 |
kscz | and the crt0.S doesn't even call global initializers so I would expect I need to make it somewhere in the code for there to be a failure due to a constructor | 07:41 |
kscz | I mean, this feels like something someone else using libLiteEth would have spotted already... I guess I am mostly befuddled because I don't feel like I'm pushing very hard on the frameworks and I'm running into a lot of issues | 07:42 |
kscz | which normally indicates I'm doing something very wrong | 07:43 |
kscz | but I can't for the life of me figure out what | 07:43 |
kscz | https://github.com/enjoy-digital/litex/issues/2110 - it looks like the primary issue I'm running into was reported in October | 07:43 |
kscz | are other people not seeing this issue? Is it just me? | 07:44 |
kscz | are other people not seeing this issue? | 07:44 |
kscz | ack, sorry, meant to edit but forgot this is IRC for a moment | 07:44 |
*** CarlFK1 <[email protected]> has joined #litex | 07:50 | |
kscz | Maybe there is something in .bss or .data which is causing an issue when crt0.S tries to initialize it? | 07:59 |
kscz | looking at the map file though, that seems unlikely | 07:59 |
geertu | Binary too large? Overlap with the isr? Is that address of the isr pinned in an assembler file? | 08:38 |
flygoat | kscz: Have you checked what exception is it in ISR? Sometimes exceptions like illegal memory access is also going into ISR. | 08:45 |
*** CarlFK1 <[email protected]> has quit IRC (Quit: Leaving.) | 09:18 | |
*** d_olex <d_olex!~d_olex@user/d-olex:35658> has joined #litex | 09:32 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:226:6d6b:7604:6352:1517> has quit IRC (Read error: Connection reset by peer) | 09:51 | |
*** cr1901 <cr1901!~cr1901@2601:8d:8600:226:e081:79bf:1ba5:5b21> has joined #litex | 09:57 | |
*** CarlFK1 <[email protected]> has joined #litex | 10:07 | |
*** CarlFK1 <[email protected]> has quit IRC (Client Quit) | 10:09 | |
kscz | @geertu - I don't think the binary is too large as I tend to get compiler errors when I spill over the ram or rom size. Not sure what you mean by "overlap with the ISR"? The ISR is pinned in the linker file - https://github.com/kscz/wyrm/blob/debug_bridge/software/linker.ld#L8-L22 | 14:13 |
kscz | @flygoat I will try but the debugger is *very* slow and spits out a lot of errors while running. I need to go find a good reference on checking exceptions in riscv | 14:15 |
geertu | kscz: And the actual isr_vector and text.isr are still at the expected locations in the final binary? | 14:16 |
kscz | yes it appears so based on the map file | 14:22 |
kscz | do you know how to check the CSR registers from gdb? | 14:23 |
kscz | ahhha - okay, it's just "info register foo" | 14:31 |
kscz | alright, so about what I would expect - it says it's performing a misaligned load in .data initialization | 14:34 |
kscz | yep - no bueno: | 14:51 |
kscz | 66460: 0x000027c2 PROVIDE (_fdata_rom = LOADADDR (.data)) | 14:51 |
kscz | does anyone know how to force the load address to be aligned??? | 15:06 |
kscz | https://github.com/kscz/wyrm/blob/debug_bridge/software/linker.ld#L53 | 15:07 |
kscz | the sram section is aligned but the "AT > main_ram" section is not | 15:07 |
geertu | kscz: Probably that should be LOADADDR (_fdata) | 15:27 |
kscz | .......... | 15:27 |
* kscz facepalms | 15:27 | |
kscz | well that'll teach me to use someone else's linker script | 15:27 |
kscz | hm | 15:30 |
kscz | linker.ld:78: undefined section `_fdata' referenced in expression | 15:30 |
kscz | for the moment - I got it to work by patching the crt0.S | 15:31 |
kscz | and have it loading and storing bytes instead of words | 15:31 |
kscz | which slows down startup time, but it at least *works* | 15:31 |
geertu | kscz: Move the ". = ALIGN(8);" up, before .data | 15:38 |
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 260 seconds) | 16:32 | |
*** CarlFK <[email protected]> has joined #litex | 16:49 | |
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 276 seconds) | 17:21 | |
*** gurki <gurki!~gurki@user/gurki> has quit IRC (*.net *.split) | 18:20 | |
*** Artea <[email protected]> has quit IRC (*.net *.split) | 18:20 | |
*** Foxyloxy <Foxyloxy!~foxyloxy@shef-16-b2-v4wan-169484-cust1844.vm3.cable.virginm.net> has quit IRC (*.net *.split) | 18:20 | |
*** Finde <[email protected]> has quit IRC (*.net *.split) | 18:20 | |
*** unkraut <[email protected]> has quit IRC (*.net *.split) | 18:20 | |
*** lambda <[email protected]> has quit IRC (*.net *.split) | 18:20 | |
*** indy <[email protected]> has quit IRC (*.net *.split) | 18:20 | |
*** _alice <[email protected]> has quit IRC (*.net *.split) | 18:20 | |
*** benh <[email protected]> has quit IRC (*.net *.split) | 18:20 | |
*** gurki <gurki!~gurki@user/gurki> has joined #litex | 18:22 | |
*** Artea <[email protected]> has joined #litex | 18:22 | |
*** Foxyloxy <Foxyloxy!~foxyloxy@shef-16-b2-v4wan-169484-cust1844.vm3.cable.virginm.net> has joined #litex | 18:22 | |
*** Finde <[email protected]> has joined #litex | 18:22 | |
*** unkraut <[email protected]> has joined #litex | 18:22 | |
*** lambda <[email protected]> has joined #litex | 18:22 | |
*** indy <[email protected]> has joined #litex | 18:22 | |
*** _alice <[email protected]> has joined #litex | 18:22 | |
*** benh <[email protected]> has joined #litex | 18:22 | |
*** Artea <[email protected]> has quit IRC (Max SendQ exceeded) | 18:22 | |
*** Artea <[email protected]> has joined #litex | 18:36 | |
*** TMM <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 20:56 | |
*** TMM <[email protected]> has joined #litex | 20:56 | |
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex | 21:14 | |
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a540-eda4-0-3330-5b7c-d640-bf86.ipv6dyn.netcologne.de> has joined #litex | 21:54 | |
kscz | @geertu I was actually surprised that didn't error out! But my linker still gave a misaligned symbol | 23:49 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!