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

How to verify the Cortex-M0 thumb instructions ? I found one chip( RAM &FLASH is OK) when it run LDR relative instructions,the program is in Hardfault。But others run the same code is OK

Could you help me to solve the problem.Do  you have the code  to verify the thumb instruction ? If have,the code can check any  corner the functions of thumb instructions

Parents
  • understand the memory map of the device to see if the error is caused by an access to illegal address

    : in addition, note that (some?) chips will give a hardfault if you try to access a peripheral which has not been enabled.

    So, as well as ensuring that an address is legal, you also have to ensure that it is in a valid state.

    Some chips allow you to turn off parts of the memory to save power - I guess that could also be a source of a hardfault if you try to access disabled memory ... ?

Reply
  • understand the memory map of the device to see if the error is caused by an access to illegal address

    : in addition, note that (some?) chips will give a hardfault if you try to access a peripheral which has not been enabled.

    So, as well as ensuring that an address is legal, you also have to ensure that it is in a valid state.

    Some chips allow you to turn off parts of the memory to save power - I guess that could also be a source of a hardfault if you try to access disabled memory ... ?

Children