Search found 92 matches

by michprev
Wed Jun 06, 2018 12:01 pm
Forum: General Discussion
Topic: [esptool] segments with load 0x00000000
Replies: 11
Views: 12236

[esptool] segments with load 0x00000000

Hi, after running esptool.py --chip esp32 --no-stub elf2image app.elf esptool.py --chip esp32 --no-stub image_info app.bin I am getting (with a few debug statements in esptool.py) flash segments [.drom.rodata len 0x00050 load 0x3f400018, .irom.text len 0x00a10 load 0x400c2000] ram segments [.dram.da...
by michprev
Sun May 06, 2018 2:52 pm
Forum: General Discussion
Topic: newlib vs glibc
Replies: 4
Views: 7507

Re: newlib vs glibc

Perfect! Thank you very much.
by michprev
Sun May 06, 2018 11:59 am
Forum: Hardware
Topic: SPI flash commands on HSPI, VSPI
Replies: 1
Views: 4439

SPI flash commands on HSPI, VSPI

Hi,
do work SPI flash commands (https://github.com/espressif/esp-idf/bl ... h#L21-L133) on HSPI / VSPI too?
by michprev
Sat May 05, 2018 12:26 pm
Forum: General Discussion
Topic: newlib vs glibc
Replies: 4
Views: 7507

Re: newlib vs glibc

Which version should we use then / what is the difference? libc.a in toolchain takes 5.0 MB, in ESP-IDF 5.7 MB (both SPIRAM compatible versions) memset is provided in esp32.rom.spiram_incompatible_fns.ld script but I am not using this script. With "-nostdlib -mlongcalls -mfix-esp32-psram-cache-issue...
by michprev
Sat May 05, 2018 9:18 am
Forum: General Discussion
Topic: newlib vs glibc
Replies: 4
Views: 7507

newlib vs glibc

Hi, I noticed that memset function is being resolved even when I do not link against libraries in newlib component ( https://github.com/espressif/esp-idf/tree/master/components/newlib ). Even with "-nostdlib" option it is linking against libs located in toolchain (xtensa-esp32-elf/xtensa-esp32-elf/l...
by michprev
Thu May 03, 2018 3:12 pm
Forum: Hardware
Topic: ESP32 - Content of internal ROM
Replies: 4
Views: 15254

Re: ESP32 - Content of internal ROM

It would be nice to have a list of all functions implemented in ROM with description how can be used. I know that they are listed in .ld files and some of them in header files.

Some of them are also reimplemented in ESP-IDF as they do not work due to SPIRAM / DPORT / any other bug.
by michprev
Wed May 02, 2018 4:23 pm
Forum: Hardware
Topic: [SPI] problem with command phase
Replies: 0
Views: 2309

[SPI] problem with command phase

Hi, I've been having quite a hard time figguring out why command phase in my SPI driver does not work. Eventually I discovered that it does not work with this code: target_device->user2.usr_command_bitlen = 15; target_device->user2.usr_command_value = 0xA1B2; target_device->user.usr_command = 1; // ...
by michprev
Sun Apr 29, 2018 9:12 am
Forum: Hardware
Topic: Setting up PLL
Replies: 0
Views: 3071

Setting up PLL

Hi, I cannot find anywhere how to set up correctly PLL. https://github.com/espressif/esp-idf/blob/051d8d69000839985e9b6a281e89ccfe6c16080e/components/soc/esp32/rtc_clk.c#L274-L375 there is some basic setup but to be honest I does not seem to me to be the best idea to support just few XTAL frequencie...
by michprev
Fri Apr 20, 2018 12:06 pm
Forum: General Discussion
Topic: ROM bootloader memory usage
Replies: 2
Views: 3847

ROM bootloader memory usage

Hi,
which memory regions exactly uses ROM bootloader? According to esp32 technical docs I would like to do something like this:

Code: Select all

MEMORY
{
    IRAM (RX) : ORIGIN = 0x40080000, LENGTH = 0x40000
    DRAM (RW) : ORIGIN = 0x3ffAE000, LENGTH = 0x52000
}
But this way my image does not get loaded.
by michprev
Tue Apr 17, 2018 10:55 am
Forum: Report Bugs
Topic: mcpwm peripheral issues
Replies: 3
Views: 10131

Re: mcpwm peripheral issues

Take a look at https://github.com/espressif/esp-idf/issues/1101 . It is better to write your own driver for mcpwm. EDIT: You can MCPWM registers directly via MCPWM object in https://github.com/espressif/esp-idf/blob/master/components/soc/esp32/include/soc/mcpwm_struct.h .You still need to assign pin...