Hey all,
I'm working on my first large-scale project with uVision3 (had been using uVision2 for quite a while) and doing some initial coding/testing using the simulator. I've got a project directory structured like this:
\MainDir \Application \Output \Bootloader \Output \Common Files
I've written a common "entry point" A51 module that's in the common files directory and shared between both the bootloader and application projects (for code-banking and IAP purposes). I'm working on the application portion at the moment and I've added the entrypoint.a51 file to the project and all compiles well, etc. When I start the debugger (simulator), however, I can't step through my original commented source file, but only the disassembly window. I'm guessing this is because the source file is in a different directory from all the other sources. Is there somewhere in the IDE that I can specify an additional source file location so I can step through my own formatted, commented code? Any hints would be appreciated.
-Jay Daniel
I've written a common "entry point" A51 module ... I can't step through my original commented source file, but only the disassembly window.
not a 'full explanation', but when I had a similar problem, it went away when I did the following:
void main(void) { my_original_asm_main(); }
Erik
I do not know what happened, but the website transformed my correctly formatted entry to the crap format seen above. OK, I should have used pre
Erik,
That would normally work, but by the time I've gotten to main, it's too late. I'm using an ST uPSD3454 chip which has separate flash banks that are dubbed "boot" and "main" flash. Basically, I have an entry point in them that's the very first thing that's executed that's located in the same space in both memory banks. When the chip comes out of reset, it executes out of "boot" flash until this routine has done some checking to make sure there's a valid application in the main flash, at which point it switches flash banks and continues executing.
I suppose it would be possible to do this after reaching a main() in the boot code, but then I'd have to do some sort of dance to re-initialize with ?C_INITSEG from the main flash.