Author |
Message |
Topic: MCU diagnostic tricks |
Chibouraska
Replies: 7
Views: 8415
|
Forum: General CCS C Discussion Posted: Thu Nov 01, 2012 12:48 pm Subject: MCU diagnostic tricks |
I have made up a scheme to implement what M. Ganssle explains in the article and it looks like this.
wdt_a(){
state+=0x1111;
if(state!=0x2222) reset_cpu();
& ... |
Topic: MCU diagnostic tricks |
Chibouraska
Replies: 7
Views: 8415
|
Forum: General CCS C Discussion Posted: Thu Nov 01, 2012 12:12 pm Subject: MCU diagnostic tricks |
Thanks a lot for all these pointers, but does reset_cpu() in PCD compiler
put all registers into a reset state? thx
AC
--------- |
Topic: MCU diagnostic tricks |
Chibouraska
Replies: 7
Views: 8415
|
Forum: General CCS C Discussion Posted: Thu Nov 01, 2012 7:25 am Subject: MCU diagnostic tricks |
Ttelmah hi, ok how to manage that a rogue program will issue a WDT timeout ? This is what we are taking about here, but the art of the watchdog lies in ability to place the restart_wdt at less possibl ... |
Topic: Bad array values |
Chibouraska
Replies: 2
Views: 4435
|
Forum: General CCS C Discussion Posted: Wed Oct 31, 2012 7:30 am Subject: Bad array values |
Yes i know about the array index but in my case its not this. I am sure because i took the block of code and moved it and it solved the problem. I think its ROM corruption not RAM even if it looks lik ... |
Topic: MCU diagnostic tricks |
Chibouraska
Replies: 7
Views: 8415
|
Forum: General CCS C Discussion Posted: Wed Oct 31, 2012 6:56 am Subject: MCU diagnostic tricks |
Hi,
I would like to know if CCS has some built in functions that i could use to secure embedded software, by that i mean ROM and RAM tests, errant code recovery etc.
I use the wdt but this a ... |
Topic: Bad array values |
Chibouraska
Replies: 2
Views: 4435
|
Forum: General CCS C Discussion Posted: Wed Oct 31, 2012 6:40 am Subject: Bad array values |
Hi,
I am making a hydronic controller that controls fifteen temperature zones. Usually I don't need the forum but every time I used it I was very happy.
My problem is that my float array c ... |
Topic: Protection for erratic program jump |
Chibouraska
Replies: 6
Views: 8213
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2012 1:46 pm Subject: Protection for erratic program jump |
Thanks PCM i will look up on these links. I read in a book from Jack Ganssle
that this could be something to consider, but you are right AsmBoy the WDT
is especially the windowed version on the PIC2 ... |
Topic: Protection for erratic program jump |
Chibouraska
Replies: 6
Views: 8213
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2012 1:08 pm Subject: Protection for erratic program jump |
Hi,
I want to fill unused program memory with a goto command in case
the program jumps to a random place in program memory where nothing
exist and this goto could trigger a reset. Is this g ... |
Topic: writing variables in program memory at runtime |
Chibouraska
Replies: 7
Views: 9178
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 5:54 pm Subject: writing variables in program memory at runtime |
In my case i only need to store maybe 40 bytes of datum and it's data that
changes very rarely so program memory is a good choice, but is it considered safe practice, what if some sporadic jump to t ... |
Topic: writing variables in program memory at runtime |
Chibouraska
Replies: 7
Views: 9178
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 11:15 am Subject: writing variables in program memory at runtime |
i imported the program into MPLAB and opened program memory window, i noticed that the program goes until address 0x279C on the pic18f46j11 part,
but i will be adding much more stuff on this controll ... |
Topic: writing variables in program memory at runtime |
Chibouraska
Replies: 7
Views: 9178
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 11:06 am Subject: writing variables in program memory at runtime |
There is write_program_memory and read_program_memory, i guess this
is used for that, but how to know where (address) to store variables that need to keep there values even thru power cycles. thx
... |
Topic: writing variables in program memory at runtime |
Chibouraska
Replies: 7
Views: 9178
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 10:59 am Subject: writing variables in program memory at runtime |
Hi, i making a logger using pic18f46j11 that doesn't have EEPROM, is it possible to write to flash at runtime a variable, say PresetTemperature for example and then if a reset occurs read the values b ... |
Topic: 1wire RS232 |
Chibouraska
Replies: 5
Views: 6966
|
Forum: General CCS C Discussion Posted: Sun Oct 16, 2011 5:21 pm Subject: 1wire RS232 |
What value crystal are you using and does the errors occur in sequence or all over the received stream of data? |
Topic: variables contain bad values |
Chibouraska
Replies: 7
Views: 11248
|
Forum: General CCS C Discussion Posted: Sat Oct 15, 2011 2:50 pm Subject: variables contain bad values |
Thank to all, yes it was an array declared at the top of main declaration that was too short, instead of 31 elements I made it 63 elements wide and it solved the problem. You guys are the best.
Reg ... |
Topic: variables contain bad values |
Chibouraska
Replies: 7
Views: 11248
|
Forum: General CCS C Discussion Posted: Sat Oct 15, 2011 2:37 pm Subject: variables contain bad values |
Ok good thinking this is logical i will investigate this. Should vars that are only changed in main be declared there or in global section? |
|