Jump to content

how can I build MIOS SourceCode together with my own Application ???


Recommended Posts

Posted

Hi there,

does anybody know how to assemble the MIOS Source Code together with my own Application Code???

I want to do this because I want to debug my application with the MPLAB SIM Debugger Tool

- what changes do I have to do to the Main.asm Files?

- which main.asm file is the one I should use?

- are there any links to Memory allocation tables of MIOS and Application Code?

thanks for every litle hint ! ::)

O

Posted

Hi,

I can only say, that merging the two projects isn't so easy, since there are name conflicts. A proper solution would be a MIOS replacement just for simulation, but nobody created this yet

Best Regards, Thorsten.

Posted

Hi Thorsten thanks for your post!

I undertstand that!

But there seems to be a problem with the current src code V1.8. I get lots of Errors if I try to assemble the src.

The first problem seems to come from a different file format of the main.asm file. This disapears if I convert the file via word pad into windows text format.

But there´s still a problem with the mios.inc and the p18f452.inc files. I´ve excanged them with the ones from V1.7 then I only get several Erros with "Symbol not previously defined (PIC_DERIVATIVE_TYPE)"

Maybe these problems only appear with the windows version of MPLAB IDE v7.30 ???

Stay tuned

Olgimat

Posted

Hi Olgimat,

problem is, that some assembler source files have UNIX style linefeeds. I haven't found the time to upload an update yet (after more than one year you are the second one who asks for this, therefore the low priority ;-)), but there is an easy solution: under Linux type "unix2dos *.inc", or under Windows open the affected .inc files with the wordpad and save them again

Best Regards, Thorsten.

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...