I want to monitor my Keyboard which is mapped in address 0xA001 of my external memory. Here is my initialization file:
FUNC void key_scan(void){ printf("Keyboard was scanned.\n"); } BS READ X:0xA001,1,"key_scan()"
When you set a breakpoint that way, the function is invoked, but execution does not stop (unless you stop it in the function). I would change your function to be a signal as follows:
SIGNAL void key_scan(void){ while (1) { rwatch (X:0xA001); printf("Keyboard was scanned.\n"); } }