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.

CCS/TM4C1290NCPDT: TM4C1290NCPDT flash_pb file problems

Part Number: TM4C1290NCPDT

Tool/software: Code Composer Studio

Hello 
At the moment I have the problem with the flash_pb file ... the TM4C stop working depending of the flash_pb file that I link to the project.

if it is link to the ti\TivaWare_C_Series-2.1.4.178\utils them it does not work 
but if I link to other file "Local " it work ... I just merge both file to see the difference and I found out only 1 lines different :

FlashErase((uint32_t)pui8New);     VS      MAP_FlashErase((uint32_t)pui8New);

but the main problem is that in some project it work in other project it does not work ... the devices reset for wdt during FlashPBSave.

  • Hello INGS,

    When you link to ti\TivaWare_C_Series-2.1.4.178\utils are you adding the .c file to your project as well?

    You must add the .c file to your project in addition to linking to the header. Or you can add both files to your project.

    That would explain why it is not working.

  • Hi 

    thanks for the answer, when I link the file to the library I deleted the file ...and when it is not link to the lib I add the file to the project.

  • Hello INGS,

    Not clear if that resolved your issue, so in case not...

    INGS said:
    when I link the file to the library I deleted the file

    Can you explain this? The util files are not in any libraries. Are you trying to make your own?

  • I am not trying to make my owm file .. I have a problem if I use the file from the libraries... I have a old file from other old libreries and i test add that file to the project and the it work.

  • Hello INGS,

    I am struggling to understand the issue here. First of, flash_pb does not exist in a library. Our TivaWare libraries are Driver Library (driverlib), USB Library (usblib), and Graphics Library (grlib).

    When you say library, it is implying one of those. If you are not trying to use flash_pb in any of those, let's drop the 'library' term.

    You mentioned in your post the TivaWare location and a local file location. Are you saying you are not getting the link to work based on TivaWare as a whole? If so, instead of 'library' say 'package' or 'software kit' etc. to help differentiate what you are trying to do here.

    When adding files, you need to add both the .c and the .h to link, or you need to have the .h file linked in your project correct by having the include path in the CCS settings and then adding the path to the .h in your file settings. I suspect you are missing something here whereas when you add the file from the other project, you have a correct link to the .h file.

    If you can post the CCS error you are getting, I can maybe offer better feedback.

  • Hi thanks for the answer 
    I include the file from Driver Library (driverlib) to my project, I I include just flash_pb.c to the project , maybe the problem is here.
    I can not send CCS error becuase the problem is when the device is running ... always I can compile and program without problem but the problem is when i have to save samething in memory the device stop working and reset bz wdt.

  • Hello INGS,

    Please post the code used for both when it works and when it doesn't work. You mention projects are different, so it would be good to see what is different between the two projects.

    Can you see the behavior occur in debug mode or only when it is free running?