govind-mukundan / MapViewer

A windows application to view and analyze information from the linker generated Map file
GNU General Public License v3.0
280 stars 62 forks source link

XC32 compatibility #11

Open thin1745 opened 3 years ago

thin1745 commented 3 years ago

Hello, I wanted to use this tool to analyze .map and .elf from a build that uses the XC32 toolchain. I've realize that the app is made for XC16 primary. Is there anyway you guy can make a XC32 compatibility release? I'm having a problem where the BSS and DATA of a module isn't matching up to the right window that display symbols and dependencies BSS and DATA. The TEXT match though.

govind-mukundan commented 3 years ago

The main thing you have to do is to add the proper sections into the BSS/TEXT/DATA groups in the settings based on the XC32 linker file. Once you do that it should be enough for most purposes. The module you are referring to maybe using some different types of data/bss sections?

thin1745 commented 3 years ago

I'm using the default p32MZ2048EFM144.ld from the XC32 tool chain, and I couldn't set up the different types of data/bss section correctly without the "error analyzing Map file" while looking at the linker file format pages for references. p32MZ1024EFM144.txt If you can please help me sort it out, I'll really appreciate it.