So I write a code to test an SRAM. Basically it just writes
variables to some addresses and reads it back for validation.
However, when I step through functions/procedures in debug mode, I
landed in HardFault_Handler. I am sure the program is there and
working since the program functions as expected. The code look like
this
void sram_test()
{
//write to address
...
//read it back
//print error if not valid
}
int main(void)
{
int i;
↧