Coder Social home page Coder Social logo

Comments (4)

benvonhandorf avatar benvonhandorf commented on May 25, 2024

In case it's relevant, here are the chip_id and flash_id results:

~/tools/esp/blackmagic-espidf$ esptool.py --chip esp8266 --port /dev/ttyUSB2 chip_id
esptool.py v3.0-dev
Serial port /dev/ttyUSB2
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:68:22:57
Uploading stub...
Running stub...
Stub running...
Chip ID: 0x00682257
Hard resetting via RTS pin...
~/tools/esp/blackmagic-espidf$ esptool.py --chip esp8266 --port /dev/ttyUSB2 flash_id
esptool.py v3.0-dev
Serial port /dev/ttyUSB2
Connecting......
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:68:22:57
Uploading stub...
Running stub...
Stub running...
Manufacturer: 5e
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...

from blackmagic-espidf.

benvonhandorf avatar benvonhandorf commented on May 25, 2024

Got GDB stub in place and working.

0x402232a3 in xQueueGenericSend (xQueue=0x0, pvItemToQueue=pvItemToQueue@entry=0x3fffbfac, xTicksToWait=xTicksToWait@entry=4294967295, xCopyPosition=xCopyPosition@entry=0)
    at /home/benvh/tools/esp/blackmagic-espidf/ESP8266_RTOS_SDK/components/freertos/freertos/queue.c:752
752				if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
(gdb) bt
#0  0x402232a3 in xQueueGenericSend (xQueue=0x0, pvItemToQueue=pvItemToQueue@entry=0x3fffbfac, xTicksToWait=xTicksToWait@entry=4294967295, xCopyPosition=xCopyPosition@entry=0)
    at /home/benvh/tools/esp/blackmagic-espidf/ESP8266_RTOS_SDK/components/freertos/freertos/queue.c:752
#1  0x4022ae2c in sys_mbox_post (mbox=mbox@entry=0x40106a5c <mbox>, msg=msg@entry=0x3fffbfcc) at /home/benvh/tools/esp/blackmagic-espidf/ESP8266_RTOS_SDK/components/lwip/port/esp8266/freertos/sys_arch.c:207
#2  0x4022b16d in tcpip_send_msg_wait_sem (fn=fn@entry=0x4024e460 <lwip_netconn_do_newconn>, apimsg=apimsg@entry=0x3fffc010, sem=0x40107750)
    at /home/benvh/tools/esp/blackmagic-espidf/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/tcpip.c:357
#3  0x4024d524 in netconn_apimsg (fn=0x4024e460 <lwip_netconn_do_newconn>, apimsg=apimsg@entry=0x3fffc010) at /home/benvh/tools/esp/blackmagic-espidf/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/api_lib.c:105
#4  0x4024d6cd in netconn_new_with_proto_and_callback (t=<optimized out>, proto=0 '\000', callback=<optimized out>)
    at /home/benvh/tools/esp/blackmagic-espidf/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/api_lib.c:135
#5  0x4024fedf in lwip_socket (domain=domain@entry=2, type=type@entry=1, protocol=protocol@entry=0) at /home/benvh/tools/esp/blackmagic-espidf/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/sockets.c:1274
#6  0x4022d5e8 in net_uart_task (params=<optimized out>) at /home/benvh/tools/esp/blackmagic-espidf/main/platform.c:149
(gdb) p pxQueue
$1 = (Queue_t * const) 0x0
(gdb) p xQueue
$2 = (QueueHandle_t) 0x0

Looks to me like the xQueueGenericSend is getting called before the queue is initialized in station mode. I'll pick this up tomorrow evening and see if I can make any progress.

from blackmagic-espidf.

benvonhandorf avatar benvonhandorf commented on May 25, 2024

Or maybe I'll put off going to sleep a few more minutes and discover esp_event_loop_init isn't being called when not in AP mode. I'll get a PR together with this and the other STA mode fix once I get everything working end-to-end

from blackmagic-espidf.

benvonhandorf avatar benvonhandorf commented on May 25, 2024

Submitted PR #5. Addresses these issues and others found while getting the BMP up and running as a station.

from blackmagic-espidf.

Related Issues (8)

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.