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 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
More questions in this forum