And back to the software side, well, almost: to connect this thing with a 5-volt controller, I need level converters and a power regulator, but these are trifles.
The funniest thing: to implement in this thing something like a Wi-Fi modem with access via a homebrew protocol a-la SPI with an interrupt line (WIP).
It gonna be fun!🤣

Follow

Just checking the health of the microcontroller. The speed is 9600, I did not come across this fact in the instructions for the firmware :)

· · Web · 1 · 1 · 2

ESP8266_RTOS_SDK: last commit 4 hours ago.
esp-open-sdk: last commit Nov 2018.
A huge lag, I know from sad experience that with such a time difference, all attempts to use this pair (toolchain <-> sdk) are doomed.
I'll find a way to go back in time🤔

It looks like I managed to go back to the old version of SDK (2.1.0). Along the way, I found out that a PUYA 1MB flash P23Q80H was soldered on the board, which can operate at a frequency of 80 MHz with x4 data transfer and I learned how to set the UART speed on the board to 115200.
Time to try simple multitasking for FreeRTOS, let it be classic ticks counting in two threads.🙂

Since each hemisphere of the human brain controls its own half of the body, we easily get the simplest multitasking: the left hand makes two strikes, during the same time interval the right hand makes three strikes😉

It will be necessary to look at the softAp and dhcp server, I do not start them, this is someone's else activity🤔

The absolute minimum of functionality that I need in order to START implementing my firmware and there is already only 703 bytes of RAM left. :(

I still have a small hope that these are not bytes, but some conventional units, such as machine words.
-01

@yrabbit The ESP world seems to give you the choice of Arduino, Arduino, or Arduino.

You can use the Arduino framerwork to build for ESP, or if you don't like that then you are welcome to use the Arduino framework to build for ESP. It's your choice!

@bamfic
Good one! 🤣
I still have a couple of tricks left.

@yrabbit
Esp32 ils the next model did you take a look at it? It is a good one.
@bamfic

@Alexis_Krier @bamfic
It's possible, but...
you see, 32 is very powerful, it even looks like an IBM PC next to the ZX Spectrum. Isn't everything too simple there, is there a challenge at all?😜

@yrabbit @Alexis_Krier I remember there being some problem with the 8266, not sure what it was.

But the 8266 runs Lua well (and thus Fennel). It's a bit underpowered for that but it works. It's also cheap as dirt, but then, so are many MCU's these days.

@bamfic

Why do you say that? You probably *can* use the #Arduino IDE if that's your cup of tea, but you most definitely do not need it.

Anyone with a minimum of embedded experience will likely be using the native toolchains (or #NodeMCU).

docs.espressif.com/projects/es

docs.espressif.com/projects/es

@yrabbit

@0 @bamfic
No, no :) I meant the drop in speed as a result of tricks: if I tear off half of the instruction cache, it is clear that the speed drops, or if I slow down the exchange with flash memory.

I feel comfortable with NONOS SDK and Vim as IDE and am very glad that I have almost 10 times more memory than under the RTOS.

@0 @yrabbit nodemcu (lua) for esp32? the whitecat one? seems experimental and abandoned

@bamfic

Nope. #NodeMCU is for the #ESP8266. There might be unofficial #ESP32 ports but I'm not aware of any.

nodemcu.com/index_en.html

@yrabbit

@0 @yrabbit That was my understanding. And it's unfortunate. In an ideal world, I could work in Lua (via Fennel) on the eminently capable ESP32. Alas, that is not to be.

@bamfic

Not that I have tried myself, but shouldn't be terribly difficult to embed the #Lua interpreter in your own host code.

@yrabbit

@0 @yrabbit I've done it for linux, pretty easily. On an embedded system, not so sure.

@yrabbit
From memory: nope, those are bytes.

The 8266 is a fantastic chip but a bit too memory constrained to attempt to run #FreeRTOS on it. You'll be better off going bare metal on them.

Try the #ESP32 for #FreeRTOS and the like.

@0 @bamfic
Well, when two people said you were a donkey, then go and buy yourself a saddle🤣

@bamfic @0
So you caught me, I just didn't think about it :) The closest thing I found was some kind of Russian version: "Если тебя один раз назвали лошадью, посмейся, если два раза назвали лошадью, то задумайся, если тебя в третий раз назвали лошадью, то становись под седло", but I think that the original was in Yiddish.

@yrabbit

It sounds vaguely familiar to me, though I can't think where I might have heard it. *Could* have been Israel but not sure.
@bamfic

@yrabbit i gave up on rtoses on tiny mcus long ago.

esp32 would run it tho. maybe large atmel parts
Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko