Hi all,
I have a problem that I hope someone has come across and can give me something to check for:
I have a function (a) that calls function (b) that calls function (c) - which has a serial.write() call.
(c) then returns to (b), but (b) never returns to (a).
I have debug statements right at the end of (b) which work, but the debug statements in (a) right after the call to (b) never get executed.
What would cause a simple function call to not return?
There is nothing special about the code - it just calls another function.
The chip is a 3.2 and there is approximately 8K of memory available in all calls in the surrounding area.
If I comment out a File.open(), then all code continues as expected - with the exception that the file isn't open and no data gets written - so it's not a viable solution.
I can't really narrow down the code any more because it's part of some 3 chip inter-communication logic and the code is already minimal.
As an overview of what's going on, I'm sending a file from the PC, to an LC chip, which then relays it to the 3.2 chip - which is attached to the destination Micro-SD card.
The only other file in the code is for a debug file so I can try to track down why this isn't working - so there shouldn't be a file limit reached or anything.
I haven't found any writes to an out of range subscript that might corrupt memory.
Any ideas what else I can check for?
Thanks!
I have a problem that I hope someone has come across and can give me something to check for:
I have a function (a) that calls function (b) that calls function (c) - which has a serial.write() call.
(c) then returns to (b), but (b) never returns to (a).
I have debug statements right at the end of (b) which work, but the debug statements in (a) right after the call to (b) never get executed.
What would cause a simple function call to not return?
There is nothing special about the code - it just calls another function.
The chip is a 3.2 and there is approximately 8K of memory available in all calls in the surrounding area.
If I comment out a File.open(), then all code continues as expected - with the exception that the file isn't open and no data gets written - so it's not a viable solution.
I can't really narrow down the code any more because it's part of some 3 chip inter-communication logic and the code is already minimal.
As an overview of what's going on, I'm sending a file from the PC, to an LC chip, which then relays it to the 3.2 chip - which is attached to the destination Micro-SD card.
The only other file in the code is for a debug file so I can try to track down why this isn't working - so there shouldn't be a file limit reached or anything.
I haven't found any writes to an out of range subscript that might corrupt memory.
Any ideas what else I can check for?
Thanks!