Hi, I've been able to set functions in Paged Memory, combining @far in .c code and adapted .lkf link file. Thanks for your advices. Now, I've more precise...
MARC Erwan
emarc@...
Sep 1, 2006 7:17 am
14384
Hello, I try to use paged memory on a S12D64, with Cosmic Compiler and WINIdea. I'm now able to put functions in the paged memory, with @far qualifier and ...
MARC Erwan
emarc@...
Sep 1, 2006 7:22 am
14385
... I'm not sure if I understand you correctly. I guess that you have in some module @far static somefunction() {} @far publicfunction() {} You are adding @far...
... module ... Yes Publicfunction() calls somefunction() ... Yes ... to ... to ... Yes ... Phew! My idea is not stupid. ... call ... see ... I'll look in...
MARC Erwan
emarc@...
Sep 1, 2006 8:32 am
14387
... A bit of a long shot but try turning off the +split function in the compiler optimiser and see what the outcome is or else contact cosmic directly. I'll be...
... Yes but, in such a case, I must separate in several .c files the functions that must be in non-paged memory (as @interrupt ones), must be in paged memory...
MARC Erwan
emarc@...
Sep 1, 2006 9:25 am
14389
... Yes, since JSR/RTS is faster than CALL/RTC, your idea isn't stupid. But think about linking. Suppose you have 2 modules having each 10k of paged code....
... That is Cosmic +split option aim. ... You're right the first objective is to fill memory code and if possible optimize the jump instructions. But if there...
MARC Erwan
emarc@...
Sep 1, 2006 10:06 am
14391
... Edward, It's hard for me to concentrate through your whole explanation, but are you explaining why two functions would not be optimized to use JSR instead...
Consider foo.c: void foo(void) { int a; int b; a = 1; Mylabel: b = 2; } Here Mylabel is neither a function nor a variable. The reason I would like Mylabel to...
Hewett, Doug
dhewett@...
Sep 1, 2006 3:18 pm
14393
... You didn't mention what compiler you're using. The compiler doesn't create "xref _label1" instructions because that would export label1 as a global address...
Stephen Trier
sct@...
Sep 1, 2006 3:37 pm
14394
... Oh! I didn't understand before. Here's how I might do something similar: unsigned bpflags = 0; void somefunction() { ... if (bpflags & BP_WHATEVER) ...
Stephen Trier
sct@...
Sep 1, 2006 3:51 pm
14395
@far static somefunction() { } @far publicfunction() { somefunction(); } In older versions of Cosmic C, both @near and @far functions went into the .text...
Stephen Trier
sct@...
Sep 1, 2006 3:53 pm
14396
(1) Sorry for the incomplete info. We're using Cosmic toolset. IDEACPU12 v2.11b. Realize that this is not the most recent. However, after downloading the...
Hewett, Doug
dhewett@...
Sep 1, 2006 4:00 pm
14397
... Yes. There are pro and contrarguments to do such optimization. ... OK. Suppose you have some function compiled and that function ends with RTS. You want to...
Thanks for the response! It was great to finally get something feasible! So, just to recap, I am able to use my 68EVB912B32 dev board as a debugger and also to...
... feasible! So, just to recap, I am able to use my 68EVB912B32 dev board as a debugger and also to flash code into a target? I don't know if you're asking me...
Hello, I'm trying to program the MCU DP512, a simple program with codewarrior, and during the program process I recived this mesage... "Erro while writing...
Hello I am new to the group; well I have a tiny problem going on now. I have a project due not for a couple of weeks but I don't like to leave it to the end,...
Hello, Have a look on memory map for your chip. What are you filling in this area? I think 0xFF80-0xFFFF zone is dedicated to interrupt vectors and upper ...
MARC Erwan
emarc@...
Sep 5, 2006 8:51 am
14404
Thanks for your answer, But I donīt find any option to check overlaps areas. The problem is so strange, becouse the program is a simple port clear. There are...
I've not been using codewarrior, so I can't give you advices on this environment. Any way, I think you should look at the link file to check where the ...
MARC Erwan
emarc@...
Sep 5, 2006 10:51 am
14406
Hello Caroboy, I did a project using the Minidragon+ board and ICC12.... are you finding trouble setting up the ICC12 environment or do you want some tips on...
Mohammed El Korek
mohd.elkorek@...
Sep 5, 2006 2:09 pm
14407
Hey man I am using the ICC12 compiler, it should be the same as minidragon. here is what is happening, my enviroment is ok, everything is set up. the problem...
here is exactly what i got -a sensor (if open then 5v. are send to input) (if closed 0v send to input) what i need to know is how to write a program that will...
You can't directly write a file on the PC from a program running on your HC12 board.(*) Instead, you are going to have to define a communications protocol...
Stephen Trier
sct@...
Sep 5, 2006 8:08 pm
14410
Doug, I thought a little more about your label challenge and came up with a solution. You need global labels, not local ones, and you can do that in...
Stephen Trier
sct@...
Sep 5, 2006 8:26 pm
14411
Your approach looks good. Thanks, Doug ... From: Stephen Trier [mailto:sct@...] Sent: Tuesday, September 05, 2006 1:26 PM To: 68HC12@yahoogroups.com ...
Hewett, Doug
dhewett@...
Sep 5, 2006 8:40 pm
14412
so can you give an idea on how to write this? ... on your ... communications ... messages ... especially ... instead ... from ... (assembly ... write to ... a...