Re: [Mspgcc-users] TI compiler

2017-03-22 Thread DJ Delorie
Could you post your interrupt code (C) and the resulting assembler? It's hard to debug problems without seeing those... -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org!

Re: [Mspgcc-users] TI compiler

2017-03-22 Thread David W. Schultz
On 03/22/2017 10:43 AM, Bob von Knobloch wrote: > On 22/03/17 16:24, David W. Schultz wrote: >> Calling another function from the ISR was what triggers this bad >> behaviour. Especially if the called function is in another file. > Hi David, > my code doesn't call a function in the interrupt, it mer

Re: [Mspgcc-users] TI compiler

2017-03-22 Thread Bob von Knobloch
On 22/03/17 16:24, David W. Schultz wrote: > Calling another function from the ISR was what triggers this bad > behaviour. Especially if the called function is in another file. Hi David, my code doesn't call a function in the interrupt, it merely decrements a count, tests it for zero and, if not,

Re: [Mspgcc-users] TI compiler

2017-03-22 Thread David W. Schultz
On 03/22/2017 09:54 AM, Bob von Knobloch wrote: > Inspecting the assembly, I found that the interrupt was suspect. > The 'old' code pushed the registers that it needed, the 'new' TI > compiler pushes (and, of course, later pulls) all of the registers from > r4 - r15 inclusive. I complained about

Re: [Mspgcc-users] TI compiler

2017-03-22 Thread Bob von Knobloch
Further work: having got the compilation under a size which fitted into the flash, I found that the code did not run. (This is the same source code that worked fine when compiled with the 'old' mspgcc compiler.) Inspecting the assembly, I found that the interrupt was suspect. The 'old' code pushe