Jump to content

Trouble with pic18f4620 application (solved)


Recommended Posts

Posted

Hi,

I've tried to upload my application to a 18f4620 core

All modifications as described on the wiki page were executed

When I upload my code with MIOS studio v7.4 all goes well (code from 0x3000->0x6EFF)

but after upload MIOS reboots and hangs while displaying:

Rebooting MIOS

the only way to get rid off this is to upload MIOS v1.9 again...

the previous version of my code works OK (code from 0x3000->0x6BFF)

this version was not modified for 18f4620

any clues?

Michaël

Posted

Hi Stryd,

thanks for your time, here's my linker script:

// linker script for a MIOS project
// Thorsten Klose (tk@midibox.org), 2004-07-10

LIBPATH .
FILES lib/libsdcc.lib

CODEPAGE   NAME=vectors    START=0x2C00         END=0x2FFF         PROTECTED
CODEPAGE   NAME=page0      START=0x3000         END=0x7BFF
CODEPAGE   NAME=page1	   START=0x8000			END=0xFFFF
CODEPAGE   NAME=idlocs     START=0x200000       END=0x200007       PROTECTED
CODEPAGE   NAME=config     START=0x300000       END=0x30000D       PROTECTED
CODEPAGE   NAME=devid      START=0x3FFFFE       END=0x3FFFFF       PROTECTED
CODEPAGE   NAME=eedata     START=0xF00000       END=0xF000FF       PROTECTED

DATABANK   NAME=miosvars   START=0x000          END=0x00f
ACCESSBANK NAME=accessram  START=0x010          END=0x07F
DATABANK   NAME=gpr0       START=0x080          END=0x0FF
DATABANK   NAME=gpr1       START=0x100          END=0x1FF
DATABANK   NAME=gpr2       START=0x200          END=0x2FF
DATABANK   NAME=stack      START=0x300          END=0x37F          PROTECTED
DATABANK   NAME=miosram_u  START=0x380          END=0x5FF	   	   PROTECTED
//enable the use of the new ram
DATABANK   NAME=gpr6       START=0x600          END=0x6FF
DATABANK   NAME=gpr7       START=0x700          END=0x7FF
DATABANK   NAME=gpr8       START=0x800          END=0x8FF
DATABANK   NAME=gpr9       START=0x900          END=0x9FF
DATABANK   NAME=gpr10      START=0xA00          END=0xAFF
DATABANK   NAME=gpr11      START=0xB00          END=0xBFF
DATABANK   NAME=gpr12      START=0xC00          END=0xCFF
DATABANK   NAME=gpr13      START=0xD00          END=0xDFF
DATABANK   NAME=gpr14      START=0xE00          END=0xEFF
DATABANK   NAME=gpr15      START=0xF00          END=0xF7F

ACCESSBANK NAME=accesssfr  START=0xF80          END=0xFFF          PROTECTED

SECTION    NAME=CONFIG     ROM=config

//main buffer wich contains the active pattern
SECTION	   NAME=BUFFER	   RAM=gpr6
//edit buffer
SECTION	   NAME=EBUFFER	   RAM=gpr7

Posted

OK mystery solved, I did remove my bankstick module to test the IIC_midi module

and the core just hanged because of some bankstick code in Init()  ::)

I disabled this code and everything worked fine...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...