This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why removing code from startup file crashes my code ?

Product         DCD     0 ;0
                EXPORT  Product

FirmwareVer     DCD     0x00000001             Version, cc = Major Version
                EXPORT  FirmwareVer

After removing above lines from my startup file(filename.s), my application doesn't even make it to main() or __main().
When I undo this change, I am running.

Please advise!

Parents
  • >> Find what is the critical thing that's moving, and adjust accordingly

    Product ID and Firmware Version are defined in this file and refrenced in another file.
    We don't need to hardcode these Two identifiers in this file because they will be fetched from another controller over modbus. Therefore, I would like to completely remove them from this
    file. They don't belong to this file anymore.

    >> When you remove them, other stuff will change its position.

    Could someone refer me to a source that explains this in detail ?

    Thank you!

Reply
  • >> Find what is the critical thing that's moving, and adjust accordingly

    Product ID and Firmware Version are defined in this file and refrenced in another file.
    We don't need to hardcode these Two identifiers in this file because they will be fetched from another controller over modbus. Therefore, I would like to completely remove them from this
    file. They don't belong to this file anymore.

    >> When you remove them, other stuff will change its position.

    Could someone refer me to a source that explains this in detail ?

    Thank you!

Children