Hardware serial monitor problem (possible defected unit)

Hi,

I have a cactus micro rev2

When i run this sketch

String tmp; 

#define BAUD_RATE 9600

void setup() {
  Serial.begin(BAUD_RATE);
  Serial1.begin(BAUD_RATE); 
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  Serial.println("Hello Cactus Micro!");
  
  // Enable esp8266 
  pinMode(13, OUTPUT);
  digitalWrite(13, HIGH);  
};

void loop() {

  while (Serial1.available() > 0)  {
    tmp += char(Serial1.read());
    delay(2);
  }

  if(tmp.length() > 0) {
    Serial.println(tmp);
    tmp = "";
  }

  if (Serial.available()) {
    Serial1.write(Serial.read());
  }
}

this is what i get (and there is no reply to AT commands)

Hello Cactus Micro!
 ÕÁ‡ŠeäF<úaHœBCa‡;*a˜aۄDe@†

I have tried with different ai thinker firmwares but all the same
but I have tried a simple connection sketch using espduino firmware and it seems to work

Regards,

Please download the AT firmware first.

It’s ai thinker 0.9.5.2 and baud rate 9600.

Hi, thx for the reply

i have flashed ai-thinker 0.9.5.2-9600.bin file from the wiki or your link

this is the result

Hello Cactus Micro!
 Ýpa£¿xêäá쌍2|hpÁ

‡³u

No replies to any AT command avaliable
my arduino ide is 1.0.6 btw
using lilypad arduino usb as board and AVRISP mkII as programmer

could you please take a screenshot for Arduino IDE’s serial monitor?

that garbage message changes everytime i reset the device

What reponse will be there if you send string AT+GMR ?

nothing

can i be flashing firmwares with the wrong settings?

i am using ESP8266Flasher.exe what should these settings be for mentioned firmwares?

baudrate
flashsize
flashspeed
SPI mode

The settings I used.

  • baud rate - default
  • flash size - 1M
  • flash speed - default
  • SPI mode - QIO

are they same for all firmwares?

btw i dont have default setting i have to select a baudrate or flash speed

[quote]i am using ESP8266Flasher.exe what should these settings be for mentioned firmwares?
[/quote]

you can also take a screenshot for the settings in ESP8266Flasher.exe

still not working

well i have changed flash size 1mbyte to 512kbyte with firmware 9.5.2–9600 and now i got this

Hello Cactus Micro!
@Ýp„aŒ£XáD™aoÊdxxh怚⏀
Ai-Thinker Technology Co. Ltd.

ready

AT+GMR

AT version:0.21.0.0
SDK version:0.9.5

OK

AT+CWLAP


ERROR

i am getting returns for AT commands but can not join ap, always returns ERROR
btw is not it strange how flash size effects firmware?

ok i have followed this and was able to connect

AT+CWMODE=1



OK

AT+RST


OK

`v¹”àÀÚBçü1Aš'[*“´‚Ð

˜
™H±´û
õ
Ai-Thinker Technology Co. Ltd.

ready

AT+CIPMUX=0


OK

AT+CIFSR

+CIFSR:STAIP,"0.0.0.0"
+CIFSR:STAMAC,"18:fe:34:f2:94:38"

OK

AT+CWJAP="ssid","1234567890"



OK

but still confused about flashing settings

the flash size is 512k if you bought Cactus Micro in old batch.

so does that mean i cant flash bigger firmwares than 512kb?

btw now i am having another problem with some sketches com port starts to disappear but i know this topic is solved

should i create another thread?

yes. Please start a new topic.

Thank you.