`dram0_0_seg' overflowed - need help to read project.map

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

`dram0_0_seg' overflowed - need help to read project.map

Postby vibnwis » Sat Feb 24, 2018 12:01 am

Hi there,
Would someone give a hand here, please? I added some functions and tasks. However, those tasks and function should not so much DRam overflowed. Nevertheless, below is the myproject.map excerpt showing only the dram0.data. I must admit that I am not familiar with the contents. I presume .dram0.data is showing the memory usage of each items. The total is 3ffc3cb0 - 3ffc0000 = 3cb0. Below show the uage size of .dram0.bss(usage), the allocated size dram0_0_seg(rw) and dram0_0_seg(r). If I am not wrong, it says that .dram0.bss needs 0x1f1e8. However, the dram0_seg is allocated 0x1c200, is it right? and the difference is 12264 bytes. My questions are, I have tried to changed char[] to const char[], to reduce the use of RAM to "ROM". HOwever, the overflowed value 34040 bytes remain. Any idea how or what need to changed to reduce the overflowed bytes, please?

.dram0.bss 0x000000003ffc5510 0x1f1e8
0x000000003ffc5510 . = ALIGN (0x8)
0x000000003ffc5510 _bss_start = ABSOLUTE (.)

dram0_0_seg 0x000000003ffc0000 0x000000000001c200 rw
drom0_0_seg 0x000000003f400018 0x00000000003fffe8 r

