_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
shoragan has quit [Read error: Connection reset by peer]
shoragan has joined #litex
shoragan has quit [Remote host closed the connection]
shoragan has joined #litex
mtretter has quit [Read error: Connection reset by peer]
mtretter has joined #litex
CarlFK has joined #litex
Degi has quit [Ping timeout: 260 seconds]
Degi has joined #litex
d_olex_ has quit [Ping timeout: 252 seconds]
<kscz> okay - I'm caught in an infinite loop of isr handling????
<kscz> but the default handler looks like it should clear the interrupt flag and return
<kscz> breakpoints do not work so this is very hard to debug
CarlFK has quit [Ping timeout: 265 seconds]
CarlFK has joined #litex
FabM has joined #litex
FabM has joined #litex
FabM has quit [Changing host]
CarlFK has quit [Ping timeout: 260 seconds]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #litex
<kscz> why would just linking libliteeth cause infinite ISR handling?
<kscz> I am befuddled
<geertu> kscz: Are there any constructors in the library?
<kscz> not that I can spot?
<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
<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
<kscz> which normally indicates I'm doing something very wrong
<kscz> but I can't for the life of me figure out what
<kscz> https://github.com/enjoy-digital/litex/issues/2110 - it looks like the primary issue I'm running into was reported in October
<kscz> are other people not seeing this issue? Is it just me?
<kscz> are other people not seeing this issue?
<kscz> ack, sorry, meant to edit but forgot this is IRC for a moment
CarlFK1 has joined #litex
<kscz> Maybe there is something in .bss or .data which is causing an issue when crt0.S tries to initialize it?
<kscz> looking at the map file though, that seems unlikely
<geertu> Binary too large? Overlap with the isr? Is that address of the isr pinned in an assembler file?
<flygoat> kscz: Have you checked what exception is it in ISR? Sometimes exceptions like illegal memory access is also going into ISR.
CarlFK1 has quit [Quit: Leaving.]
d_olex has joined #litex
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #litex
CarlFK1 has joined #litex
CarlFK1 has quit [Client Quit]
<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
<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
<geertu> kscz: And the actual isr_vector and text.isr are still at the expected locations in the final binary?
<kscz> yes it appears so based on the map file
<kscz> do you know how to check the CSR registers from gdb?
<kscz> ahhha - okay, it's just "info register foo"
<kscz> alright, so about what I would expect - it says it's performing a misaligned load in .data initialization
<kscz> yep - no bueno:
<kscz> 66460: 0x000027c2 PROVIDE (_fdata_rom = LOADADDR (.data))
<kscz> does anyone know how to force the load address to be aligned???
<kscz> the sram section is aligned but the "AT > main_ram" section is not
<geertu> kscz: Probably that should be LOADADDR (_fdata)
<kscz> ..........
* kscz facepalms
<kscz> well that'll teach me to use someone else's linker script
<kscz> hm
<kscz> linker.ld:78: undefined section `_fdata' referenced in expression
<kscz> for the moment - I got it to work by patching the crt0.S
<kscz> and have it loading and storing bytes instead of words
<kscz> which slows down startup time, but it at least *works*
<geertu> kscz: Move the ". = ALIGN(8);" up, before .data
peepsalot has quit [Ping timeout: 260 seconds]
CarlFK has joined #litex
FabM has quit [Ping timeout: 276 seconds]
gurki has quit [*.net *.split]
Artea has quit [*.net *.split]
Foxyloxy has quit [*.net *.split]
Finde has quit [*.net *.split]
unkraut has quit [*.net *.split]
lambda has quit [*.net *.split]
indy has quit [*.net *.split]
_alice has quit [*.net *.split]
benh has quit [*.net *.split]
gurki has joined #litex
Foxyloxy has joined #litex
Artea has joined #litex
Finde has joined #litex
unkraut has joined #litex
indy has joined #litex
_alice has joined #litex
lambda has joined #litex
benh has joined #litex
Artea has quit [Max SendQ exceeded]
Artea has joined #litex
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #litex
peepsalot has joined #litex
ElfenKaiser has joined #litex
<kscz> @geertu I was actually surprised that didn't error out! But my linker still gave a misaligned symbol