Commit Graph

147 Commits

Author SHA1 Message Date
Xiang Xiao
8bcdefafc9 board: Remove -fno-strength-reduce
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-19 00:14:03 +01:00
Alan C. Assis
065553e59b boards: Add modbus board profile to esp32-devkitc
You can use mbpoll to read Modbus Input registers:

$ mbpoll -a 10 -b 115200 -P none -t 3 -r 1000 -c 4 /dev/ttyUSB0 -R
2022-01-10 10:49:16 +08:00
Alan C. Assis
d7ec3e30ae esp32-devkitc: Add support to PWM 2022-01-08 14:46:51 +01:00
ChenWen
6ce335fa84 xtensa/esp32: Fix some Wi-Fi issues
1. Fix the issue that Wi-Fi can't connect to some special routers occasionally.
    2. Update Wi-Fi driver code to fix issue of failure to send pkt.
    3. Replace software random with hardware random
2021-12-28 23:48:25 -06:00
chao.an
cbd82f1c1b compile/flags: remove redundant -fomit-frame-pointer from board flags
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-27 22:31:27 -06:00
Petro Karashchenko
3ccb657dc2 nuttx: remove space befone newline in logs
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 21:01:19 -06:00
Xiang Xiao
540c6f8c39 esp32-devkitc: Change CONFIG_USER_ENTRYPOINT to CONFIG_INIT_ENTRYPOINT
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-25 18:05:59 +08:00
ligd
412d030149 boards: move USERMAIN_XX out of INIT_ENTRYPOINT
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-12-24 08:23:30 -06:00
Alan C. Assis
36389dab76 Add board support to SHT3X sensor 2021-12-24 08:11:51 -06:00
Alan C. Assis
01e4e249cc Add WiFi/BLE Coexistence support
Co-authored-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Co-authored-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-12-23 20:42:23 -06:00
Alan C. Assis
aa41b9732a boards/esp32: Enable canaries stack protection to ESP32 chips 2021-12-21 08:46:46 -06:00
zhanghu6
d05b9a9c79 note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH
1. If CONFIG_SCHED_INSTRUMENTATION_SWITCH is enabled, then these additional interfaces are expected:
        sched_note_suspend
        sched_note_resume
at the same time,If CONFIG_SMP is enabled,then expected:
        sched_note_cpu_pause
        sched_note_cpu_paused
        sched_note_cpu_resume
        sched_note_cpu_resumed
2. other board if enable SCHED_INSTRUMENTATION,SCHED_INSTRUMENTATION_SWITCH to defconfig.
2021-12-15 07:07:00 -06:00
Petro Karashchenko
51a2db6ffc Kconfig: improve uniformity
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-14 07:32:48 -06:00
Jari van Ewijk
2e47ef32cf GPIO driver: register all pintypes as generic /dev/gpioN 2021-12-09 23:55:12 -06:00
Gustavo Henrique Nihei
fb00ab3242 xtensa/esp32: Rename MTD-related configs to become more intuitive
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-10-25 21:45:20 -05:00
Gustavo Henrique Nihei
b555b3f89e xtensa/esp32: Refactor and reorganize Partition Table related configs
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-10-25 16:34:58 -03:00
Gustavo Henrique Nihei
925e8f9d54 boards/esp32: Optionally mount SPI Flash MTD on bring-up
Give the user the option to simply register the SPI Flash MTD as a
device node on /dev.
Currently, this is achievable only when SmartFS (which is the default FS
option) is disabled by force. This behavior is fixed by using the
"optional" Kconfig keyword, which makes the "choice" selectable.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-10-23 04:01:49 -05:00
Gustavo Henrique Nihei
7368f7a2c8 xtensa/esp32: Make SPI Flash initialization common to all ESP32 boards
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-10-20 09:54:25 -05:00
Abdelatif Guettouche
9235d6605b boards/esp32&esp32c3: Remove crypto accelerators' defconfigs.
Since the tests were removed from the drivers, there is no need for
these defconfigs anymore.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-10-19 18:41:57 -03:00
Abdelatif Guettouche
8288a04a0b arch/xtensa/esp32: Remove the AES test from the driver.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-10-19 18:41:57 -03:00
Gustavo Henrique Nihei
0299e7d35d tools/esp32: Refactor generation of QEMU-compatible image
Use the merge_bin builtin function from esptool.py.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-10-19 23:23:43 +02:00
Gustavo Henrique Nihei
2739f86654 boards/esp32: Remove SPI Flash encryption test
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-10-11 09:06:02 -07:00
Alan C. Assis
04d63cf8b0 Add example to use BLE and WiFi at same time 2021-10-06 07:48:10 -07:00
Alan C. Assis
867c6d0636 esp32: Add initial support to Bluetooth Low Energy
Co-authored-by: saramonteiro <saramonteirosouza44@gmail.com>
Co-authored-by: Gustavo Henrique Nihei <gustavonihei@gmail.com>
2021-10-04 15:10:37 -03:00
Pedro Bertoleti
64e8322974 Add LCD backpack support for ESP32 (devkit-c). 2021-09-22 16:58:36 -03:00
Sara Souza
0504e1d5f6 esp32-devkitc/wifinsh: Adds missing dependency on defconfig 2021-09-21 15:16:47 -03:00
Alan C. Assis
7edb39f880 boards/esp32: Remove "return ret" from bringup function
During the lcd1602 tests on our internal CI we noticed that the
lcd1602 was failing because there is not a I2C display in the
emulated board on QEMU. It is better to remove the "return ret"
from the bringup because the user will see the error anyway.
2021-09-21 10:34:55 -03:00
Alan C. Assis
099e9fb4f7 boards: Remove -nostartfiles -nodefaultlibs from LDFLAGS 2021-09-13 08:58:25 +08:00
Gustavo Henrique Nihei
87496972a2 boards/esp32: Fix init thread stack size when ESP32_WIFI_SAVE_PARAM=y
Previous default value was not sufficient and was resulting in
unexpected behavior when some log domains were enabled

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-10 13:29:05 +08:00
Sara Souza
26397c6695 xtensa/esp32: Wi-Fi board logic refactoring.
This commit removes the initialization of the Wi-Fi partition
from the Wi-Fi board logic and moves it to the SPI Flash board code.

