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.

Flash28335_API_V210.lib problem

I have transferred a 2812 project to 28335 and I am now at the last breaking point. The FlashAPI! The goal is to update the code via CAN. We have been doing this on the 2812 for years now...

The update is started inside a CAN interrupt, which is located in RAM. The FlashAPI is in RAM as well, I verified both to actually be in RAM. I am getting to the breakpoint just at the DINT instruction before the call to Flash_Erase(); The parameters are correct. The request is to erase sector A and a pointer to a status variable is provided (same stuff as with the 2812). I have been monitoring the RAM contents and nothing is changed within the FlashAPI area in RAM (no 'stepping' on the code) since the library was copied to RAM. I single step over the next line which is performing a flush of the pipeline (has always been there in the 2812). The next line is a call to Flash_Erase(); An attempt to step over the function, never returns; however, a 'suspend' stops in the forever loop in the main code where I am waiting for the CAN interrupts. A 'step into' does actually go into the Flash_Erase routine. I can see assembly statements that make full sense; however, I do not dare to single step through more than a few statements until just before the FLASH registers are being written to. I do not want to mess up the timing and potentially damage the FLASH. If I now set a breakpoint just after the Flash_Erase call or click on 'exit routine" button, the code runs away again and I can find it just as before in the main forever loop. Sector A is never getting erased and the contents of the flashStatus variable are not changed to any error code. Also, I am setting up the CallbackFunction with a call to the ServiceDog routine. I have also tried to disable the watchdog prior to this call with no difference.

I don't know what else to do!!!!!!!