- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see readelf.exe is in the PSoC Creator directory structure after installing it. How to use it to generate a symbol table (for use by custom tool we need) that can be human readable or at least simple to machine read? Need the RAM globals', the ones that do not move around, addresses handy for other tools. I tried to run readelf.exe, but Windows 10 did not recognize it as a program it could run.
Do I need to use a bash shell?
PSoC 4 application..
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Its not clear when you want to run it. If you want to run the readelf.exe after the build step in PSoC Creator you can go to Build Settings > ARM GCC Compiler > User Commands > Post Build and type the following:
"C:\Program Files (x86)\Cypress\PSoC Creator\4.2\PSoC Creator\import\gnu\arm\5.4.1\arm-none-eabi\bin\readelf.exe" -s "${OutputDir}\Design01.elf
Here ${OutputDir} is a macro you can use to point to the Output directory where the elf is located. "Design01.elf" is the name of the elf file in my case. It will be based on the project name.
You can use bat files to execute the above command. Just provide the complete path to readelf and to the elf file.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Its not clear when you want to run it. If you want to run the readelf.exe after the build step in PSoC Creator you can go to Build Settings > ARM GCC Compiler > User Commands > Post Build and type the following:
"C:\Program Files (x86)\Cypress\PSoC Creator\4.2\PSoC Creator\import\gnu\arm\5.4.1\arm-none-eabi\bin\readelf.exe" -s "${OutputDir}\Design01.elf
Here ${OutputDir} is a macro you can use to point to the Output directory where the elf is located. "Design01.elf" is the name of the elf file in my case. It will be based on the project name.
You can use bat files to execute the above command. Just provide the complete path to readelf and to the elf file.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to run it from a command line. Which shell is required?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can run the commands using Command Prompt.
Regards,
Dheeraj