Giter VIP home page Giter VIP logo

Comments (4)

MaJerle avatar MaJerle commented on August 15, 2024

0.6.0 is as is, no patches available.

Where does lwgsm fails to return? Where does it stuck when entering debug mode?

from lwcell.

gadak avatar gadak commented on August 15, 2024

In lwgsm-develop branch -

Function trace -

Within - lwgsm_init(lwgsm_callback_func, 1); called from init_thread -

@ line no - 141 of (lwgsm.c) res = lwgsm_reset_with_delay(LWGSM_CFG_RESET_DELAY_DEFAULT, NULL, NULL, blocking); /* Send reset sequence with delay */

@ line no 2306 of (lwgsm_int.c)

if (res == lwgsmOK && msg->is_blocking) {   /* In case we have blocking request */
    uint32_t time;
    time = lwgsm_sys_sem_wait(&msg->sem, 0);/* Wait forever for semaphore */
    if (time == LWGSM_SYS_TIMEOUT) {        /* If semaphore was not accessed within given time */
        res = lwgsmTIMEOUT;                 /* Semaphore not released in time */
    } else {
        res = msg->res;                     /* Set response status from message response */
    }

How to print debug log? Do we need to redirect it to printf? As I am not able to verify what happens in the background

from lwcell.

MaJerle avatar MaJerle commented on August 15, 2024

By default, if you enable debug feature, it will use printf to redirect stream.

https://docs.majerle.eu/projects/lwgsm/en/latest/api-reference/lwgsm/debug.html

from lwcell.

PouyaMalek avatar PouyaMalek commented on August 15, 2024

In lwgsm-develop branch -

Function trace -

Within - lwgsm_init(lwgsm_callback_func, 1); called from init_thread -

@ line no - 141 of (lwgsm.c) res = lwgsm_reset_with_delay(LWGSM_CFG_RESET_DELAY_DEFAULT, NULL, NULL, blocking); /* Send reset sequence with delay */

@ line no 2306 of (lwgsm_int.c)

if (res == lwgsmOK && msg->is_blocking) {   /* In case we have blocking request */
    uint32_t time;
    time = lwgsm_sys_sem_wait(&msg->sem, 0);/* Wait forever for semaphore */
    if (time == LWGSM_SYS_TIMEOUT) {        /* If semaphore was not accessed within given time */
        res = lwgsmTIMEOUT;                 /* Semaphore not released in time */
    } else {
        res = msg->res;                     /* Set response status from message response */
    }

How to print debug log? Do we need to redirect it to printf? As I am not able to verify what happens in the background

Hello,I have same problem too. on stm32f103 , i debug my program and i found that interrupt routins of serial doesnt work

from lwcell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.