.dram0.data 0x000000003ffc0000 0x5510
0x000000003ffc0000 _data_start = ABSOLUTE (.)
*(.data)
.data 0x000000003ffc0000 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(dport_panic_highint_hdl.o)
.data 0x000000003ffc0008 0x400 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/freertos/libfreertos.a(xtensa_intr_asm.o)
0x000000003ffc0008 _xt_interrupt_table
0x000000003ffc0208 _xt_exception_table
*fill* 0x000000003ffc0408 0x8
.data 0x000000003ffc0410 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/freertos/libfreertos.a(xtensa_vectors.o)
0x000000003ffc0410 _xt_coproc_owner_sa
*fill* 0x000000003ffc0418 0x8
.data 0x000000003ffc0420 0xc0c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/freertos/libfreertos.a(portasm.o)
0x000000003ffc0420 port_IntStack
0x000000003ffc1020 port_IntStackTop
0x000000003ffc1024 port_switch_flag
.data 0x000000003ffc102c 0x4 /home/esp32/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/libgcc.a(unwind-dw2-fde.o)
.data 0x000000003ffc1030 0x14 /home/esp32/esp/esp-idf/components/bt/lib/libbtdm_app.a(arch_main.o)
0x000000003ffc1030 dbg_assert_block
0x000000003ffc1034 eif_api
.data 0x000000003ffc1044 0x4 /home/esp32/esp/esp-idf/components/bt/lib/libbtdm_app.a(btdm_log.o)
0x000000003ffc1044 g_bt_plf_log_level
.data 0x000000003ffc1048 0x70 /home/esp32/esp/esp-idf/components/bt/lib/libbtdm_app.a(plf_funcs.o)
0x000000003ffc1048 r_plf_funcs_p
0x000000003ffc104c r_plf_funcs
.data 0x000000003ffc10b8 0x3 /home/esp32/esp/esp-idf/components/bt/lib/libbtdm_app.a(rf_espressif.o)
*fill* 0x000000003ffc10bb 0x1
.data 0x000000003ffc10bc 0x4 /home/esp32/esp/esp-idf/components/newlib/lib/libm.a(lib_a-s_lib_ver.o)
0x000000003ffc10bc __fdlib_version
*(.data.*)
.data.s_timer_lock
0x000000003ffc10c0 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(esp_timer.o)
.data.g_dport_mux
0x000000003ffc10c8 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(dport_access.o)
.data.twdt_spinlock
0x000000003ffc10d0 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(task_wdt.o)
.data.s_time_update_lock
0x000000003ffc10d8 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(esp_timer_esp32.o)
0x000000003ffc10d8 s_time_update_lock
.data.hooks_spinlock
0x000000003ffc10e0 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(freertos_hooks.o)
.data.reason_spinlock
0x000000003ffc10e8 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(crosscore_int.o)
.data.spinlock
0x000000003ffc10f0 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(intr_alloc.o)
.data.xTickCountMutex
0x000000003ffc10f8 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/freertos/libfreertos.a(tasks.o)
.data.xTaskQueueMutex
0x000000003ffc1100 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/freertos/libfreertos.a(tasks.o)
.data.xNextTaskUnblockTime
0x000000003ffc1108 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/freertos/libfreertos.a(tasks.o)
.data.xTimerMux
0x000000003ffc110c 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/freertos/libfreertos.a(timers.o)
0x000000003ffc110c xTimerMux
.data.malloc_alwaysinternal_limit
0x000000003ffc1114 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/heap/libheap.a(heap_caps.o)
.data.s_log_print_func
0x000000003ffc1118 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/log/liblog.a(log.o)
.data.s_log_default_level
0x000000003ffc111c 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/log/liblog.a(log.o)
.data.val_mode
0x000000003ffc1120 0x1 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/main/libmain.a(mask_rfd22122.o)
0x000000003ffc1120 val_mode
.data.ctrl_mode
0x000000003ffc1121 0x1 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/main/libmain.a(mask_rfd22122.o)
0x000000003ffc1121 ctrl_mode
*fill* 0x000000003ffc1122 0x2
.data.Font_11x18
0x000000003ffc1124 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/main/libmain.a(fonts.o)
0x000000003ffc1124 Font_11x18
.data.Font_7x10
0x000000003ffc112c 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/main/libmain.a(fonts.o)
0x000000003ffc112c Font_7x10
.data.s_stub_table
0x000000003ffc1134 0x90 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/newlib/libnewlib.a(syscall_table.o)
.data.lock_init_spinlock
0x000000003ffc11c4 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/newlib/libnewlib.a(locks.o)
.data.s_mutex_init_lock
0x000000003ffc11cc 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/pthread/libpthread.a(pthread.o)
.data.s_keys_lock
0x000000003ffc11d4 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/pthread/libpthread.a(pthread_local_storage.o)
.data.s_flash_op_cpu
0x000000003ffc11dc 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/spi_flash/libspi_flash.a(cache_utils.o)
.data.s_uart_rx_func
0x000000003ffc11e0 0xc /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/vfs/libvfs.a(vfs_uart.o)
.data.s_uart_tx_func
0x000000003ffc11ec 0xc /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/vfs/libvfs.a(vfs_uart.o)
.data.s_rx_mode
0x000000003ffc11f8 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/vfs/libvfs.a(vfs_uart.o)
.data.s_peek_char
0x000000003ffc11fc 0xc /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/vfs/libvfs.a(vfs_uart.o)
.data._ZN10__cxxabiv119__terminate_handlerE
0x000000003ffc1208 0x4 /home/esp32/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/lib/libstdc++.a(eh_term_handler.o)
0x000000003ffc1208 _ZN10__cxxabiv119__terminate_handlerE
.data._ZN10__cxxabiv120__unexpected_handlerE
0x000000003ffc120c 0x4 /home/esp32/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/lib/libstdc++.a(eh_unex_handler.o)
0x000000003ffc120c _ZN10__cxxabiv120__unexpected_handlerE
.data.bt_buffer_fmt
0x000000003ffc1210 0x10 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt_speaker/libbt_speaker.a(bt_app_av.o)
.data.i2c_spinlock
0x000000003ffc1220 0x10 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/driver/libdriver.a(i2c.o)
.data.periph_spinlock
0x000000003ffc1230 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/driver/libdriver.a(periph_ctrl.o)
.data.gpio_spinlock
0x000000003ffc1238 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/driver/libdriver.a(gpio.o)
.data.timer_spinlock
0x000000003ffc1240 0x10 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/driver/libdriver.a(timer.o)
.data.i2s_spinlock
0x000000003ffc1250 0x10 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/driver/libdriver.a(i2s.o)
.data.s_rtc_isr_handler_list_lock
0x000000003ffc1260 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/driver/libdriver.a(rtc_module.o)
0x000000003ffc1260 s_rtc_isr_handler_list_lock
.data.rtc_spinlock
0x000000003ffc1268 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/driver/libdriver.a(rtc_module.o)
0x000000003ffc1268 rtc_spinlock
.data.ccmp 0x000000003ffc1270 0x18 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_crypto_ccmp.o)
0x000000003ffc1270 ccmp
.data.TmpSTAAPCloseAP
0x000000003ffc1288 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_hostap.o)
0x000000003ffc1288 TmpSTAAPCloseAP
*fill* 0x000000003ffc1289 0x3
.data.g_ap_bss_index$9458
0x000000003ffc128c 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_ht.o)
.data.g_wifi_nvs_cfg
0x000000003ffc1290 0x618 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_nvs.o)
.data.g_wifi_nvs
0x000000003ffc18a8 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_nvs.o)
0x000000003ffc18a8 g_wifi_nvs
.data.s_map 0x000000003ffc18ac 0x18 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_regdomain.o)
0x000000003ffc18ac s_map
.data.g_scan_chan_list
0x000000003ffc18c4 0xe /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_scan.o)
*fill* 0x000000003ffc18d2 0x2
.data.g_timer_info
0x000000003ffc18d4 0x80 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_timer.o)
0x000000003ffc18d4 g_timer_info
.data.g_chm 0x000000003ffc1954 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(wl_chm.o)
0x000000003ffc1954 g_chm
.data.join_deny_flag
0x000000003ffc1958 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(wl_cnx.o)
*fill* 0x000000003ffc1959 0x3
.data.vendor_recv_action
0x000000003ffc195c 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_action.o)
.data.ht_recv_action
0x000000003ffc1960 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_action.o)
.data.ba_recv_action
0x000000003ffc1964 0xc /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_action.o)
.data.vendor_send_action
0x000000003ffc1970 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_action.o)
.data.ht_send_action
0x000000003ffc1974 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_action.o)
.data.ba_send_action
0x000000003ffc1978 0xc /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_action.o)
.data.txopstart_index
0x000000003ffc1984 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(lmac.o)
0x000000003ffc1984 txopstart_index
.data.g_long_ampdu_retry_before_rts
0x000000003ffc1985 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(lmac.o)
0x000000003ffc1985 g_long_ampdu_retry_before_rts
.data.g_short_ampdu_retry_before_rts
0x000000003ffc1986 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(lmac.o)
0x000000003ffc1986 g_short_ampdu_retry_before_rts
.data.g_mpdu_retry_before_rts
0x000000003ffc1987 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(lmac.o)
0x000000003ffc1987 g_mpdu_retry_before_rts
.data.noise_now
0x000000003ffc1988 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(pp.o)
0x000000003ffc1988 noise_now
*fill* 0x000000003ffc1989 0x3
.data.pTxRx 0x000000003ffc198c 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(pp.o)
0x000000003ffc198c pTxRx
.data.g_intr_lock_mux
0x000000003ffc1990 0x8 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(pp.o)
0x000000003ffc1990 g_intr_lock_mux
.data.rc11BSchedTbl
0x000000003ffc1998 0x48 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(trc.o)
.data.rcP2P11GSchedTbl
0x000000003ffc19e0 0x60 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(trc.o)
.data.rc11GSchedTbl
0x000000003ffc1a40 0x9c /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(trc.o)
.data.rcP2P11NSchedTbl
0x000000003ffc1adc 0x6c /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(trc.o)
.data.rc11NSchedTbl
0x000000003ffc1b48 0xa8 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(trc.o)
.data.rcLoRaSchedTbl
0x000000003ffc1bf0 0x18 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(trc.o)
.data.BasicOFDMSched
0x000000003ffc1c08 0xc /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(trc.o)
.data.reg_valid$8872
0x000000003ffc1c14 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(wdev.o)
*fill* 0x000000003ffc1c15 0x3
.data.BcnInterval
0x000000003ffc1c18 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(wdev.o)
.data.g_sniffer_filter
0x000000003ffc1c1c 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(wdev.o)
.data.coex_wifi_bcn_to_flag
0x000000003ffc1c20 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(wdev.o)
.data.coex_last_absence
0x000000003ffc1c21 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(wdev.o)
*fill* 0x000000003ffc1c22 0x2
.data.g_eb_list_desc
0x000000003ffc1c24 0x90 /home/esp32/esp/esp-idf/components/esp32/lib/libpp.a(esf_buf.o)
.data.xFwmMux 0x000000003ffc1cb4 0x8 /home/esp32/esp/esp-idf/components/esp32/lib/libcoexist.a(coexist.o)
.data.phy_wifi_pll_track_en
0x000000003ffc1cbc 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7_ana.o)
0x000000003ffc1cbc phy_wifi_pll_track_en
.data.phy_bt_pll_track_en
0x000000003ffc1cbd 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7_ana.o)
0x000000003ffc1cbd phy_bt_pll_track_en
.data.phy_freq_wifi_only
0x000000003ffc1cbe 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7_ana.o)
0x000000003ffc1cbe phy_freq_wifi_only
*fill* 0x000000003ffc1cbf 0x1
.data.tx_rf_ana_gain
0x000000003ffc1cc0 0x4 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7.o)
0x000000003ffc1cc0 tx_rf_ana_gain
.data.noise_array
0x000000003ffc1cc4 0x6 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7.o)
0x000000003ffc1cc4 noise_array
*fill* 0x000000003ffc1cca 0x2
.data.bt_rx_gain_swp
0x000000003ffc1ccc 0x10 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7.o)
.data.bb_gain_swp
0x000000003ffc1cdc 0xc /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7.o)
.data.rfbb_gain_swp
0x000000003ffc1ce8 0x2 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7.o)
*fill* 0x000000003ffc1cea 0x2
.data.rf_gain_swp_wifi
0x000000003ffc1cec 0x16 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7.o)
*fill* 0x000000003ffc1d02 0x2
.data.wifi_rx_gain_swp
0x000000003ffc1d04 0x18 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7.o)
.data.rfcal_bb_atten_init
0x000000003ffc1d1c 0x1 /home/esp32/esp/esp-idf/components/esp32/lib/libphy.a(phy_chip_v7_cal.o)
0x000000003ffc1d1c rfcal_bb_atten_init
.data.dhcps_offer
0x000000003ffc1d1d 0x1 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/lwip/liblwip.a(dhcpserver.o)
*fill* 0x000000003ffc1d1e 0x2
.data.dhcps_lease_time
0x000000003ffc1d20 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/lwip/liblwip.a(dhcpserver.o)
.data.iss$7020
0x000000003ffc1d24 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/lwip/liblwip.a(tcp.o)
.data.udp_port
0x000000003ffc1d28 0x2 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/lwip/liblwip.a(udp.o)
*fill* 0x000000003ffc1d2a 0x2
.data.retrans_timer
0x000000003ffc1d2c 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/lwip/liblwip.a(nd6.o)
0x000000003ffc1d2c retrans_timer
.data.reachable_time
0x000000003ffc1d30 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/lwip/liblwip.a(nd6.o)
0x000000003ffc1d30 reachable_time
.data.mad_buffer_fmt
0x000000003ffc1d34 0x10 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/mp3_decoder/libmp3_decoder.a(mp3_decoder.o)
0x000000003ffc1d34 mad_buffer_fmt
.data.osi_funcs
0x000000003ffc1d44 0x7c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bt.o)
.data.global_int_mux
0x000000003ffc1dc0 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bt.o)
.data.btdm_dram_available_region
0x000000003ffc1dc8 0x60 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bt.o)
.data.blufi_app_uuid
0x000000003ffc1e28 0x14 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(blufi_prf.o)
.data.blufi_descr_uuid_e2p
0x000000003ffc1e3c 0x14 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(blufi_prf.o)
.data.blufi_char_uuid_e2p
0x000000003ffc1e50 0x14 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(blufi_prf.o)
.data.blufi_char_uuid_p2e
0x000000003ffc1e64 0x14 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(blufi_prf.o)
.data.blufi_srvc_uuid
0x000000003ffc1e78 0x14 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(blufi_prf.o)
.data.btm_ble_tx_power
0x000000003ffc1e8c 0x14 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(btm_ble_multi_adv.o)
0x000000003ffc1e8c btm_ble_tx_power
.data.gap_cback
0x000000003ffc1ea0 0x1c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(gap_ble.o)
.data.const_Rb
0x000000003ffc1ebc 0x10 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(smp_cmac.o)
0x000000003ffc1ebc const_Rb
.data.p_bta_dm_eir_cfg
0x000000003ffc1ecc 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_dm_cfg.o)
0x000000003ffc1ecc p_bta_dm_eir_cfg
.data.p_bta_dm_rm_cfg
0x000000003ffc1ed0 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_dm_cfg.o)
0x000000003ffc1ed0 p_bta_dm_rm_cfg
.data.p_bta_dm_cfg
0x000000003ffc1ed4 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_dm_cfg.o)
0x000000003ffc1ed4 p_bta_dm_cfg
.data.bta_gattc_cl_cback
0x000000003ffc1ed8 0x1c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_gattc_act.o)
.data.bta_gatts_nv_cback
0x000000003ffc1ef4 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_gatts_act.o)
0x000000003ffc1ef4 bta_gatts_nv_cback
.data.bta_gatts_cback
0x000000003ffc1efc 0x1c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_gatts_act.o)
.data.p_bta_av_rc_id
0x000000003ffc1f18 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_av_cfg.o)
0x000000003ffc1f18 p_bta_av_rc_id
.data.p_bta_av_cfg
0x000000003ffc1f1c 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_av_cfg.o)
0x000000003ffc1f1c p_bta_av_cfg
.data.btif_trace_level
0x000000003ffc1f20 0x1 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_sys_main.o)
0x000000003ffc1f20 btif_trace_level
.data.appl_trace_level
0x000000003ffc1f21 0x1 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_sys_main.o)
0x000000003ffc1f21 appl_trace_level
*fill* 0x000000003ffc1f22 0x2
.data.bte_appl_cfg
0x000000003ffc1f24 0x5 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_dm_co.o)
0x000000003ffc1f24 bte_appl_cfg
*fill* 0x000000003ffc1f29 0x3
.data.bta_av_a2d_cos
0x000000003ffc1f2c 0x28 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_av_co.o)
0x000000003ffc1f2c bta_av_a2d_cos
.data.disc_type_to_uuid
0x000000003ffc1f54 0xc /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(gatt_cl.o)
0x000000003ffc1f54 disc_type_to_uuid
.data.disc_type_to_att_opcode
0x000000003ffc1f60 0x6 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(gatt_cl.o)
0x000000003ffc1f60 disc_type_to_att_opcode
*fill* 0x000000003ffc1f66 0x2
.data.gatt_profile_cback
0x000000003ffc1f68 0x1c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(gatt_attr.o)
.data.fcr$12482
0x000000003ffc1f84 0x1c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_jv_act.o)
.data.bt_base_uuid$12170
0x000000003ffc1fa0 0x10 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_jv_act.o)
.data.p_bta_jv_cfg
0x000000003ffc1fb0 0x4 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(bta_jv_cfg.o)
0x000000003ffc1fb0 p_bta_jv_cfg
.data.aes_spinlock
0x000000003ffc1fb4 0x8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/esp32/libesp32.a(aes.o)
.data.tkip 0x000000003ffc1fbc 0x18 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_crypto_tkip.o)
0x000000003ffc1fbc tkip
.data.wep 0x000000003ffc1fd4 0x18 /home/esp32/esp/esp-idf/components/esp32/lib/libnet80211.a(ieee80211_crypto_wep.o)
0x000000003ffc1fd4 wep
.data.aQuantTable
0x000000003ffc1fec 0x80 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/fdk-aac/libfdk-aac.a(aac_rom.o)
0x000000003ffc1fec aQuantTable
.data.aHuffTable
0x000000003ffc206c 0x80 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/fdk-aac/libfdk-aac.a(aac_rom.o)
0x000000003ffc206c aHuffTable
.data.err_msg 0x000000003ffc20ec 0x88 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(error.o)
0x000000003ffc20ec err_msg
.data.hcb11_2 0x000000003ffc2174 0x462 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc25d6 0x2
.data.hcb11_1 0x000000003ffc25d8 0x40 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb10_2 0x000000003ffc2618 0x273 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc288b 0x1
.data.hcb10_1 0x000000003ffc288c 0x80 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb9 0x000000003ffc290c 0x3f3 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc2cff 0x1
.data.hcb8_2 0x000000003ffc2d00 0xf9 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc2df9 0x3
.data.hcb8_1 0x000000003ffc2dfc 0x40 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb7 0x000000003ffc2e3c 0x17d /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc2fb9 0x3
.data.hcb6_2 0x000000003ffc2fbc 0x177 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc3133 0x1
.data.hcb6_1 0x000000003ffc3134 0x40 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb5 0x000000003ffc3174 0x1e3 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc3357 0x1
.data.hcb4_2 0x000000003ffc3358 0x398 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb4_1 0x000000003ffc36f0 0x40 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb2_2 0x000000003ffc3730 0x1a9 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc38d9 0x3
.data.hcb2_1 0x000000003ffc38dc 0x40 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb1_2 0x000000003ffc391c 0x235 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
*fill* 0x000000003ffc3b51 0x3
.data.hcb1_1 0x000000003ffc3b54 0x40 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
.data.hcb_bin_table_size
0x000000003ffc3b94 0x30 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3b94 hcb_bin_table_size
.data.hcb_2_pair_table_size
0x000000003ffc3bc4 0x30 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3bc4 hcb_2_pair_table_size
.data.hcb_2_quad_table_size
0x000000003ffc3bf4 0x30 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3bf4 hcb_2_quad_table_size
.data.unsigned_cb
0x000000003ffc3c24 0x20 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3c24 unsigned_cb
.data.hcbN 0x000000003ffc3c44 0xc /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3c44 hcbN
.data.hcb_bin_table
0x000000003ffc3c50 0x30 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3c50 hcb_bin_table
.data.hcb_2_pair_table
0x000000003ffc3c80 0x30 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3c80 hcb_2_pair_table
.data.hcb_2_quad_table
0x000000003ffc3cb0 0x30 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3cb0 hcb_2_quad_table
.data.hcb_table
0x000000003ffc3ce0 0x30 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(huffman.o)
0x000000003ffc3ce0 hcb_table
.data.book_escape
0x000000003ffc3d10 0x1b8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(rvlc.o)
.data.book_rvlc
0x000000003ffc3ec8 0xc0 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/libfaad/liblibfaad.a(rvlc.o)

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

