Skip to content

Add AiThinker Cam board #2322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
just-jason opened this issue Jan 14, 2019 · 7 comments
Closed

Add AiThinker Cam board #2322

just-jason opened this issue Jan 14, 2019 · 7 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@just-jason
Copy link

just-jason commented Jan 14, 2019

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

@Niek
Copy link
Contributor

Niek commented Jan 15, 2019

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
Copy link
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
Copy link
Contributor

Niek commented Jan 23, 2019

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

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

@Niek
Copy link
Contributor

Niek commented Feb 4, 2019

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
Copy link
Contributor

Niek commented Mar 11, 2019

Created a PR: #2572

@stale
Copy link

stale bot commented Aug 1, 2019

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 bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 1, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

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

@stale stale bot closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

3 participants