Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map file extraction is failing with GCC and M33 #10109

Closed
jeromecoutant opened this issue Mar 14, 2019 · 6 comments

Comments

Projects
None yet
3 participants
@jeromecoutant
Copy link
Contributor

commented Mar 14, 2019

Description

I am compiling M33 targets in GCC.

Binary is OK, but
map file analysing is failing, it gives RAM and FLASH size to 0:

Total Static RAM memory (data + bss): 0(+0) bytes
Total Flash memory (text + data): 0(+0) bytes

map.html file is also empty

Note also that long name makes also some warnings:

.tfm_bl2_shared_data
                0x30010000      0x400 load address 0x0c03e200
.TFM_SECURE_STACK
                0x30011800     0x2000 load address 0x0c03e200
.TFM_UNPRIV_SCRATCH
                0x30013800      0x400 load address 0x0c03e200
Unknown object name found in GCC map file: load address 0x0c03e200
Unknown object name found in GCC map file: load address 0x0c03e200
Unknown object name found in GCC map file: load address 0x0c03e200

@theotherjimmy

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug
@jeromecoutant

This comment has been minimized.

Copy link
Contributor Author

commented Mar 14, 2019

@ciarmcom ciarmcom added the type: bug label Mar 14, 2019

@ciarmcom

This comment has been minimized.

Copy link
Member

commented Mar 14, 2019

@jeromecoutant

This comment has been minimized.

Copy link
Contributor Author

commented Mar 22, 2019

@theotherjimmy this script is very useful for new development with M33.
Thx

@theotherjimmy

This comment has been minimized.

Copy link
Contributor

commented Apr 8, 2019

@jeromecoutant I just tried with the LPC55S69_NS, an M33 on master, and the map file was parsed correctly. Which target are you using?

@theotherjimmy

This comment has been minimized.

Copy link
Contributor

commented Apr 8, 2019

Alternatively, you can post the map file, and I'll modify memap to parse that correctly.

@theotherjimmy

This comment has been minimized.

Copy link
Contributor

commented Apr 8, 2019

Update: Jerome sent me a reproducing map file offline. Section parsing is not working correctly, and all sections are marked as unknown which is causing a table of 0s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.