UnexpectedMaker / tinypico-helper

MIT License
4 stars 2 forks source link

RTCWDT_RTC_RESET issue #3

Closed nicosandller closed 2 years ago

nicosandller commented 2 years ago

Hi!

I'm using a new Tiny PICO usb C board and after flashing in the example sketch:

#include <TinyPICO.h>

// Interval between internal temperature reads
unsigned long next_temp_read = 0;   // Next time step in milliseconds
uint8_t temp_read_interval = 1000;  // This is in milliseconds

// Initialise the TinyPICO library
TinyPICO tp = TinyPICO();

void setup()
{
    // Not used
}

void loop()
{
    // Cycle the DotStar colour every 25 milliseconds
    tp.DotStar_CycleColor(25);

    // You can set the DotStar colour directly using r,g,b values
    // tp.DotStar_SetPixelColor( 255, 128, 0 );

    // You can set the DotStar colour directly using a uint32_t value
    // tp.DotStar_SetPixelColor( 0xFFC900 );

    // You can clear the DotStar too
    // tp.DotStar_Clear();

    // To power down the DotStar for deep sleep you call this
    // tp.DotStar_SetPower( false );

}

I'm also using PlatformIO so this is my platformio.ini:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32]
platform = espressif32
board = tinypico
framework = arduino
monitor_speed = 115200
build_flags = 
    '-DVERSION="0.0.1"'
    -D DEBUG=1
lib_deps = tinypico/TinyPICO Helper Library@^1.4.0

[platformio]
description = Surveyor for outside measurements

I'm getting the following error:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:QIO, clock div:2
load:0x3fff0030,len:1344
load:0xcecccdfe,len:-822219570
1162 mmu set 00010000, pos 00010000
1162 mmu set 00020000, pos 00020000
1162 mmu set 00030000, pos 00030000
1162 mmu set 00040000, pos 00040000
1162 mmu set 00050000, pos 00050000
1162 mmu set 00060000, pos 00060000
1162 mmu set 00070000, pos 00070000
1162 mmu set 00080000, pos 00080000
1162 mmu set 00090000, pos 00090000
1162 mmu set 000a0000, pos 000a0000
1162 mmu set 000b0000, pos 000b0000
1162 mmu set 000c0000, pos 000c0000
1162 mmu set 000d0000, pos 000d0000
ets Jun  8 2016 00:22:57

I thought it was browning out but I already ruled out power supply issues (plugged in a battery, a reliable cable and even directly from a bench power supply).

All my pins are disconnected to sensors etc.

The initial program (that cycles the neo pixel) was running correctly before flashing the new program.

Any ideas on what might be going on?

Thanks!

UnexpectedMaker commented 2 years ago

Set the flash mode to DIO not QIO.

nicosandller commented 2 years ago

Thanks! That was the issue.

for future reference, this platformio.ini fixed it:

[env:esp32]
board_build.flash_mode = dio
platform = espressif32
board = tinypico
framework = arduino
monitor_speed = 115200
build_flags = 
    '-DVERSION="0.0.1"'
    -D DEBUG=1
lib_deps = tinypico/TinyPICO Helper Library@^1.4.0