Author |
Message |
Topic: pic24FJ and wdt confused |
ciccioc74
Replies: 6
Views: 16517
|
Forum: General CCS C Discussion Posted: Fri Feb 12, 2021 11:17 am Subject: pic24FJ and wdt confused |
I am only writing to communicate that I have not solved the problem with the WDT. I used a Work Around If i receive a data from slaves i reset a counter otherwise the counter increments every second
... |
Topic: pic24FJ and wdt confused |
ciccioc74
Replies: 6
Views: 16517
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2021 1:21 pm Subject: pic24FJ and wdt confused |
Thanks Ttelmah
I had already done this test but I do not reset the micro. With other PIC of this project no problem (18f and 32MX) but it doesn't work here.
CCS rev 5.071 with MPLAB
only
#FUSES ... |
Topic: pic24FJ and wdt confused |
ciccioc74
Replies: 6
Views: 16517
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2021 12:50 pm Subject: pic24FJ and wdt confused |
Hi everyone. I am trying to set the wdt for PIC 24FJ1024GB610 with #use delay(crystal=8000000,clock=32000000 )
I read the datasheet and the DS39697B but i just can't get it to work.
If I un ... |
Topic: 5 usart used simultaneously |
ciccioc74
Replies: 7
Views: 18401
|
Forum: General CCS C Discussion Posted: Wed Feb 10, 2021 7:11 am Subject: 5 usart used simultaneously |
Ok. I confirm that it manages the reception of data from 5 UARTs at the same time. The problem was sw on a variable inside the IRQ routine not declared "static".
Thanks for the support. |
Topic: 5 usart used simultaneously |
ciccioc74
Replies: 7
Views: 18401
|
Forum: General CCS C Discussion Posted: Wed Feb 10, 2021 4:13 am Subject: 5 usart used simultaneously |
ok I do the test |
Topic: 5 usart used simultaneously |
ciccioc74
Replies: 7
Views: 18401
|
Forum: General CCS C Discussion Posted: Tue Feb 09, 2021 12:19 pm Subject: 5 usart used simultaneously |
Thanks for the quick response.
The data of each serial are stored in 4 simple arrays sufficiently large until I receive the MARK. (usart1 array1, usart2 array2 etc) once the array is completed I send ... |
Topic: 5 usart used simultaneously |
ciccioc74
Replies: 7
Views: 18401
|
Forum: General CCS C Discussion Posted: Tue Feb 09, 2021 11:39 am Subject: 5 usart used simultaneously |
Hi everyone
pic PIC24FJ1024GB610
xtal 8MHz clock = 32M
usart @ 9600 baud
I should receive data (byte array of variable size max 30 bytes) arriving on 4 serial asynchronously.
Each slave peripher ... |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Wed Sep 23, 2020 1:29 am Subject: SOLVED |
Solved.
The problems were many. Meanwhile, the latest version of MLA was giving problems, I used the 2013 version (http://ww1.microchip.com/downloads/en/softwarelibrary/mla_v2013_12_20_windows_instal ... |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Mon Sep 07, 2020 10:42 am Subject: the bootloader looks ok but the code doesn't run |
Thanks for your kind help. I do some tests and I refer to you. |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Thu Sep 03, 2020 8:25 am Subject: the bootloader looks ok but the code doesn't run |
So CCS reads the bootloader hex file parsing the addresses as 2x their actual value
i don't understand
Can you program a board with the bootloader, then load the the application via USB a ... |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Wed Sep 02, 2020 10:38 am Subject: the bootloader looks ok but the code doesn't run |
bootloader
:020000040000FA
:060000000DEF07F01200F5
:020006000000F8
:0600080004EF08F01200F5
:080018000CEF08F02EEF07F0D9
:020020001200CC
:0E002200010006000000F90400000 ... |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Wed Sep 02, 2020 10:02 am Subject: the bootloader looks ok but the code doesn't run |
sorry if I allow myself to insist but at the beginning of the main I read:
NOTE FOR BUILDING WITH C18 COMPILER:
-------------------------------------------------------------------
This proje ... |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Wed Sep 02, 2020 9:26 am Subject: the bootloader looks ok but the code doesn't run |
thanks for reply
In the example you posted, you still have #define _bootloader
yes I know I do a lot of tests. I comment this line to use the bootloader but I leave it to see if the program works[ ... |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Wed Sep 02, 2020 8:22 am Subject: the bootloader looks ok but the code doesn't run |
The program actually 'running', is dependant of the bootloader code
yes i now. I meant "the led don't blinks"
Your size is wrong. The USB bootloader for a PCH chip (PIC18), is
0x200 ... |
Topic: the bootloader looks ok but the code doesn't run |
ciccioc74
Replies: 27
Views: 59120
|
Forum: General CCS C Discussion Posted: Wed Sep 02, 2020 7:28 am Subject: the bootloader looks ok but the code doesn't run |
Thank you very much for your kind replies.
I did the tests you say.
I copied the fuses settings from the c18 bootloader to CCS and the led blinks (the configuration is ok). Then I used the bootloade ... |
|