Interrupts causing kernel dump



  • I played with interrupts when I first got the LoPy and they worked fine but I have come back to it and I am getting kernel dumps. I have tried different pins but I am sure that G17 button on the expansion board worked for me before.

    Firmware 9.6.b1.

    Steps to recreate

    >>> import micropython
    >>> from machine import Pin
    >>> micropython.alloc_emergency_exception_buf(100)
    >>> int_counter =0
    >>> def int_handler(pin_obj):
    ...     global int_counter
    ...     int_counter+=1
    ...     
    ...     
    ... 
    >>> button=Pin('G17', mode=Pin.IN, pull=Pin.PULL_UP)
    >>> button.irq(trigger=Pin.IRQ_RISING|Pin.IRQ_FALLING, handler=int_handler)
    <irq>
    

    -----> Push the button on the expansion board.

    >>> Guru Meditation Error of type LoadProhibited occurred on core   0. Exception was unhandled.
    Register dump:
    PC      :  40081a3e  PS      :  00060031  A0      :  80081784  A1      :  3ffd5700  
    A2      :  3ffb1da0  A3      :  0000000d  A4      :  3ffd57b8  A5      :  00400461  
    A6      :  ffffffff  A7      :  ffffffff  A8      :  80081a3e  A9      :  3ffd56e0  
    A10     :  00000000  A11     :  3ffc54a0  A12     :  3ffc54a0  A13     :  b33f0000  
    A14     :  b33fffff  A15     :  00000000  SAR     :  00000017  EXCCAUSE:  0000001c  
    EXCVADDR:  00000000  LBEG    :  00000000  LEND    :  00000000  LCOUNT  :  00000000  
    Rebooting...
    ets Jun  8 2016 00:22:57
    
    rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0x00
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:QIO, clock div:2
    load:0x3fff9010,len:8
    load:0x3fff9018,len:812
    ho 0 tail 12 room 4
    load:0x40078000,len:3692
    load:0x4009f000,len:944
    entry 0x4009f1f0
    ��XTAL 40Mct 20 2016 12:36:18
    I (880) phy: phy_version: 246, Nov 18 2016, 17:30:07, 0, 0
    


  • Hi,

    Can you please file an issue at https://github.com/pycom/pycom-micropython/issues? It's the best way of reporting your problem and tracking its status.

    Thank you


 

Pycom on Twitter