laser_scientist
Joined: 26 Jun 2013 Posts: 7
|
Attempt to locate function with #org hangs compiler |
Posted: Mon Sep 23, 2013 9:19 am |
|
|
Hello,
I am trying to locate a function stub at a specific location on a dsPIC33EP256MU806 and CCS compiler version 5.011. I have run into a number of issues, but now I am at the point where the program compiles if I comment out the #org statement on bios_stub_A, but the compiler hangs and I have to kill the compiler process if I put it back in:
Code: |
#include <33EP256MU806.h>
#device ADC=8
#fuses HS,PR_PLL,NOWDT
#use delay(clock=96M)
#define CODE_BUFSTART 0x015600
#define CODE_BUFSEG2 0x020000
#define CODE_BUFEND 0x02ABFE
#define CODE_BIOSSTUB 0x0155F0
#define CODE_CHKSUM 0x0155FE
#define AUX_CODESTART 0x7FC000
#define AUX_CODEEND 0x7FFF00
#org AUX_CODESTART, AUX_CODEEND
void test_func();
#org default
void config_hardware()
{
setup_oscillator(OSC_CRYSTAL, 96000000, 24000000);
}
void main()
{
test_func();
while (1);
}
void bios_func_A(void)
{
config_hardware();
}
#org CODE_BIOSSTUB, CODE_CHKSUM - 2
void bios_stub_A()
{
bios_func_A();
}
#rom CODE_CHKSUM={0xABCDEF}
#org CODE_BUFSTART, CODE_BUFSEG2 - 2 {}
#org CODE_BUFSEG2, CODE_BUFEND {}
#org AUX_CODESTART, AUX_CODEEND
void test_func()
{
bios_stub_A();
}
#org default
|
Does anyone know what might be happening? Thanks in advance for any assistance.
Best regards,
Dan |
|