OpenFFBoard icon indicating copy to clipboard operation
OpenFFBoard copied to clipboard

Feature/add esp32s2

Open TDA-2030 opened this issue 4 years ago • 4 comments

Changes

Added support for ESP32S2

There can be little doubt that supporting ESP32S2 is exciting, which allows all of us to DIY at a lower cost. Although the porting work has not been completed yet, you can get the same fantastic experience as STM32 in some functions. I try my best to reduce the modification of openffb code and keep the original code of STM32.

The porting status of functions are as follows:

Main classes

  • [x] FFBWHEEL
  • ~~MIDI~~ (Not support in this PR)
  • ~~TMCDEBUG~~ (Not support in this PR, I don't have TMC driver board)
  • ~~CANBRIDGE~~ (Not support in this PR, I don't know what this function does or how to test it)

Extra features

  • [x] LOCALBUTTONS (not tested)
  • ~~SPIBUTTONS~~ (Not support in this PR, I don't know how to test)
  • ~~SHIFTERBUTTONS~~ (Not support in this PR, I don't know how to test)
  • [x] ANALOGAXES
  • [x] LOCALENCODER
  • [x] TMC4671DRIVER(not tested, I don't have TMC driver board)
  • [x] PWMDRIVER
  • [x] VESC
  • [x] CANBUS
  • ~~MTENCODERSPI~~
  • ~~CANBUTTONS~~
  • ~~CANANALOG~~
  • ~~ADS111XANALOG~~
  • ~~UARTCOMMANDS~~

https://github.com/TDA-2030/OpenFFBoard/tree/feature/add_esp32s2/Firmware/Targets/ESP32SX#readme is a brief instruction.

TDA-2030 avatar Jan 06 '22 06:01 TDA-2030

@Ultrawipf PTAL Do you think it's better to merge or separate into another branch?

TDA-2030 avatar Feb 09 '22 17:02 TDA-2030

I would like to get some hardware to test this myself before merging into the main project so i can make sure support is kept. Really interesting to see this being ported on other chips. Could you supply me with a board or is there a devkit i could buy somewhere with all required ports? Otherwise i will make one from your files. You can contact me via the mail address on my profile or the linked discord.

Ultrawipf avatar Mar 16 '22 08:03 Ultrawipf

Sorry for my late reply! I am in China and under the COVID-19 lockdown. It is more convenient for you to make a PCB yourself. Please see the v1.1 version hardware.

In addition, If you have an ESP32-S2-DevKitC-1 or ESP32-S2-Saola-1 development board, you can use it for most of your testing

TDA-2030 avatar Apr 13 '22 09:04 TDA-2030