*** tpb <[email protected]> has joined #litex | 00: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 #litex | 01:40 | |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 05:03 | |
*** TMM_ <[email protected]> has joined #litex | 05: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 #litex | 05:50 | |
*** FabM <FabM!~FabM@2a03:d604:103:600:2e60:8c7c:e8fb:7990> has joined #litex | 07:35 | |
*** Momber <Momber!~Momber@p200300caa709880acc44169e0e066e48.dip0.t-ipconnect.de> has joined #litex | 10:44 | |
Momber | Hey everyone, | 10:46 |
---|---|---|
Momber | I'm currently trying to build litex with working interrupts for the buttons on the arty a7 with vexriscv cpu. | 10:53 |
Momber | When i'm adding the following code to my BaseSoc class | 10:53 |
Momber | self.buttons = GPIOIn( | 10:53 |
Momber | pads = platform.request_all("user_btn"), | 10:53 |
Momber | with_irq = self.irq.enabled | 10:53 |
Momber | ) | 10:53 |
Momber | the csr regions get correctly created, but the interrupt lines are not created. | 10:53 |
Momber | In my understanding, the with_irq param should autocreate the interrupts. Am I missing something obvious? | 10:53 |
Momber | My 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 |
Momber | But any help pointing me in the right direction is appreciated. Thank you | 11:00 |
geertu | Momber: Does reading the button state (without interrupts) work? | 11:04 |
Momber | Yes, I can use the buttons_in_read function in the generated csr.h file. | 11:11 |
Momber | What 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 like | 11:11 |
Momber | CONFIG_CPU_INTERRUPTS 4 | 11:11 |
Momber | And 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 state | 11:13 |
Momber | sry* CONFIG_CPU_INTERRUPTS 6 was what i meant. 1 timer + 1 uart + 4 buttons | 11:16 |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 15:00 | |
*** TMM_ <[email protected]> has joined #litex | 15: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 #litex | 17: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 #litex | 19: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/!