Jump to content
Sign in to follow this  
pittuck

Debugger + Boostc Bug

Recommended Posts

Ok then a few bugs

 

Firstly

 

volatile bit name@address.bit

 

it does not work when address is a constant for instance:

 

volatile bit TX_CLK@PORTA.1

 

Does not work, is this meant to be?

 

Next the debugger does not seem to like the volatile bit either (i added it to the watch menu, but nothing happens)

 

It could my my use of the bit type, if not then a possible bug.

 

Cheers,

 

- Martyn

Share this post


Link to post
Share on other sites

pittuck,

 

Please provide a short code, but complete, code example that demonstrates the problem.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Please excuse my nonsense ramblings. I figured out what was wrong. Nothing! lol. Was having a bad day. I will check later as i dont have sourceboost on my PC but there are no problems as far as i can see.

Share this post


Link to post
Share on other sites
pittuck,

 

Please provide a short code, but complete, code example that demonstrates the problem.

 

Regards

Dave

 

#include <system.h>

void main()
{

trisa = 0x00;
trisb = 0x00;

porta = 0x01;
portb = 0x01;

}

 

ok i did a debug on this with 16F877 and 16F877A, the porta register did not change but portb did. i then set the target to 16F84A and porta and b changed as expected.

 

16F84A ASM

main
; { main; function begin
BSF STATUS, RP0
BCF STATUS, RP1
CLRF gbl_trisa
CLRF gbl_trisb
MOVLW	0x01
BCF STATUS, RP0
MOVWF gbl_porta
MOVLW	0x01
MOVWF gbl_portb
RETURN
; } main function end

 

16F877A ASM

; { main; function begin
BSF STATUS, RP0
BCF STATUS, RP1
CLRF gbl_trisa
CLRF gbl_trisb
MOVLW	0x01
BCF STATUS, RP0
MOVWF gbl_porta
MOVLW	0x01
MOVWF gbl_portb
RETURN
; } main function end

 

These are the same so i would summise its a debugger problem....

 

Also porta does work on 16F688, not tested any others.

 

Regards,

 

- Martyn

Share this post


Link to post
Share on other sites
Port A does work correctly under simulator. The mistake you make seems to be very common and was discussed in this forum several times already: http://sourceboost.ipbhost.com/index.php?showtopic=836&hl=

 

Regards,

Pavel

 

Eeek

 

Okies, my bad, never worked on 16F877A's so forgot about that. (Was expecting RA4 and RA6 to be set as outputs, ie when u did porta = 0xFF to get a change on the porta register!

 

Thanks,

 

- Martyn

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...