Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-07-2018, 08:35
wild wild is offline
Friend
 
Join Date: Oct 2017
Posts: 37
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 54
Thanks Rcvd at 32 Times in 17 Posts
wild Reputation: 1
Please take care that I have never used your processor!
According to http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/BABIFJFG.html (it is the same for all Cortex Mx families) the first two 32bit words of the vector table are:
0x0000: Initial Stack Pointer value: points to a RAM area
0x0004: Reset vector: points to the code you have to start to run.
so, if I take a look at the binary dump of the file you uploaded:
Code:
000000 - 10 00 7F 01 00 48 60 00 F4 F1 FF FF 00 00 00 20 
000010 - 99 72 00 00 CD 72 00 00 21 74 00 00 21 74 00 00 
000020 - 21 74 00 00 21 74 00 00 21 74 00 00 21 74 00 00
beacuse the values ar written in little endiand format,
it seems your stack pointer points to 0x017F0010 and
the reset vector (code execution) starts at 0x00604800

It seems that your code is not loaded at the start of the flash, but in some other pages, so in IDA you have to tell that your code has an offset value different from 0.
It can help to take a look at the other vectors in the table to get some ideas in which part of your memory your code is loaded...
Now it is very late (02:30am) so I can't dig deeper.
If required, tomorrow I will check in more details in which memory page of your microcontroller this piece of SW is loaded.
Please let me know.

P.S.: I suggest you to take a look at the memory map of your micro.
Reply With Quote
The Following User Says Thank You to wild For This Useful Post:
eychei (04-07-2018)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Definitive Guide to ARM Cortex M3 and Cortex M4 Processors, 3rd Edition JMP-JECXZ Ebooks 0 09-14-2024 23:01
Edit firmware .bin alberto280 General Discussion 8 08-22-2020 23:06


All times are GMT +8. The time now is 22:42.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )