Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version esp-idf #2

Open
0un opened this issue Aug 18, 2020 · 19 comments
Open

Version esp-idf #2

0un opened this issue Aug 18, 2020 · 19 comments

Comments

@0un
Copy link

0un commented Aug 18, 2020

What version of esp-idf need to build?
Using current version and getting an error:

CC build/main/esp_pdp8.o
In file included from E:/msys32/home/User/esp/ESP32-pdp8-simulator/main/esp_pdp8.c:33:
E:/msys32/home/User/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
  ^~~~~~~
E:/msys32/home/User/esp/ESP32-pdp8-simulator/main/esp_pdp8.c:46:10: fatal error: apps/sntp/sntp.h: No such file or directory
 #include "apps/sntp/sntp.h"
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
@Edzelf
Copy link
Owner

Edzelf commented Aug 19, 2020

Hello Oun,
Good to hear that you are interested in simulating the PDP/8.
The project is rather old. I will try to fix it.
I will also try to port the project to PlatformIO.
Let me hear if you are interested.

@0un
Copy link
Author

0un commented Aug 19, 2020

Thanks Edzelf,
Your project is very interesting.
I buy ESP32 OLED V2.0 TTGO for him.

@0un
Copy link
Author

0un commented Aug 19, 2020

Build project!

Need esp-idf 3.1

Toolchain - https://dl.espressif.com/dl/esp32_win32_msys2_environment_and_toolchain-20181001.zip

mkdir -p esp
cd ~/esp
git clone -b release/v3.1 --recursive https://github.com/espressif/esp-idf.git

Create export_idf_path.sh in msys32/etc/profile.d/

python -m pip install --user -r $IDF_PATH/requirements.txt
git clone https://github.com/Edzelf/ESP32-pdp8-simulator.git
make menuconfig

Change COM port
WIFI settings
Timezone, example: SAMT-4SAMST,M3.5.0,M10.5.0/3

Enable OLED

Component config –> ESP32-specific –> Main XTAL frequency
CONFIG_ESP32_XTAL_FREQ_SEL in 26MHz

Partition table - custom
select .csv

Serial flasher config
Flash size - 16MB

save, exit and

make flash monitor

Thanks Edzelf for great simulator!

@Jamm154
Copy link

Jamm154 commented Sep 1, 2022

Hello OUN and Edzelf!

I was following your instructions to build the project, but I had no luck!
I got the next:

CC build/main/ssd1306.o
CC build/main/esp_pdp8.o
C:/msys32/home/Jamm/ESP32-pdp8-simulator/main/esp_pdp8.c:46:22: fatal error: esp_sntp.h: No such file or directory
compilation terminated.
make[1]: *** [/home/Jamm/esp/esp-idf/make/component_wrapper.mk:286: esp_pdp8.o] Error 1
make: *** [/home/Jamm/esp/esp-idf/make/project.mk:493: component-main-build] Error 2

Unfortunately I am not that much professional, but I would like to have this working, as in my young age I started to learn programming on a pdp-8 clone made by hungarian people called TPA-I.

I would appreciate any help, to try solving this.

I was trying to build the archive 4MB version and I had no luck with that either.

AR build/lwip/liblwip.a
CC build/main/esp_pdp8.o
C:/msys32/home/Jamm/esp_pdp8_4MB_flash/main/esp_pdp8.c: In function 'app_main':
C:/msys32/home/Jamm/esp_pdp8_4MB_flash/main/esp_pdp8.c:2388:2: error: implicit declaration of function 'esp_deep_sleep_pd_config' [-Werror=implicit-function-declaration]
esp_deep_sleep_pd_config ( ESP_PD_DOMAIN_RTC_PERIPH, // Init deep-sleep mode
^
C:/msys32/home/Jamm/esp_pdp8_4MB_flash/main/esp_pdp8.c:2390:2: error: implicit declaration of function 'esp_deep_sleep_enable_ext0_wakeup' [-Werror=implicit-function-declaration]
esp_deep_sleep_enable_ext0_wakeup ( 0, 0 ) ; // Wake if GPIO is low
^
cc1.exe: some warnings being treated as errors
make[1]: *** [/home/Jamm/esp/esp-idf/make/component_wrapper.mk:286: esp_pdp8.o] Error 1
make: *** [/home/Jamm/esp/esp-idf/make/project.mk:493: component-main-build] Error 2

Thank You for trying to help an old "Young".

Gábor.

@Edzelf
Copy link
Owner

Edzelf commented Sep 1, 2022

Hello Gábor,

I also have a PlatformIO version to compile this project if you are interested.
I just tried and it compiles without errors, some warnings though..

@Jamm154
Copy link

Jamm154 commented Sep 2, 2022

Hello Edzelf.
Thanks for fast reply.
I would be interested, actually I do not have the 16M OLED version. If You have the 4M version for PlatformIO I would prefer tat to give it a try. I have not yet used PlatformIO, so first I have to find out how to work with it... :)
I am a hobbyist programmer. I was not using my skills for about 40 years.... I just started over, trying to understand present technologies... :)

UH! I just found the PlatformIO version and it says it is also able to run on a bare ESP32... Will try to find how to compile! Thank YOU!

@Edzelf
Copy link
Owner

Edzelf commented Sep 2, 2022

Yes, I forgot that I also published this PlatformIO version.
There is enough help on the Internet for installing PlatformIO. So good luck! Once it is installed, you just have to open the folder with the PDP8 software in it and build the project. I have not developped a 4 M version, because you need enough space to simulate disk drives.
After 40 years you will experience that there is nothing new in programming, only the size of all is multiplied by 1000 to 1000000....

@Jamm154
Copy link

Jamm154 commented Sep 5, 2022 via email

@Edzelf
Copy link
Owner

Edzelf commented Sep 6, 2022

I will check the software and find out if a 4MB version can be used.

@Jamm154
Copy link

Jamm154 commented Sep 17, 2022

Hi ED!
I was trying to fix, but it seems my knowledge is not enough to get around.
Not giving up yet... :) but these days I have very limited time to play around.
G.

@Edzelf
Copy link
Owner

Edzelf commented Sep 19, 2022

@Jamm154:
In the "archive" directory is a 4MB version. Platform is Arduino. SD card and display not yet tested, but OS/8 is running.

@Jamm154
Copy link

Jamm154 commented Sep 23, 2022

Hello ED!

Thank You for Your support, converting the archive for Arduino.
I was able to compile the 'ARCHIVE' file with ARDUINO IDE 2.0.0 after a bit of googleing... :)
It is WORKING on a bare ESP32 DEV kit with only 4M.

I will start to play with after a while. (this mont and the next I am crazy busy... :( )
Thank You!

@billsalt
Copy link

Hi! I have one of the Aliexpress modules (purchased a long time ago and finally getting around to using). I used the Platform method and everything works except the display. Haven't tried the SD card yet. Any ideas to get the display working?

Thank you for the wonderful work!

@Edzelf
Copy link
Owner

Edzelf commented Jul 12, 2023 via email

@billsalt
Copy link

Thanks for the really quick reply! I am using the "16 Mt bytes Pro ESP32 OLED V2.0 TTGO" module, the same one picutred in your documentation.

@Edzelf
Copy link
Owner

Edzelf commented Jul 12, 2023 via email

@billsalt
Copy link

Thanks again Ed, let me know. Meanwhile, I'll try to wire up an SD card and check that out as well.

Bill

@billsalt42
Copy link

Hi Ed, checking back; did you ever get yours working?

@Edzelf
Copy link
Owner

Edzelf commented Nov 20, 2023

Yes, I ported the software to platform espressif32, framework arduino.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants