Hello all
After several weeks of using the Segger EM studio and nRF52DK I have finally got to see some results !
Anyway, I have basic problems, I guess this is normal, as far as I have read about the global variables. For example, I have created the global variables within the main, where the access to the sensor is made (EG. Word Data1, Data2, Data3). This works just fine when I am within the range of main(), however, to keep it nice and neatly, I have started to move the code to separate files , within the Application folder, like creating a new file (*.c) ... But no luck, I am not sure how come I cannot use the globally declared variables from the main() in other functions outside the main file ? Am I missing how the global variables should be declared? Anyway, how to avoid this in anyway?
Any ideas?
Thanks and all the best!
After several weeks of using the Segger EM studio and nRF52DK I have finally got to see some results !
Anyway, I have basic problems, I guess this is normal, as far as I have read about the global variables. For example, I have created the global variables within the main, where the access to the sensor is made (EG. Word Data1, Data2, Data3). This works just fine when I am within the range of main(), however, to keep it nice and neatly, I have started to move the code to separate files , within the Application folder, like creating a new file (*.c) ... But no luck, I am not sure how come I cannot use the globally declared variables from the main() in other functions outside the main file ? Am I missing how the global variables should be declared? Anyway, how to avoid this in anyway?
Any ideas?
Thanks and all the best!