Monday, 2024-01-29

*** tpb <[email protected]> has joined #litex00:00
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a541-4378-0-f759-964f-4adf-bea5.ipv6dyn.netcologne.de> has quit IRC (Quit: Konversation terminated!)01:23
*** Degi <[email protected]> has quit IRC (Ping timeout: 276 seconds)01:39
*** Degi <[email protected]> has joined #litex01:40
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)05:03
*** TMM_ <[email protected]> has joined #litex05:03
*** cr1901 <cr1901!~cr1901@2601:8d:8600:226:909:34b4:931e:9f8a> has quit IRC (Quit: Leaving)05:50
*** cr1901 <cr1901!~cr1901@2601:8d:8600:226:9c9a:d17d:ade8:872c> has joined #litex05:50
*** FabM <FabM!~FabM@2a03:d604:103:600:2e60:8c7c:e8fb:7990> has joined #litex07:35
*** Momber <Momber!~Momber@p200300caa709880acc44169e0e066e48.dip0.t-ipconnect.de> has joined #litex10:44
MomberHey everyone,10:46
MomberI'm currently trying to build litex with working interrupts for the buttons on the arty a7 with vexriscv cpu.10:53
MomberWhen i'm adding the following code to my BaseSoc class10:53
Momberself.buttons = GPIOIn(10:53
Momber                pads     = platform.request_all("user_btn"),10:53
Momber                with_irq = self.irq.enabled10:53
Momber            )10:53
Momberthe csr regions get correctly created, but the interrupt lines are not created.10:53
MomberIn my understanding, the with_irq param should autocreate the interrupts. Am I missing something obvious?10:53
MomberMy guess is, that the add_irq() function in the _GPIOIRQ class in gpio.py is doing something different than what I expect it to do, or doesn't get called at all.11:00
MomberBut any help pointing me in the right direction is appreciated. Thank you11:00
geertuMomber: Does reading the button state (without interrupts) work?11:04
MomberYes, I can use the buttons_in_read function in the generated csr.h file.11:11
MomberWhat I was expecting for the interrupts, was that in the generated soc.h file I will have a interrupt define for the the buttons aswell. Currently I tried it with the standard generation script, which gives me interrupts for a timer and the uart. With the added button, the list does not get extended for the 4 buttons I would expect something like11:11
MomberCONFIG_CPU_INTERRUPTS 411:11
MomberAnd with a button defined in renode and mapped to the expected address, i get correct values for the buttons_in_read() function based on the button state11:13
Mombersry* CONFIG_CPU_INTERRUPTS 6 was what i meant. 1 timer + 1 uart + 4 buttons11:16
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)15:00
*** TMM_ <[email protected]> has joined #litex15:00
*** Momber <Momber!~Momber@p200300caa709880acc44169e0e066e48.dip0.t-ipconnect.de> has quit IRC (Quit: Client closed)15:33
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a541-4378-0-f759-964f-4adf-bea5.ipv6dyn.netcologne.de> has joined #litex17:24
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a541-4378-0-f759-964f-4adf-bea5.ipv6dyn.netcologne.de> has quit IRC (Remote host closed the connection)19:27
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a541-4378-0-cfae-dfa0-1c91-d562.ipv6dyn.netcologne.de> has joined #litex19:28
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 260 seconds)19:56
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a541-4378-0-cfae-dfa0-1c91-d562.ipv6dyn.netcologne.de> has quit IRC (Quit: Konversation terminated!)21:17

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