logo elektroda
logo elektroda
X
logo elektroda

HAL IRQ Shift with OpenBK7231T_App PR #1768 – Ongoing Testing and Results

divadiow 63 6
ADVERTISEMENT
  • #1 21640508
    divadiow
    Level 35  
    continuation of discussions and testing regarding the shift of interrupts to HAL.

    p.kaczmarek2 wrote:
    Ok @divadiow create a thread and start testing, I will join when I can. You know the procedure - just a button on GPIO and coutner role.


    Related/origins:
    https://www.elektroda.com/rtvforum/viewtopic.php?p=21640396#21640396
    https://www.elektroda.com/rtvforum/viewtopic.php?p=21638663#21638663

    https://github.com/openshwprojects/OpenBK7231T_App/pull/1768
  • ADVERTISEMENT
  • #2 21640515
    p.kaczmarek2
    Moderator Smart Home
    This should be easy to test, considering that most (if not all?) of dev boards have user-configurable button.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21640579
    divadiow
    Level 35  
    ESP8266 1768_merge_a8731bd804dc

    seen at boot with Counter_f configured GPIO4
    Code: Text
    Log in, to see the code


    then grounding IO4 =

    Code: Text
    Log in, to see the code
  • ADVERTISEMENT
  • #4 21640606
    p.kaczmarek2
    Moderator Smart Home
    Well, this indeed is called in previos bl0937 code:
    
    
    #elif PLATFORM_ESPIDF || PLATFORM_ESP8266
    
       esp_cf = g_pins + GPIO_HLW_CF;
       esp_cf1 = g_pins + GPIO_HLW_CF1;
       gpio_install_isr_service(0);
    

    Wait, but I do call it for ESP?
    HAL IRQ Shift with OpenBK7231T_App PR #1768 – Ongoing Testing and Results
    Helpful post? Buy me a coffee.
  • #5 21640607
    divadiow
    Level 35  
    XF16

    Code: Text
    Log in, to see the code
  • #6 21640609
    p.kaczmarek2
    Moderator Smart Home
    ah maybe it tries to remove twice, I pushed a guard:
    HAL IRQ Shift with OpenBK7231T_App PR #1768 – Ongoing Testing and Results
    Probably HAL_DetachInterrupt gets called from PIN_SetPinRoleForPinIndex even when it was not attached earlier
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 21640639
    divadiow
    Level 35  
    W600 https://wiki.seeedstudio.com/Air602_WiFi_Development_Board/

    no ACK of pin ground on PB8

    when saving PB11 or PB12 Counter_f assignment:

    Code: Text
    Log in, to see the code


    RTS/PB10 saves but no gnd ack counter

    Added after 19 [minutes]:

    >>21640639

    only one thing enabled for IRQ?

    IO_UART_RX

    https://github.com/search?q=repo%3Aopenshwpro...%2FOpenW600+tls_gpio_irq_enable&type=code
ADVERTISEMENT