understanding the flashHeader #8
                  
                    
                      erikjonkers
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 1 reply
-
| Hi, As far as I can tell, it looks OK to me. It's a little-endian processor so the numbers are stored back-to-front. Taking the first sixteen bytes, or four 32-bit values: I haven't checked the the rest in detail but at least the next 16 bytes match the first 16 bytes of the usual 2nd stage bootloader. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The way I receive my new firmware is a bit different than the example application, so I need to create and write the header after I saved all the data in flash.
To fully understand the data in the header I read it back in app.c after flashing it. See here:
for convenience the struct:
I understand the struct is aligned with 4 byte chunks, but then still, the header is way bigger then the integers in the struct and I can't find any know data in the header. I would expect to find the 'magic' numbers somewhere in there.
Would you be so kind and willing to elaborate on this?
Best regards,
Erik
Beta Was this translation helpful? Give feedback.
All reactions