Re: `dram0_0_seg' overflowed - need help to read project.map

Postby vibnwis » Sat Feb 24, 2018 12:32 am

by commenting out one by one, I managed to isolate it to the function, bt_speaker_start() which causes the dram0 overflowed. However, seeing the size of bt_speaker_start(), I still don't understand what went wrong. Any comments are much appreciated.


*fill* 0x00000000400e692f 0x1
.text.bt_speaker_start
0x00000000400e6930 0xa7 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt_speaker/libbt_speaker.a(bt_speaker.o)
0xcf (size before relaxing)
0x00000000400e6930 bt_speaker_start

.literal.bt_speaker_start
0x00000000400d0b34 0x1c /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt_speaker/libbt_speaker.a(bt_speaker.o)
0x5c (size before relaxing)

void bt_speaker_start(renderer_config_t *renderer_config)
{

esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
if (esp_bt_controller_init(&bt_cfg) != ESP_OK) {
ESP_LOGE(BT_AV_TAG, "%s initialize controller failed\n", __func__);
return;
}

if (esp_bt_controller_enable(ESP_BT_MODE_BTDM) != ESP_OK) {
ESP_LOGE(BT_AV_TAG, "%s enable controller failed\n", __func__);
return;
}

if (esp_bluedroid_init() != ESP_OK) {
ESP_LOGE(BT_AV_TAG, "%s initialize bluedroid failed\n", __func__);
return;
}

if (esp_bluedroid_enable() != ESP_OK) {
ESP_LOGE(BT_AV_TAG, "%s enable bluedroid failed\n", __func__);
return;
}

/* init renderer */
renderer_init(renderer_config);

/* create application task */
bt_app_task_start_up();

/* Bluetooth device name, connection mode and profile set up */
bt_app_work_dispatch(bt_av_hdl_stack_evt, BT_APP_EVT_STACK_UP, NULL, 0, NULL);
}

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

Re: `dram0_0_seg' overflowed - need help to read project.map

