Wednesday, 2025-01-15

*** tpb <[email protected]> has joined #litex00:00
*** shoragan <shoragan!~shoragan@user/shoragan> has quit IRC (Read error: Connection reset by peer)01:17
*** shoragan <shoragan!~shoragan@user/shoragan> has joined #litex01:20
*** shoragan <shoragan!~shoragan@user/shoragan> has quit IRC (Remote host closed the connection)01:22
*** shoragan <shoragan!~shoragan@user/shoragan> has joined #litex01:23
*** mtretter <[email protected]> has quit IRC (Read error: Connection reset by peer)01:27
*** mtretter <[email protected]> has joined #litex01:32
*** CarlFK <[email protected]> has joined #litex02:15
*** Degi <[email protected]> has quit IRC (Ping timeout: 260 seconds)02:29
*** Degi <[email protected]> has joined #litex02:33
*** d_olex_ <d_olex_!~d_olex@user/d-olex:35658> has quit IRC (Ping timeout: 252 seconds)03:04
ksczokay - I'm caught in an infinite loop of isr handling????05:55
ksczbut the default handler looks like it should clear the interrupt flag and return05:55
ksczbreakpoints do not work so this is very hard to debug05:55
*** CarlFK <[email protected]> has quit IRC (Ping timeout: 265 seconds)06:13
*** CarlFK <[email protected]> has joined #litex06:14
*** FabM <FabM!~FabM@2a03:d604:114:5b00:21de:9d5d:443f:66aa> has joined #litex07: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 #litex07:30
ksczwhy would just linking libliteeth cause infinite ISR handling?07:36
ksczI am befuddled07:36
geertukscz: Are there any constructors in the library?07:38
kscznot that I can spot?07:40
ksczand 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 constructor07:41
ksczI 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 issues07:42
ksczwhich normally indicates I'm doing something very wrong07:43
ksczbut I can't for the life of me figure out what07:43
ksczhttps://github.com/enjoy-digital/litex/issues/2110 - it looks like the primary issue I'm running into was reported in October07:43
ksczare other people not seeing this issue? Is it just me?07:44
ksczare other people not seeing this issue?07:44
ksczack, sorry, meant to edit but forgot this is IRC for a moment07:44
*** CarlFK1 <[email protected]> has joined #litex07:50
ksczMaybe there is something in .bss or .data which is causing an issue when crt0.S tries to initialize it?07:59
ksczlooking at the map file though, that seems unlikely07:59
geertuBinary too large? Overlap with the isr? Is that address of the isr pinned in an assembler file?08:38
flygoatkscz: 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 #litex09: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 #litex09:57
*** CarlFK1 <[email protected]> has joined #litex10: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-L2214: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 riscv14:15
geertukscz: And the actual isr_vector and text.isr are still at the expected locations in the final binary?14:16
ksczyes it appears so based on the map file14:22
ksczdo you know how to check the CSR registers from gdb?14:23
ksczahhha - okay, it's just "info register foo"14:31
ksczalright, so about what I would expect - it says it's performing a misaligned load in .data initialization14:34
ksczyep - no bueno:14:51
kscz66460:                0x000027c2                        PROVIDE (_fdata_rom = LOADADDR (.data))14:51
ksczdoes anyone know how to force the load address to be aligned???15:06
ksczhttps://github.com/kscz/wyrm/blob/debug_bridge/software/linker.ld#L5315:07
ksczthe sram section is aligned but the "AT > main_ram" section is not15:07
geertukscz: Probably that should be LOADADDR (_fdata)15:27
kscz..........15:27
* kscz facepalms15:27
ksczwell that'll teach me to use someone else's linker script15:27
ksczhm15:30
ksczlinker.ld:78: undefined section `_fdata' referenced in expression15:30
ksczfor the moment - I got it to work by patching the crt0.S15:31
ksczand have it loading and storing bytes instead of words15:31
ksczwhich slows down startup time, but it at least *works*15:31
geertukscz: Move the ". = ALIGN(8);" up, before .data15:38
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 260 seconds)16:32
*** CarlFK <[email protected]> has joined #litex16: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 #litex18:22
*** Artea <[email protected]> has joined #litex18:22
*** Foxyloxy <Foxyloxy!~foxyloxy@shef-16-b2-v4wan-169484-cust1844.vm3.cable.virginm.net> has joined #litex18:22
*** Finde <[email protected]> has joined #litex18:22
*** unkraut <[email protected]> has joined #litex18:22
*** lambda <[email protected]> has joined #litex18:22
*** indy <[email protected]> has joined #litex18:22
*** _alice <[email protected]> has joined #litex18:22
*** benh <[email protected]> has joined #litex18:22
*** Artea <[email protected]> has quit IRC (Max SendQ exceeded)18:22
*** Artea <[email protected]> has joined #litex18:36
*** TMM <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)20:56
*** TMM <[email protected]> has joined #litex20:56
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex21:14
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a540-eda4-0-3330-5b7c-d640-bf86.ipv6dyn.netcologne.de> has joined #litex21:54
kscz@geertu I was actually surprised that didn't error out! But my linker still gave a misaligned symbol23:49

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!