CW for MCUs V6.1 overwrites exceptions.c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW for MCUs V6.1 overwrites exceptions.c

2,540 Views
kef
Specialist I
I did create new ptroject from scratch for MCF51QE128.
 
Every time i switch target/connection combo box from P&E Multilink/Cyclone to Full Chip Simulation or backwards, IDE recreates exceptions.c file and readds it to the project. It also overwrites exceptions.c if such file exists in sources subfolder.
 
I definitely don't want such behaviour. I also don't want exceptions.c file in my bootloader project. Any pointers how could I fix that?
 
IDE also overwrites default.mem file when I switch from P&E to Simulator or backwards. Is there any reason for this? I think mem file is used by simulator only. I could understant (maybe) if IDE was overwriting default.mem only switching from non Simulator target to Simulator. It would be the best if IDE wasn't overwriting it at all.
Labels (1)
0 Kudos
4 Replies

416 Views
CrasyCat
Specialist III
Hello
 
This is the way the project change wizard is implemented today.
 
You can submit a Change Request through our on-line support web page and ask to get a modification in the project change wizard.
 
Click here to submit a Change Request.
 
Some additional information on that.
When you are using the project change wizard, the files, which have been changed, are stored in a zip file with _backup in his name.
So you should be able to retrieve the original file from that archive.
 
Finally there might also be some .mem file created when you are debugging on real hardware.
Format of the .mem file are completely different between simulator & real time debugger.
So the change wizard is correct when it modifies the default.mem file.
 
CrasyCat
0 Kudos

416 Views
kef
Specialist I
Thanks
 
Actually I didn't use project change wizard, I just switched the debug setting combo box (P&E Multilink <-> Simulator).
 
You said there should be something like backup.zip file. What I see is that it is created only changing target MCU. IDE doesn't backup files when I change debugging target combo box (P&E Multilink <-> Simulator). 
 
I'll try to stop touching this P&E <-> Simulator combo. It seems better to change taget connection in hiwave. Or maybe creating identical project with different debugger settings...
0 Kudos

416 Views
CrasyCat
Specialist III
Hello
 
Well changing the connection in the  combo box is in fact using the change wizard in the background.
 
Switching from Simulator to real time debug might require special configuration in the CPU vector table, so an update in exception.c (for stdI/O or console I/O for example).
So this might be the reason why exception.c is changed.
 
In order to avoid this behavior I only see the two mechanism you mentioned in your last thread.
 
If you decide to go for 2 projects (one per connection) make sure to keep them in synch (if you change compiler setting in one project, you need to change it in the other project as well).
 
CrasyCat
0 Kudos

416 Views
kef
Specialist I
thanks
0 Kudos