Hi,
I am facing an issue using SEGGER IDE.
I am facing a memory issue.
Troubleshooting for quite some time to realise that it isn't my code which is giving me the problem.
There is no particular code statement that results in the microcontroller hang.
It should be memory pointer issue.
It is then I notice the following on the Project Explorer section.
The column "Code" and "Data".
index.png (attached)
The compiler still compiles without error and I can load my program into my nRF52840-DK board.
But the program will hang when my test program runs.
When I comment off my codes, reducing the amount of codes, my program works again.
I notice it has to do with the "Code" column.
Whenever my code is longer, the size number on this "Code" column, next to my file "LockMsg.C"
will change color and the number will become a negative number.
When this happens, my codes will basically hang.
It doesn't matter which statement.
I have been troubleshooting for very long time.
It should be memory issue base on personal experience doing firmware.
I have check on the following (screen shot below),
it seems to me that there are pretty much memory still on my nRF52840 chip
index2.png (attached)
My question is, what is exactly the column "Code" and "Data" for.
How do we interpret the number?
How to read it? What does it indicate?
Is there anything that I missed out, set wrongly, and don't understand?
I will need guidance using this SEGGER IDE software.
Thank you for the help and assistance here.
Bob.
I am facing an issue using SEGGER IDE.
I am facing a memory issue.
Troubleshooting for quite some time to realise that it isn't my code which is giving me the problem.
There is no particular code statement that results in the microcontroller hang.
It should be memory pointer issue.
It is then I notice the following on the Project Explorer section.
The column "Code" and "Data".
index.png (attached)
The compiler still compiles without error and I can load my program into my nRF52840-DK board.
But the program will hang when my test program runs.
When I comment off my codes, reducing the amount of codes, my program works again.
I notice it has to do with the "Code" column.
Whenever my code is longer, the size number on this "Code" column, next to my file "LockMsg.C"
will change color and the number will become a negative number.
When this happens, my codes will basically hang.
It doesn't matter which statement.
I have been troubleshooting for very long time.
It should be memory issue base on personal experience doing firmware.
I have check on the following (screen shot below),
it seems to me that there are pretty much memory still on my nRF52840 chip
index2.png (attached)
My question is, what is exactly the column "Code" and "Data" for.
How do we interpret the number?
How to read it? What does it indicate?
Is there anything that I missed out, set wrongly, and don't understand?
I will need guidance using this SEGGER IDE software.
Thank you for the help and assistance here.
Bob.