当前位置:网站首页>Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem

Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem

2022-06-27 00:53:00 arenascat

About ESP32-SOLO

ESP32-SOLO The main feature is that there is only one core , This also makes the use a little different

Compare this paragraph with others , Its biggest feature is that it is cheap and very cheap as long as 5 Yuan , Because I bought it from a second-hand e-waste dealer , I bought a total of 5 block .

They are all mounted on a board that doesn't know what it is , I read the comments and it seems to say which company has a wireless remote control RGB Colored lights are similar to this

Development board circuit design

I designed a circuit for this thing , You can refer to it ,https://oshwhub.com/sinzo/esp32-kuo-zhan-ban

At present, it has the following characteristics

  • Bring out the interface
  • have SD Card slot
  • It has a charging circuit and can be used to install batteries
  • have Type-C
  • Can download any program
  • OLED
  • Four buttons
  • Well welded 8060 resistance

In the actual test , I find BOOT and EN Should be able to remove , Just to prevent problems, they still remain , It can be deleted as needed

The charging circuit is TP4059, Maximum 600mAh Current , I went to one 1000mAh The battery , An hour and a half is full of

It should be noted that this is an automatic reset / Download circuit , Its resistance R5 as well as R6 Be close to 10K, I started by writing the parameters as 1K, When welding, it is also welded 1K, The result is a direct failure

The design has a RGB LED The lamp ,WS2812B, It is a commonly used mechanical keyboard , The result is right

The final board is black PCB, I am very fond of .

This charging circuit will have 50 Degrees or so , That's all right. , It can run normally .

If you want to save electricity , Maybe you don't need to install PWR Indicator light

The whole body is equipped with m2 Screw holes for , You can install the shell or acrylic panel when necessary

ESP-32 SOLO Quick start

I use Arduino IDE To test the board and download , Specific programming and compilation should still use PlatformIO( One is based on VSCode Platform plug-ins ) Because the efficiency is relatively high .

Add this line to the add-on development board management in preferences

https://dl.espressif.com/dl/package_esp32_index.json

Then restart , And search in the development board manager ESP32 that will do

Then click on the development board ESP32 Dev Module

I chose an example program to test

You can see the normal download , There seems to be no problem

however , In the use of ESP-32 SOLO When , Because this single core feature is different from almost all finished boards , So the program cannot be used directly . Prompt you directly for errors , It doesn't work .

How to solve ? The simplest way is to use these files provided by this netizen

GitHub - lbernstone/arduino-esp32-solo: Compiled libraries for ESP32-SOLO  To replace the downloaded sdk

The way is , Download the above one first , Replace arduino15 Medium packages In the catalog esp32 Files in folder , See the figure for the specific path , The version should correspond to the actual version . For example, here I am 1.05 Version of .

Under this path tools It is not right , When I first replaced this folder, I found that the still compiled program still couldn't run , I feel cheated . Later, I found that the catalog was not correct .

Wrong path

C:\Users\ Your users \AppData\Local\Arduino15\packages\esp32

Correct path

C:\Users\ Your users \AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\tools

If you are using WindowsAPP Version of that is Windows Store downloaded , Then it should be this path

C:\Users\wzx13\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\tools

Reload a GetChipID Example , It seems that there is no problem after the test

Now you are free to develop .

How to use PlatformIO Development ESP32

newly build , Type selection of board Espressif

The program I wrote is like this

Configured platformio.ini stay 8 I updated the next month , Now the configuration is like this

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 1000000

upload_speed = 921600  ;upload baud

You can see that you can download normally . If you just insert a board , So there's no need to configure COM mouth

But it doesn't work , The same question , It means that your program is dual core . This goes back to and before ArduinoIDE The same question .

First, find the folder where the plug-in is located ,PlatformIO After installation , There are some files we may need in these files :

C:\Users\ user name \.platformio\packages

C:\Users\ user name \.platformio\platforms

Finally, we found a folder and what we had been tossing about before ArduinoIDE The development board data folder of is most similar to ( As like as two peas ), In this position

C:\Users\wzx13\.platformio\packages\framework-arduinoespressif32

We need to download this guy's file , And overwrite the original folder with this folder

Finally you can use .

Other supplementary points

Use u8glib Time statement

U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE, /* clock=*/ 22, /* data=*/ 21);   // ESP32 Thing, HW I2C with pin remapping

Conclusion

This one ESP32-SOLO Although it is a single core, it is really cool to use , Cheapness , Then it has a large capacity , And there seems to be a lot more , Generally speaking, if there is no problem , You can use it .

Last , Have a good time .

原网站

版权声明
本文为[arenascat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270009550177.html