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.

Has anyone got Serial/SCI boot loader working on 28069 controlCard?

Expert 1960 points

I tried to get serial bootloader working with SCI on my 28069 isolated controlCard. The SCI comes from the mini-B USB port on controlCard to a USB port on my laptop PC with Win7. I built f28069_flash_kerne and a simple example project (SCI_echoback) in CCS6 with flash, and added post-build step to convert .out file to .txt file in sci8 format. I also built the serial_flash_programmer in VS2010. I set the SW1 and SW3 properly to set 069 to SCI boot mode when I programmed it. I set the debug in VS2010 to step through  serial_flash_programmer all the way to the end. It ran successfully without error, and produced all the verbose text correctly to suggest that it works correctly. But the app won't run afterwards. I checked the flash sections from CCS debugger and find that the flash sections are all erased with 0xFFFF but no app code written into Flash A as determined in the map file. The same app code can be programmed easily in CCS debugger and run correctly after power-on. The fact that it erased the flash sections means that the flash kernel works somehow. But it failed to program the app code into flash.

Please help if you have any suggestions to get it to work. Thanks in advance!

  • Hi Shef,


    Did you refer this doc: Serial Flash Programming.pdf

    Regards,

    Gautam

  • Yes I did read that document and followed the instructions carefully. Everything seems to work without error but it only seems to erase the flash, not writting anything to it for some reason. Any idea why and how to troubleshoot it? Thanks!
  • Shef, are you able to write to flash using debugger?
  • Hi Gautam,
    Yes I can write to the flash using CCS debugger, and program the same app code (as I mentioned in the opening post). But after I run the serial flash programmer, I can see that the same flash sections are erased with 0xFFFF but no actual code written. It's strange that the "serial_flash_programmer" seems to run all the way to end, including checksum check etc, and reported "Application Load Successful".
  • Shef,

    Have you tried to debug the flesh kernel in CCS? You can control every step there. Check if you do have STATUS_SUCCESS on each stage. After the first block is loaded, check the status and then check the memory itself: if it has something different from 0xfff.

    And just to be sure, can you try doing the same stuff with flash-kernel but with a Example_28069Flash? Just build it, convert it to .txt, and send it via flash programmer to see if the result will be the same.

    Cheers.

  • Hi Shef,

    Are you using the CSM on the F28069? Have you programmed passwords before?
    Is sci_echoback built to run from Flash?

    I suggest loading your flash kernel into RAM with CCS debugger and running that in the debugger. Comment out the function call in the serial_flash_programmer which sends/loads the kernel. Then, begin the communication between the kernel and the serial_flash_programmer. This way you can step through the kernel and see exactly what it is doing and debug the flash programming.

    sal