Code Monkey home page Code Monkey logo

bpp's People

Contributors

annejan avatar basvs avatar raboof avatar spritetm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bpp's Issues

server/sender.c: out-of-bounds read when PAD_LENGTH > 0

senderSendPkt mishandles the PAD_LENGTH define if it is not 0. it will malloc a buffer of size (len + 2 * PAD_LENGTH) and memcpy (len + PAD_LENGTH) bytes from the packet, i.e. PAD_LENGTH bytes from behind the buffer. it will then send (len + 2 * PAD_LENGTH) bytes to the network, i.e. the extra data from behind the packet and PAD_LENGTH uninitialized bytes from the malloced ppacket.

E (212) wifi: nvs_flash_init failed

When I start the esp_recv on the 0.0.1 badge, I get:

E (212) wifi: nvs_flash_init failed
W (212) wifi: wifi nvs_open fail ret=4353

E (212) wifi: wifi_init 1324 ret=4353
ESP_ERROR_CHECK failed: esp_err_t 0x1101 at 0x400df6af
0x400df6af: app_main at /home/aengelen/dev/sha/bpp/esp32-recv/main/./main.c:75 (discriminator 1)

Should we disable nvs flash in the wifi configuration or find out why it cannot be initialized?

esp32-recv with 4MB flash

I'd be neat to be able to test esp32-recv with only 4MB of flash.

I hacked up partitions.csv based on https://dl.espressif.com/doc/esp-idf/latest/api-guides/partition-tables.html to:

nvs,      data, nvs,     0x9000,  0x4000
otadata,  data, ota,     0xd000,  0x2000
phy_init, data, phy,     0xf000,  0x1000
factory,  app,  factory, 0x10000, 0x0F0000
ota_0,    0,    ota_0,   ,        1536K
ota_1,    0,    ota_1,   ,        1536K

This seems to be accepted by the bootloader but then nvs_flash_init still fails:

ESP_ERROR_CHECK failed: esp_err_t 0x110d at 0x400df680
0x400df680: app_main at /home/aengelen/dev/sha/bpp/esp32-recv/main/.
/main.c:71 (discriminator 1)

file: "/home/aengelen/dev/sha/bpp/esp32-recv/main/./main.c" line 71
func: app_main
expression: nvs_flash_init()

from nvs.h:

#define ESP_ERR_NVS_NO_FREE_PAGES       (ESP_ERR_NVS_BASE + 0x0d)  /*!< NVS partition doesn't contain any empty pages. This may happen if NVS partition was truncated. Erase the whole partition and call nvs_flash_init again. */

Should I erase the partition? How?

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.