Closed kvdz closed 6 years ago
I have looked through the code, and executed the different regexps on the example files from Roland Stahn, which can be found here.
In the file EW_AVR_6_60_1_ATmega.map
nothing is matched with the regexps. I guess this is intentional since it's AVR and not ARM.
In the file EW_ARM_6_50_6_Cortex_M3_error.map
, the wrong parts are matched, since the section placement failed. This results in some addresses missing, and therefore the regexps skips the data it needs to grap.
I think we need more testing and further fixes then before taking this into next release.
oh oke. thanks for the testing. i have test it with the ARM cortex M0 map file. I will look at the other 2 map files. but it think ARM and AVR can not be in the same parser..
@OEHC how should the plugin react to failed placement? should it be excluded? i think the feature of showing memory sizes has nothing todo with compiler error/warnings like failed placement.
@OEHC i have checked the regex with https://regexr.com/ in combination with the EW_ARM_6_50_6_Cortex_M3_error.map
and all the sections needed to match are matched (total 142)
I have added more example test files at Issue #2. These examples also include linker configuration files, which might be worth testing as well.
Regarding this pull request I would like to suggest to rename the parser to "IAR EWARM", since the current code does handle the ARM edition of the IAR compiler only (see #2 ). This way support for other IAR compiler editions could be added as additional parser-implementations later (if reasonable).
close pull request not ready
Add iar parser. Regular expression are testen and good. It is a copy of IT parser
https://github.com/Praqma/memory-map-plugin/issues/2