No connection is possible with last firmware builds - esp8266

I am using NodeMCU since a couple of years without problems, usually I build the firmware with these modules:
gpio
node
tmr
mqtt
wifi
file
dht
net
Yesterday I tried to rebuild the firmware with the same modules and to connect to the device with ESPlorer without success.
I tried also with different modules combination but the problem is the same.
This is what esptool returns:
python esptool.py --port /dev/ttyUSB0 flash_id
esptool.py v2.7-dev
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 68:c6:3a:8b:d8:29
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
If I try to reload the old firmware all works fine.
Working firmware: 2018-05-19
By reading the release notes I found out that I was probably using the version 2.2.0-master_20180402.
Now there is the version 2.2.1-master_20190405.
I am wondering if some major change in the firmware is preventing me to connect again.
Is it possible to build (with the cloud tools) a firmware from a different version?
Does everyone else experienced a similar issue?

I found out the issue, on the different versions there are different baud rate settings needed to connect properly.
On the older version I used 9600, now I have to use 11520. After the change everything works fine.

Related

Unable to use objection with corellium device

I am trying to use objection with my Corellium iOS device but I am getting the following error.
Using USB device `iPhone`
Unable to connect to the frida server: unable to communicate with remote frida-server; please ensure that major versions match and that the remote Frida has the feature you are trying to use
Corellium iOS Device Details: (iPhone 7 Plus | 14.3 | Jailbroken)
iOS Device Frida Version: 16.0.1
MacOS Frida Version: 16.0.1
For connecting to my virtual device I am using Tunnelblick and USBFlux. The connection is successful because I can SSH to my device and use frida-ps and frida-ls-devices without any issues.
However, when I issue the objection command, I encounter an error.
ubaidahmed#Ubaids-MacBook-Pro ~ % frida-ps -Ua
PID Name Identifier
3 ------- ---------------------------------
593 Cydia com.saurik.Cydia
546 DVIA-v2 com.highaltitudehacks.DVIAswiftv2
ubaidahmed#Ubaids-MacBook-Pro ~ % objection -g 546 explore
Using USB device `iPhone`
Unable to connect to the frida server: unable to communicate with remote frida-server; please ensure that major versions match and that the remote Frida has the feature you are trying to use
I even tried to upgrade the frida version to the latest 16.0.8 on my virtual iOS device but again faced the following error in cydia.
Steps followed for updating frida version:
Go to Sources
Edit > Add > https://build.frida.re - Add Source
Select the added entry - build.frida.re > All Packages
Select Frida (it shows latest Frida version) and click on Install
Installation fails
Edited: Also, I have tried to use objection with network option but still no success.
I have tried to provide as much information as possible related to the issue. Please help me out in resolving this strange issue.
If the connection via virtual USB doesn't work you can switch to a direct TCP connection. Execute frida -H IP:port and e.g. use port forwarding to get the frida server port to your local system.
The default frida-server port is 27042.
frida_16.0.8 in Cydia
The recent versions of the Debian package of frida-server don't work (see this issue). Keep your existing version or if you need to install it manually download the deb package of frida_16.0.7_iphoneos-arm.deb (do not use the 16.0.8 version, it is defect use at least 16.0.7 or older) from frida release page.
Download the deb package and install it manually by executing dpkg -i <frida...iphoneos-arm.deb>.

Does the firmware itself include Operating System(OS) or the OS is separately installed on the MCU?

Can I ask a beginner's question here about MCU's firmware development.
When we develop a firmware for a MCU, ex. NXP MIMXRT1062XXXXB.
Does the firmware itself include Operating System(OS) or the OS is separately installed on the MCU?
I am going to use FreeRTOS as the OS on MIMXRT1062XXXXB, there are SDK supports some FreeRTOS demos, but I am not sure if I can use them directly without installing FreeRTOS firstly on the MCU.

ESP8266 micropython terminal not reponding?

I bought these boards and was trying to install micropython and then launch the REPL, but when I would start the putty session the chip would send the proper stuff but I could not type anything. I tried:
reinstalling both the 2MB+ firmware and the 1MB,
adding fm -dio to the install,
reinstall drivers for my computer.
Any other ideas?

How to build iOS app using Flutter with Windows 10

How can I build iOS app using Flutter with Windows 10?
I clicked in (build - Flutter - iOS app) from the tab bar, but it responds:
Building for iOS is only supported on the Mac.
It is not possible... You have to have a Mac to build an app for iOS.. That is Apple rules!!
It is not possible on a Windows 10. This way Apple can force developers to buy Apple hardware to develop for both platforms. You can try Hackintosh on a PC which will let you create IOS apps on non apple hardware.
It's not possible directly with Windows. You can achieve it though by using external services that provide Mac build machines. One of these services is Appollo.
Once you have Appollo installed and set up you can run the following command in your console to build your app
appollo build start --build-type publication
this will pre-publish your app on Apple Connect. You then have to add your screenshots etc...
You need to have xcode to create IOS app which is available only on OSX. Not on Windows. Not on Linux or anything. But using Hackintosh (Mac OS on normal desktop or laptop hardware) you can build IOS app on that PC or laptop though.
Apple only allows iOS emulator which is running on macOS, so we need to run macOS on your non-mac computer
Two ways:
Hackintosh (macOS running on non-mac device)
Virtual Machine (VM)
The first way can give you a high-performance environment (compare to VM) to run iOS simulator. But it's strict to your hardware. The best way is to use hardware as close to the original mac as possible.
The second way has better compatibility. You just need to download macOS's image and install system in VMware or other VM software.
But VM will degrade performance, and in my case neither of my graphics cards seem to work, so I'm guessing my CPU was rendering the GUI. Also, modern macOS (meaning better visuals but more rendering pressure) is slower than old macOS.

Getting Error Flashing Android Things with Starter Kit

I recently picked up an Android Things Kit at Google Developer Days India. I was trying to setup it up via my Mac. I downloaded the Android Things Setup Utility from the Android things console. I tried to run it and it started installing the firmware. It stopped saying "Exit Status 1". What am i doing wrong?
Android Things Setup Utility (version 1.0.16)
============================
This tool will help you install Android Things on your board and set up Wi-Fi.
What do you want to do?
1 - Install Android Things and optionally set up Wi-Fi
2 - Set up Wi-Fi on an existing Android Things device
1
What hardware are you using?
1 - Raspberry Pi 3
2 - NXP Pico i.MX7D
3 - NXP Pico i.MX6UL
2
You chose NXP Pico i.MX7D.
Looking for devices... This can take up to 3 minutes.
found device
Unzipping image...
Flashing Android Things. This will take a few minutes...
*Do not disconnect or interrupt!*
target reported max download size of 419430400 bytes
sending 'bootloader' (559 KB)...
OKAY [ 0.018s]
writing 'bootloader'...
OKAY [ 0.250s]
finished. total time: 0.268s
rebooting into bootloader...
OKAY [ 0.000s]
finished. total time: 0.000s
target reported max download size of 419430400 bytes
sending 'gpt' (33 KB)...
OKAY [ 0.004s]
writing 'gpt'...
OKAY [ 0.434s]
rebooting into bootloader...
OKAY [ 0.000s]
finished. total time: 0.439s
target reported max download size of 419430400 bytes
Error: error flashing android things: exit status 1
Stopping adb server...
Stopped adb server...
For my case, it is because MacOS does not provide mke2fs.
I found one in the unzipped image folder (android-things-setup-utility/quickstart-temp/unzipped/mke2fs).
And run mv android-things-setup-utility/quickstart-temp/unzipped/mke2fs /usr/local/bin
Hope this can help.

Resources