Skip to content

Add AiThinker Cam board  #2322

Closed
Closed
@just-jason

Description

@just-jason

Would it be possible to add a board definition for the AiThinker Cam board with PSRAM.?

Activity

Niek

Niek commented on Jan 15, 2019

@Niek
Contributor

I have tried to flash to this board, but I keep getting errors when booting. I understand that the esp32wrover board should work since it has PSRAM:

$ make -f ~/makeEspArduino/makeEspArduino.mk ESP_ROOT=~/arduino-esp32 CHIP=esp32 BOARD=esp32wrover UPLOAD_PORT=/dev/tty.usbserial erase_flash flash

Flashing is OK, but while booting I get a bootloop like this:

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:9280
load:0x40080400,len:5860
entry 0x40080698
ets Jun  8 2016 00:22:57

This message repeats over and over.

me-no-dev

me-no-dev commented on Jan 23, 2019

@me-no-dev
Member

Yes, what you are getting is not normal. Try to set pins 13 and 14 as INPUT_PULLUP as first lines on your code. I do not guarantee that it will work, but you can try.

Niek

Niek commented on Jan 23, 2019

@Niek
Contributor

Adding this to the top of the setup() function doesn't do anything for me:

pinMode(13, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
Niek

Niek commented on Feb 4, 2019

@Niek
Contributor

I figured out the issue, the partition size was incorrect. Here is a boards.txt entry that works best for me:

esp32cam.name=AI Thinker ESP32-CAM

esp32cam.upload.tool=esptool_py
esp32cam.upload.maximum_size=3145728
esp32cam.upload.maximum_data_size=327680
esp32cam.upload.wait_for_upload_port=true
esp32cam.upload.speed=460800

esp32cam.serial.disableDTR=true
esp32cam.serial.disableRTS=true

esp32cam.build.mcu=esp32
esp32cam.build.core=esp32
esp32cam.build.variant=esp32
esp32cam.build.board=ESP32_DEV
esp32cam.build.f_cpu=240000000L
esp32cam.build.flash_size=4MB
esp32cam.build.flash_freq=80m
esp32cam.build.flash_mode=dio
esp32cam.build.boot=qio
esp32cam.build.partitions=huge_app
esp32cam.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
esp32cam.build.code_debug=0
Niek

Niek commented on Mar 11, 2019

@Niek
Contributor

Created a PR: #2572

stale

stale commented on Aug 1, 2019

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale

stale commented on Aug 15, 2019

@stale

This stale issue has been automatically closed. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Add AiThinker Cam board · Issue #2322 · espressif/arduino-esp32