Posts: 3,229
Threads: 42
Joined: Jul 2006
Quote:
I'm just curious: what's the problem with it?
Won't it be logical to just reset the programcounter to the top of the current flash area? (as it is done in RAM, too)
There are two reasons to use a flash segment for a library. One is as a mini-application like your TVM code. In this case you want the PC to go back to the start of flash. The other is a library of utility subroutines, in this case you don't want the PC going back to the start of the flash segment.
So yes, it is logical to do what you're asking and it is also not logical at the same time.
And that is exactly all I'm going to say on this matter at this time.
- Pauli