Postby vibnwis » Sat Feb 24, 2018 12:39 am

I have tried the resolution found https://github.com/jerryscript-project/ ... ssues/1854 here, but no avail.

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

Re: `dram0_0_seg' overflowed - need help to read project.map

Postby vibnwis » Sat Feb 24, 2018 12:51 am

Further isolation shows that these two functions caused overflowed. However, still, I have no clues of what went wrong.
.text.esp_bluedroid_enable
0x00000000401347c4 0xe8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(esp_bt_main.o)
0xf0 (size before relaxing)
0x00000000401347c4 esp_bluedroid_enable

.text.esp_bluedroid_init
0x000000004013496c 0xe8 /home/esp32/esp/ESP32_OLED_webradio_weather_station/build/bt/libbt.a(esp_bt_main.o)
0xf4 (size before relaxing)
0x000000004013496c esp_bluedroid_init

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: `dram0_0_seg' overflowed - need help to read project.map

Postby WiFive » Sat Feb 24, 2018 3:00 am

Code: Select all

make size-components

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

Re: `dram0_0_seg' overflowed - need help to read project.map

Postby vibnwis » Sat Feb 24, 2018 4:33 am

the results of "make size components" of overflowed code

Total sizes:
DRAM .data size: 21376 bytes
DRAM .bss size: 69512 bytes
Used static DRAM: 90888 bytes ( 24312 available, 78.9% used)
Used static IRAM: 81378 bytes ( 49694 available, 62.1% used)
Flash code: 719435 bytes
Flash rodata: 335276 bytes
Total image size:~1157465 bytes (.bin may be padded larger)

The results of "make size components" of no overflowed code

Total sizes:
DRAM .data size: 21376 bytes
DRAM .bss size: 69512 bytes
Used static DRAM: 90888 bytes ( 24312 available, 78.9% used)
Used static IRAM: 81378 bytes ( 49694 available, 62.1% used)
Flash code: 719435 bytes
Flash rodata: 335276 bytes
Total image size:~1157465 bytes (.bin may be padded larger)

Both having the same numbers

Aren't they strange?

jason.zhi
Posts: 2
Joined: Sun Sep 12, 2021 2:55 am

Re: `dram0_0_seg' overflowed - need help to read project.map

Postby jason.zhi » Sun Sep 12, 2021 12:50 pm

I also get the dram0_0_seg overflowed problem, and have no idea to fix it ,
ENV: IDF4.2 + jerryscript,

I have tried open PSRAM , my esp32 board has 8MHz PSRAM, and I am sure i have right config to use that, because i use malloc(512*1024) , it works ok.

and if i put "jerry_init()" func into compilation, it will get dram0_0_seg.,

Please help me .

Who is online

Users browsing this forum: No registered users and 83 guests