My problem is almost fixed... ... All stuff which i'm using are in www.ic.unicamp.br/~ra015988/hc11, including sources and makefile. Using the -lc option, i...
I've built up my own board for the 68hc11e1. All I have on it is the MCU the crystal and a few minor support components, so there is only the 512 bytes of RAM...
Now, i'm not using the libraries, and i'm trying to make my own putchar and getchar... For that, I'm using the "asm" command, but i didn't found in anywhere ...
try this: //start of main.c int n; int main(void) { asm("ldaa n"); return 0; } //end of main.c Regards, Remko P.S. make sure the int is an 8 bits integer...
Hi, I'm a having a few problems with context switching and the role of the stack. I want to switch context to that of a previous function (or task) when the...
Hi, I assume you understand that each task will need it's own private stack. In order to switch context all context must be saved. Off course this is allready...
Does Debug-12 reconstruct his vector interrupt when it starts? Do I have to "backup" it if I overwrite the Debug-12 vector interrupt? Simon Defayette...
Hi, I have a question regarding basic HC11 operation. I have developed a custom board that uses the HC11E1 running in single chip mode. There are really no...
I released a new version of my EmbeddedGNU IDE for Windows recently. I added support for the hcs12c32 MPU, as sold embedded in DIP modules from Technological...
... -- snip ... I think, that your code is OK, diference between A1 and E1 is only in RAM (A1-255 byte E1-512 byte), when you have this problem check the...
Petr Lascak
hwsoft@...
May 3, 2004 7:40 pm
4364
I am beginning to think that it is a software issue. I swapped the E1 chip into my Handyboard and the Handyboard no longer works. So, on tried-and-true...
... I dont think that its in software. ... A and E family is the same, only in RAM they difer. As I remeber, that bootloader code isn't equal. I think, when...
Petr Lascak
hwsoft@...
May 3, 2004 8:13 pm
4366
... There is another difference : you can set the direction of PA3. You can find that in the PACTL register of the timer section. The PACTL also defines the...
Armand ten Doesschate
a.doesschate@...
May 3, 2004 8:39 pm
4367
I don't know much about these old HC11 chip versions, but I was wondering if you were having a problem where COP watchdog is enabled in the non-working...
I did FINALLY figure out some of my problem. I had to go back and read a thousand back posts about the memory.x file and then just make an uneducated guess,...
I can disable the COP watchdog in the CONFIG register, right? I suppose this is a possible problem. But, I think that there will be 16.4 msec of time when...
Hello, thanks for the help. I understand what you're saying, but I can't seem to initialise the task's stack with the start address of the task (successfully)....
... Look into the CPU12 manual, it describes how the stack looks after an interrupt (or before executing rti). Just prepare it like this. Registers A,B,X,Y are...
Hi, I do have some code and I don't mind sending you this in order to help you. The problem is that the code is in C and was for me the easiest way to get it...
The trick here is to ensure that you always perform the stack swap at the same point in the code for each task, and that the stack is always in the same state...
John Gow
jgow@...
May 4, 2004 8:04 am
4374
Hi! I am looking for ELF to DBG (imagecraft debug file format). Someone can help me? Thanks in advance...
Lee, I dont know if you have been reading my posts, but I seem to have designed the same board as you have. HC11E1 in single chip mode, nothing on board...
Hello, I came to a point that I would like to map my RAM from 2000h to 3FFFh on my S12DG128B. In my memory section I changed this, for data and stack: MEMORY {...
My problem was usually that when I run it in normal mode (because I'm not debugging), the COP watchdog times out. So one of my premain steps is to disable COP....
No, this is not working. I added 'COPCTL &= 0xF8;' before I write to the INITRM register. According the docs, bit 2:0 has to be on zero to disable the ...
Peter, I aplogize that I haven't been following this conversation very closely, so I don't know if this idea has been discussed already. One of the problems I...
Hi Peter, If the stack is getting toasted you could try this in your premain. Save your stack pointer before moving your ram and then put it back after the...
I want to add that I've been doing the COP disable thing only on the M68HC912, and this sounds like the same symptoms. My solution was to reset the COP timer...
Another way to initialise a context is to take a leaf out of the UN*X book and implement a fork() call. Essentially, you use an SWI instruction to fork a new...