Hi I am trying to catch exceptions that are causing me to crash. In the Startup.s assembly module, I have tags for: do_undefined_instruction: do_prefetch_abort: do_data_abort:
I am trying to set a variable that I can access later in main.c I have tried the following
[In Startup.c] .global source [during reset]do_reset: ..... .equ myVar,5
However, I just get rubbish. I am thinking this is because Ram etc. i initialised in the later part of startup.s (?). However, I will need t set the variable before this happens. Any assistance would be greatly appriciated.