All posts tagged address error

How to solve Address Errors (on PIC24F)

Update Your compiler can help you out with some very common cause: the -Wcast-align flag. Every time you cast a value to something that was bigger than the previous one, you can get into serious problems. Prevent using any of these constructions… char *a_char_pointer; uint32_t *my_big_pointer = (uint32_t*) char_pointer; The a_char_pointer might be badly alligned […]

Subscribe now