Author |
Message |
Topic: PIC24 Running in debug mode, but not when simply programmed |
Swys
Replies: 3
Views: 5310
|
Forum: General CCS C Discussion Posted: Mon Jan 31, 2011 7:33 am Subject: PIC24 Running in debug mode, but not when simply programmed |
Well, I solved it. It seems that the pull-up on MCLR was not soldered correclty... |
Topic: PIC24 Running in debug mode, but not when simply programmed |
Swys
Replies: 3
Views: 5310
|
Forum: General CCS C Discussion Posted: Mon Jan 31, 2011 6:44 am Subject: PIC24 Running in debug mode, but not when simply programmed |
Thanks for the quick reply temtronic.
I tried this, but unfortunately it does not solve my problem. Any other suggestions? |
Topic: PIC24 Running in debug mode, but not when simply programmed |
Swys
Replies: 3
Views: 5310
|
Forum: General CCS C Discussion Posted: Mon Jan 31, 2011 6:32 am Subject: PIC24 Running in debug mode, but not when simply programmed |
Hi all,
I am using the PIC24HJ64GP502. I am having the problem that my (any) program runs on the PIC when it is in debug mode with my ICD3, but when I am running it out of debug (release) it just w ... |
Topic: Write to 0x00 erases memory? |
Swys
Replies: 7
Views: 9803
|
Forum: General CCS C Discussion Posted: Thu Jun 03, 2010 3:07 am Subject: Write to 0x00 erases memory? |
Thanks for the answer, Gary.
Unfortunately, this does not work. When I try calling write_program_eeprom(), CCS only returns with "Undefined identifier - write_program_eeprom". I couldn't ... |
Topic: Write to 0x00 erases memory? |
Swys
Replies: 7
Views: 9803
|
Forum: General CCS C Discussion Posted: Wed Jun 02, 2010 7:02 am Subject: Write to 0x00 erases memory? |
Hi all,
I am almost done writing a bootloader, save for this problem I'm having...
I wrote a small program to flash an LED which I then load into the PIC with my bootloader. Everything goes fin ... |
Topic: PCD Hex has offset? |
Swys
Replies: 13
Views: 15231
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 6:40 am Subject: PCD Hex has offset? |
Well now, that's quite embarrassing...
Anyway, yes, that's what I meant. But is it ok for me to do it that way...well, dividing by 4?
[Can't believe I missed that one...] |
Topic: PCD Hex has offset? |
Swys
Replies: 13
Views: 15231
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 4:58 am Subject: PCD Hex has offset? |
What's your calculation? 32 / 8 = 3?
Yes, is it correct for me to do it that way? |
Topic: PCD Hex has offset? |
Swys
Replies: 13
Views: 15231
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 12:45 am Subject: PCD Hex has offset? |
Wait, I guess that was a stupid question. Am I right when I say that:
8-bit PICs use 1 byte for addressing,
16-bit PICs use 2 bytes for addressing (i.e. divide HEX address by 2) and
32-bit PICs u ... |
Topic: PCD Hex has offset? |
Swys
Replies: 13
Views: 15231
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 12:40 am Subject: PCD Hex has offset? |
Great! Thank you all. I will implement this as soon as possible. I will put the address division in the software I will use to upload the firmware. I want the firmware to stay as generic as possible, ... |
Topic: PCD Hex has offset? |
Swys
Replies: 13
Views: 15231
|
Forum: General CCS C Discussion Posted: Tue May 25, 2010 8:26 am Subject: PCD Hex has offset? |
Thanks for the replies guys.
So, will it be enough for me to just subtract 0x200 from each address in the HEX file, since that is the final difference between the HEX file address and the PIC word ... |
Topic: PCD Hex has offset? |
Swys
Replies: 13
Views: 15231
|
Forum: General CCS C Discussion Posted: Mon May 24, 2010 12:22 pm Subject: PCD Hex has offset? |
Hi all,
I am trying to write a wireless bootloader at the moment. I am using version 4.107 of the PCD compiler with a PIC24HJGP504.
Whenever I compile a program in MPLAB and I go to View -> P ... |
Topic: I2C Slave problem |
Swys
Replies: 2
Views: 4752
|
Forum: General CCS C Discussion Posted: Mon May 24, 2010 6:13 am Subject: I2C Slave problem |
O, and I am using version 4.107 of the PCD compiler |
Topic: I2C Slave problem |
Swys
Replies: 2
Views: 4752
|
Forum: General CCS C Discussion Posted: Mon May 24, 2010 4:14 am Subject: I2C Slave problem |
Hi all,
I am trying to let two PICs communicate with each other over I2C. I am using a PIC24F16KA102 as the slave and a PIC24HJ64GP504 as the master.
The first problem I ran into was with CCS n ... |
Topic: Problem with write_program_memory() |
Swys
Replies: 0
Views: 2849
|
Forum: General CCS C Discussion Posted: Tue May 18, 2010 7:09 am Subject: Problem with write_program_memory() |
Hi all,
I am using a PIC24HJ128GP502 with version 4.107 of the PCD compiler.
I am writing a bootloader and I am trying to save the goto instruction and reset address (located at 0x0000 - 0x0004) ... |
Topic: PCD putc() help |
Swys
Replies: 13
Views: 18015
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 1:13 am Subject: PCD putc() help |
Thanks for your suggestions guys. Just before I came to check on the forum again, I tried writing to the UTXREG directly. At first this didn't work, when I thought (as Gary said) that maybe the enable ... |
|