I am doing a university course using an STM32L431 and started using Keil uVision 5. My team has run up against the code limit with all optimizations turned on and it seems to be unavoidable. Is there an easy way to import a project back from keil. I keep running into issues whether it's files not being read in or in the most recent case
#ifndef __TARGET_FPU_VFP in port.c
failing and throwing the error along with a bunch of different stray # in the same file. As far as I can see I have set this option. I also ran into the same issue trying to import into segger embedded studio.
Ha ha - the Keil forum isn't really the place to ask how to get away from Keil!!
Doesn't your university have educational licences for Keil?
Moving from one IDE to another really shouldn't be an issue - it's just a matter of going through the settings in one, and making sure the same things are set in the other.
Probably the easiest way is to start with a clean, basic project in the other IDE, and then bring in your files & settings.
uVision .uvprojx project files are easy to view, and the Batch generation can be useful:
community.arm.com/.../160046
>>Probably the easiest way is to start with a clean, basic project in the other IDE, and then bring in your files & settings.
This
Create a shell project, and use merge tools. Importing projects using the application seems hit-or-miss.
Frankly, the project files are in .XML, sort of thing an undergraduate should be able to create a serviceable port with a script...
I realize it might be a bit on the nose to ask on this forum but the help has been worth it.
I had tried going through the settings one by one but that didn't work. In the end it was the third attempt at a clean project after sleeping on it that did the trick.
Looking at the project files was helpful, thank you. I did notice a bunch of things looking there but the structure between keil and other IDEs is so wildly different that starting from a clean project, moving everything across and managing the errors that crop up ended up being the easiest
gabj said:I had tried going through the settings one by one but that didn't work.
Often, settings work together - so they need to be kept as a complete set.
Glad you got it working.
Hi gabj,
I need also to move an existing project developed on MDK Keil to STMCubeIDE but I have not had any success. Would you mind explaining how you worked it out to me? I have been trying to create my new project on STMCubeIDE from scratch by copying and pasting the source files but it looks like some files are not recognizable by STMCubeIDE. From the existing project, I have the uvprojx and uvoptx files.
Any insight is appreciated
Thank you.
Regards.
As already noted, problems creating an STM32CubeIDE project are nothing to do with Keil or ARM - you need to ask ST about that!
https://community.st.com/s/topic/0TO0X000000y2j7WAA/stm32cubeide