Hey,
We would like to create a custom application and run it on QCA4004 in hostless mode (the application will use the component's WiFi of course).
We understood from the datasheet that the QCA4004 uses external SPI flash and executes the code from its RAM after reading it from the external flash (is that right?)
It leads us to couple of questions:
- What are the limitations for the custom App size? (maximal supported size for App / RAM usage for variables etc)
- How much RAM does the QCA4004 has and what part of it is available for the custom App? (The only info about RAM in the datasheet says 8kB RAM as part of the wake-up manager)
We would appreciate your help,
Thanks,
Nir
Any more information on this question?
Dear Customer,
We understood from the datasheet that the QCA4004 uses external SPI flash and executes the code from its RAM after reading it from the external flash (is that right?)
ANS: QCA4004 is an SOC in hostless mode and external spi flash is reserved by default use for customize.
It leads us to couple of questions:
What are the limitations for the custom App size? (maximal supported size for App / RAM usage for variables etc)
How much RAM does the QCA4004 has and what part of it is available for the custom App? (The only info about RAM in the datasheet says 8kB RAM as part of the wake-up manager)
ANS: On QCA4004 there is total 448Kb RAM available.
QCA4004 96KB for Instruction ROM and 96KB for Data RAM, other 256KB configurable RAM bank (in 32-Kbyte blocks) for either data or instruction.
There are a total of 8 32KB banks that can be switched between Instructions (IRAM) and Data (DRAM). Default is 1 bank of IRAM and 7 banks of DRAM.
# Number of configurable 32KB banks for use as Instruction RAM.
# There are a total of 8 32KB banks that can be switched between
# Instructions (IRAM) and Data (DRAM).
# Default is 1 bank of IRAM and 7 banks of DRAM.
# NUM_IRAM_BANKS 1
You can also check how much ram your application is consuming with following cmd:
target/image# xt-size iot_demo.out
text data bss dec hex filename
146962 3616 13176 163754 27faa iot_demo.out
Regards,
Ray