This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Convert project for an 0332 to an 0432

Other Parts Discussed in Thread: HALCOGEN

Hi,

I am trying to change my projects from using the 0332 Hercules to the 0432.  I thought (hoped) this would be an easy process, and I could just create a new Halcogen project, and import the DIL file from the 0332.  Then I could change the device in my CCS project, change the linker file, and I would be good to go.

 

Importing the project seemed to work well, and all of the configuration items were moved over.  However, none of the code that was in the user code sections was moved over. Of course I should be able to do a compare of all the old files to the new files and move the user code sections over manually, but I have somewhere around 15 projects to convert, so this would be very tedious and error prone.

 

Is there a way to easily create a new 0432 project with the same Halcogen settings and user code sections as my current 0332 project has?

 

Thanks,

David

  • Hi David,

    First, let me apologize for the delay in getting a reply to you. For some reason, your post was missed. To start with, note that the LS0332 and LS0432 are 100% compatible so that any code written for the LS0332 will run without change on the LS0432. To manually update the code to take advantage of the additional flash on the LS0432, simply update the linker command file and update your device selection in CCS.

    To migrate the project, you should be able to recreate/import the LS0332 configuration into the LS0432 HalCoGen project as you have done and then copy the source files from the LS0332 project into the LS0432 project overwriting the "empty" source that has been created. The only caution is to not overwrite the new LS0432 linker command file which has the new memory map in it. Once you have your customized source copied over, you can setup the CCS project like you originally did for the LS0332 project. Note that this works for these two devices since the only difference in them is the flash storage size so the only update is to the linker command file. If there are differences in the peripheral sets or peripheral memories, it becomes a bit more tricky.