It creates 2 different partition (one for Wi-Fi and one for general
use).

It also allows these partitions to be mounted over several FSs.
2021-09-04 14:30:02 +08:00
Alin Jerpelea
dda6733178 defconfig: allow use of BSD components
several configs are used for testing and need the BSD components

more information about license can be found here
https://www.apache.org/legal/resolved.html#category-a

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-09-02 21:56:05 +08:00
Alin Jerpelea
9d870e1502 defconfig: allow use of BSD components
several configs are used for testing and need the BSD components

more information about license can be found here
https://www.apache.org/legal/resolved.html#category-a

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-09-02 09:00:43 -03:00
Alin Jerpelea
2ab9e7fef0 Revert "esp32: remove FS_SPIFFS from defconfigs"
This reverts commit 35a004bdd0.
2021-09-02 09:00:43 -03:00
Alin Jerpelea
cf884b7460 Revert "defconfig: remove NFS from defconfig"
This reverts commit ff07cb8b2f.
2021-09-02 09:00:43 -03:00
Gustavo Henrique Nihei
efbabfad04 boards/esp32-devkitc: Add config for MCUboot API usage example 2021-09-01 14:13:28 -03:00
Gustavo Henrique Nihei
509008cfbe boards/esp32-devkitc: Add config for MCUboot-based FW update agent 2021-09-01 14:13:28 -03:00
Alin Jerpelea
ff07cb8b2f defconfig: remove NFS from defconfig
NFS uses BSD license and should not be enabled by default

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-08-30 22:39:04 +08:00
Alin Jerpelea
35a004bdd0 esp32: remove FS_SPIFFS from defconfigs
FS_SPIFFS uses BSD license and should not be enabled by default

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-08-30 22:39:04 +08:00
Abdelatif Guettouche
52f32cb367 boards/xtensa/esp32: Don't include esp32_cpuint.h, it's not needed.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-18 04:42:18 -07:00
Gustavo Henrique Nihei
1dfcc6ab49 xtensa/esp32: Enable boot from Espressif's port of MCUboot
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-13 08:44:20 -03:00
Xiang Xiao
b12f588140 Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL
since boardctl isn't a libc feature

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-06 13:58:26 +02:00
YAMAMOTO Takashi
7e449c8a61 esp32-devkitc/wapi: Some config tweaks
When trying to reproduce a reported issue with telnetd,
it took me a bit to find out a working config with telnetd.
I don't want to repeat the process again in future.
OTOH, I don't feel it's worth to have a separate config for this.

Enable a few things convenient for testing network stuff
- telnetd
- iperf
- NET_STATISTICS
- Bump NET_NACTIVESOCKETS

Stack related
- Enable interrupt stack
- Tweak stack sizes
- STACK_COLORATION
- SYSTEM_STACKMONITOR

Debug stuff
- Enable assertions
- Enable some WARN/ERROR logs

Misc
- Disable C++ as it does nothing for the rest of the config and
  it's expensive (involving a download of the library)
2021-08-02 23:12:17 -07:00
Masayuki Ishikawa
b9757ff811 boards: esp32-devkitc: Update wapi_smp/defconfig
Summary:
- This commit adds RTC and NTP client to wapi_smp/defconfig

Impact:
- None

Testing:
- Tested with ntpcstart & date

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-07-29 21:00:01 -07:00
Gustavo Henrique Nihei
a7a922611b xtensa/esp32: Enable the allocation of multiple SPI Flash partitions
Currently the "esp32_spiflash_alloc_mtdpart" allocates a
statically-defined partition from "offset" and "size" set via
Kconfig.
This commit changes the function interface to receive those information
as arguments, enabling the creation of multiple MTD partitions with
different offsets and sizes.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-07-29 20:17:13 +02:00
Sara Souza
857414e95d xtensa/esp32: expose SPI2 as a char driver 2021-07-27 09:55:49 -07:00
Alan C. Assis
5b465345c7 Fix typo on esp32-devkitc 2021-07-25 09:00:39 -07:00
Alan C. Assis
6bc07944d5 Add nsh console through telnet over Wi-Fi 2021-07-25 02:45:19 -07:00
Sara Souza
c47faa7120 xtensa/esp32: Make output readable and rmv unnecessary var. 2021-07-16 19:53:51 -03:00
Abdelatif Guettouche
a6632f969a boards/xtensa/esp32: Make board level linker script take precedence over
the common scripts.
This allows having a more costumized linker script per board.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-15 08:32:22 -03:00
Abdelatif Guettouche
0aa35850fc boards/xtensa/esp32: Update Make.defs to account for the new location of
the linker scripts.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-15 08:32:22 -03:00