Re: [Sdcc-user] Nordic nRF24 support?

2010-04-14 Thread C. Scott Ananian
On Wed, Apr 14, 2010 at 4:19 PM, Maarten Brock wrote: > Are you sure it doesn't write to DPTR1 when you set DPS to 1 and then > perform MOV DPTR,#0 ? B.t.w. SDCC only uses dual datapointers in the I'll have to test that. The Nordic documentation is not very clear. =( > alternative crtxinit.asm

Re: [Sdcc-user] Nordic nRF24 support?

2010-04-14 Thread Maarten Brock
Scott, Are you sure it doesn't write to DPTR1 when you set DPS to 1 and then perform MOV DPTR,#0 ? B.t.w. SDCC only uses dual datapointers in the alternative crtxinit.asm and not in any other (generated) file IIRC. To use the multiply unit you could adapt the _div*,

Re: [Sdcc-user] How to disable pdata?

2010-04-14 Thread Maarten Brock
Scott, That should do fine. You can also keep an eye on the generated .mem file because pdata access does not set _XPAGE every time. I usually let make echo it to the terminal. Modifying crtpagesfr.asm may be overkill. The other two are required. OTOH for real paranoia you can use an extra pe

[Sdcc-user] Nordic nRF24 support?

2010-04-14 Thread C. Scott Ananian
Has anyone worked on making sdcc play nicely with the Nordic Semiconductor nRF24 series of 8051 microcontrollers? In particular, they have a dual DPTR mechanism which isn't quite the same as the one SDCC uses (setting DPS seems to change the location used for @DPTR instructions, but it doesn't cha

[Sdcc-user] How to disable pdata?

2010-04-14 Thread C. Scott Ananian
I'm compiling for a target (Nordic nRF24LU1) which doesn't support pdata access -- no equivalent to an XPAGE SFR. What's the best way to disable this feature in SDCC and ensure that my code doesn't accidentally get an XPAGE reference? Currently my plan is to replace crtpagesfr.asm with an empty s

Re: [Sdcc-user] any way to report/detect stack overflow on mcs51 (cc2430)

2010-04-14 Thread Maarten Brock
Anthony, I don't really see how SDCC could help here. Is this debug status register an SFR? If so you could read it anywhere in your code. But the question is of course if you still get to that code when it is set. An interrupt might help here. When detected you can light an LED or something or pe