Multipilot 32 Support three kind of bootloader :

  • The  first and simple is Serial Bootloader.
  • Jtag port .
  • USB DFU.

Actualy i'm work on it . My starting point was leaflab bootloader code.

 

This is the thread in his forum.

http://forums.leaflabs.com/topic.php?id=616

 

This is the code that i'm using :

https://github.com/leaflabs/maple-bootloader

 

I'm working on native branch.

So actualy the code is uploading fine on  flash but when the routine check if the stack pointer is in correct position the test failed  :(

So I'm try to understand why ?!

 

If someone have same idea It's welcome .

Regards

Roberto

You need to be a member of FOXTEAM UAV CLAN to add comments!

Join FOXTEAM UAV CLAN

Email me when people reply –

Replies

  • PLEASE PAY ATTENTION:
    First download riquire the followimg steps:
    *Connect MP32 device to Computer USB port and wait for "NEW HARDWARE FOUND" message
    *wait for "Found New Hardware Wizard"
    "Can windows connect to Windows Update to search for software?"
    Choose "no, no for this time"
    *push button --> Next
    "What do you want the wizard to do?"
    Choose "Install from a list or specific location"
    *push button --> Next
    * Now select by browser, drivers directory of DFU devices in your VRIDE location
    (...\drivers\mapleDrv\dfu)
    for example:
    C:\firmware\vrobotix-ide-0.0.3\drivers\mapleDrv\dfu
    *push button --> Next
    Wait for installation complete
    Now device is ready to use
    • Hi all,

       

      Does anybody have tested with the MP32 the "RapidSTM32 blockset" for Simulink (www.aimagin.com/? 

      "RapidSTM32 can convert your Matlab program to a working embedded system in just a few mouse clicks. All you need is standard Matlab tool suite, RapidSTM32 Blockset and FiO evaluation board. You do not need to write a single line of code."

       

      This blockset uses the usb port to download firmware and to communicate with the board via simulink. The pb are :

      1 - How to download the firmware to the MP32 via usb ? (I have followed the previous posts, but the hardware is always unrecognized)

       

      2 - The blockset is developped for the FiO Std...which looks like to the MP32.

       

      Best

      Cyrille

  • ciao roberto,

    i looked through the existing usb code and understand who it works.

    offest calculation of the user code and setting the stack pointer is clear to me.

     

    will try to generate a simple example.

     

  • I spoke with Giovanni to understand what could be the problem on the code uploaded by usb .

    I told me to check the the register in NVIC that is possible to change to set the start of int vect table. And then check the position of the stack. In these day i'm with my kids for the week end i think to check the code in the next day.

    Best

    Roberto

  • Dear Robert, @all

    check this new code :

    http://code.google.com/p/multipilot32/source/browse/#svn%2Fbranches...

    I upload a program file by usb on cpu and i see the program start , dont' work properly yet i think that i need to check somethings in vector table or in memory allocation .

    Best

    Roberto

  • Hello ,

    I was looking to the documentation provided in the last Webinar on the different
    boot loading protocols available for STM32 proc.

    Both are refering to the STM Application Note AN2606 available here :
    http://www.st.com/stonline/books/pdf/docs/13801.pdf

    In the table-2 page 7, the DFU bootloader protocol is available just
    for Connectivity Line (i.e. STM32F105xx and STM32F107xx microcontrollers).

    It seems that the STM32F103VE of the MP32 will not be able to managed DFU.


    By the way, Spy-Cam have a simple method to upload their firmware.

    The procedure consists in copying a firmware file with a specific name (ex. MPE32_firm.bin)
    in the root of the SD card.

    At the next reboot (by pressing reset for ex.), the program updates itself the flash RAM
    and reboot with the new code!


    My 2 cts !
    Best regards,

    Spartacus
    • Hi Spartacus ,

      thanks for your support , so i have yet doing some test on bootloader by usb , using a dfu approach and it works , the only problem that i have to solve is after upload the code in ram save in flash in right position the new code ... if you have some link ..about this application note send us the link .. :)

      If some could work on usb bootloader ask me the source .. i can upload it on repo ...

      For upload the code is possilbe to use dfutil developed by openmoko project used also in other project as leaflabs.

      Best

      Roberto

       

       

       

  • those mcu's have the ability to have the boot code in ram and in flash.

    you have to check this.

    robert

    • Hi Robert ,

      yes i know , in bootloader code i have the problem after i uploaded all the code in flash ... when i try to restart the problem is that the stack pointer isn't in correct position.

      But when i used STM32F103RB instead of VE the code worked fine .. :(

      I think that there're an error in memory allocation.

       

This reply was deleted.