Re: ESP32 (classic) RAM size question

2024-04-25 Thread Bernd Walter
On Thu, Apr 25, 2024 at 09:36:25PM -0300, Alan C. Assis wrote:
> Hi Bernd,
> 
> You can use 320KB only if you don't need to use WiFi and BLE.
> 
> The memory is used but the WiFi/BLE driver!
> 
> Do you remember the old days where your video card used to eat your main
> memory and you should define in the BIOS how much memory the video card
> will use?
> 
> Same thing here! ;-)

200k is a lot.
Interestingly I started with the ethernet setup and my intention was ethernet
only, but in the meantime I do need wifi as well.
Anyways, ethernet is started and wifi compiled in as well.
There was a problem (in my old nuttx codebase at least) that the ESP32_emac
code didn't like to be compiled with CONFIG_ARCH_PHY_INTERRUPT, which the
wifi enable enforced.
I dissabled that in the esp32_emac code.

However, I have ethernet started and wifi compiled in, but not started and
that's my meminfo:
   total   used   freelargest  nused  nfree
Umem: 230384  19120 211264 12995

So some RAM must have been added somewhere else.

> 
> Best Regards,
> 
> Alan
> 
> On Thu, Apr 25, 2024 at 8:59 PM Bernd Walter 
> wrote:
> 
> > The original ESP32 is said to have 320k RAM.
> > All board configs have the following:
> > CONFIG_RAM_SIZE=114688
> >
> > Are RAM sections added later in the startup process or is there another
> > reason?
> >
> > --
> > B.Walter  https://www.bwct.de
> > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
> >

-- 
B.Walter  https://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.


Re: ESP32 (classic) RAM size question

2024-04-25 Thread Alan C. Assis
Hi Bernd,

You can use 320KB only if you don't need to use WiFi and BLE.

The memory is used but the WiFi/BLE driver!

Do you remember the old days where your video card used to eat your main
memory and you should define in the BIOS how much memory the video card
will use?

Same thing here! ;-)

Best Regards,

Alan

On Thu, Apr 25, 2024 at 8:59 PM Bernd Walter 
wrote:

> The original ESP32 is said to have 320k RAM.
> All board configs have the following:
> CONFIG_RAM_SIZE=114688
>
> Are RAM sections added later in the startup process or is there another
> reason?
>
> --
> B.Walter  https://www.bwct.de
> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
>


ESP32 (classic) RAM size question

2024-04-25 Thread Bernd Walter
The original ESP32 is said to have 320k RAM.
All board configs have the following:
CONFIG_RAM_SIZE=114688

Are RAM sections added later in the startup process or is there another
reason?

-- 
B.Walter  https://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.