paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Lisa/M 2.0 and Aspirin 2.1 available in the Quadsh


From: Piotr Esden-Tempski
Subject: Re: [Paparazzi-devel] Lisa/M 2.0 and Aspirin 2.1 available in the Quadshot store
Date: Fri, 13 Apr 2012 19:38:23 -0700

Hey guys,

Sorry for the delayed answer. I was quasi offline the last two weeks.

I just added basic support for luftboot to the dev branch. If you set your 
airframe to use lisal/m 2.0 as it's board the targets will be generating 
firmware that is relocated to 0x8002000 and will use gareths' dfu flashing 
script by default.

After you flashed a payload once you will need to short the ADC2 pin to ground 
to force the bootloader to stay in bootloader mode. Then you can reflash the 
firmware again.

This should not be necessary in the future when we have added a usb stack stub 
to the paparazzi firmware that allows switching to the bootloader using 
software. An example how this could be done is in the luftboot repository. 
(cdcacm example)

Also if you already flashed your lisa/m 2.0 with a firmware using JTAG (and 
overwrote the bootloader) you can restore the bootloader by checking out 
luftboot repository (https://github.com/paparazzi/luftboot) and running:

make clean && make flash DEV_SERIAL="LM2-ser"

in the src directory, where "ser" stands for the serial number of your Lisa/M. 
So for example if you have lisa/m with the serial number 020 this would be:

make clean && make flash DEV_SERIAL="LM2-020"

You still can use FLOSS jtag or Black Magic probe when using the bootloader. It 
"should" not overwrite the bootloader when using the lisa/m 2.0 board. But you 
have to change the FLASH_MODE to JTAG. Look into conf/boards/lisa_m_2.0.makefile

I hope this helps.

Cheers Esden

On Apr 11, 2012, at 9:15 PM, Stephen Dwyer wrote:

> Hello Marc,
> 
> I think it would be great to add it to the wiki, just in case. May I suggest 
> adding it underneath the JTAG section?
> 
> Thanks,
> -Stephen Dwyer
> 
> On Wed, Apr 11, 2012 at 3:30 AM, Gareth Roberts <address@hidden> wrote:
> Sorry, the correct entry point is NOT 0x8002000.
> That's the location of the text section in the blackmagic.bin example.
> 
> Cheers,
> Gareth
> 
> 
> On Wed, 11 Apr 2012 10:27:22 +0100, Gareth Roberts <address@hidden> wrote:
> 
> Hi Marc,
> 
> That's great, good to see it's working.
> I actually used stm32_mem.py from here 
> https://github.com/paparazzi/luftboot/tree/master/scripts.
> 
> I tried modifying the linker script in 
> paparazzi/sw/airborne/arch/stm32/stm32f103re_flash.ld to correct the entry 
> point but that didn't work.
> The correct entry point from the black-magic docs is 0x8002000, which is also 
> repeated in stm32_mem.py as the offset to start programming from.
> The blackmagicdebug makefiles have a file designed to be loaded via 
> stm32_mem, and the makefile has the .text section relocated to 0x8002000 and 
> the flash origin @ 0x8000000, just like the paparazzi linker file.
> I'm now out of Lisa's with bootloaders, but in the interests of helping 
> others:
> - Loading ap.bin directly via stm32_mem.py doesn't work
> - Modifying Makefile.stm32 to include the LDFLAGS -Wl,-Ttext=0x8002000 
> doesn't work
> 
> I've got a jtag cable on the way, so I'm probably going to give up and switch 
> to jtag for the time being rather than remove the diode.
> It's just frustrating - the bootloader is there, the programmer seems to 
> work, we just need someone to tell us what we are doing wrong :)
> 
> Cheers,
> Gareth
> 
> On Tue, 10 Apr 2012 23:45:09 +0100, Marc Schwarzbach <address@hidden> wrote:
> 
> Hi Gareth
> (and all others with Lisa/M but without JTAG :-)
> 
> just had the same experience as you.. Blinky, upload ap.bin, End.
> 
> I think Esden is very busy with the quadshot at the moment (and on holiday). 
> So I wanted to program the Lisa anyway...
> 
> My way is using the "traditional" serial bootloader. It´s a hack, it´s slow, 
> but it works (just got it working some minutes ago).
> 
> In short: remove diode (usb->VIN), connect aspirin ACC_INT to GND (Boot1), 
> Boot0 to 3,3V, Connect 3,3V FTDI to UART1 (TX/Lisa=USB-VBus).
> 
> Then change the loader path in the stm32 makefile to your directory where you 
> put it (ok, download it before... https://github.com/jsnyder/stm32loader)
> 
> Set flash mode to serial in airframe file.
> 
> Power on (no longer over USB! Set jumpers correctly before)
> 
> Upload!
> 
> Wait :-)
> 
> If there is greater interest, I could write something for the wiki.
> Then it would also be good to adjust the path and add the loader to the repo 
> permanently...
> 
> Cheers
> 
> Marc
> 
> 
> -------- Original-Nachricht --------
> Datum: Tue, 10 Apr 2012 15:30:12 +0100
> Von: "Gareth Roberts" <address@hidden>
> An: address@hidden
> Betreff: Re: [Paparazzi-devel] Lisa/M 2.0 and Aspirin 2.1 available in the 
> Quadshot store
> 
> Hi Esden,
> 
> Could you quickly detail how to use luftboot?
> I tried flashing ap.bin to a lisa/m 2.0 via stm32_mem.py, it programmed
> fine but the bootloader is now stuffed and it doesn't seem to be doing
> anything.
> Presumably the offsets are wrong?
> I'm on locm3 but all airframe files still try to upload via jtag.
> 
> Cheers,
> Gareth
> 
> On Thu, 22 Mar 2012 22:05:45 -0000, Piotr Esden-Tempski <address@hidden>
> wrote:
> 
> > Hi everyone,
> >
> > As you may know we were working very hard the last few months developing
> 
> > the next version of Lisa/M and Aspirin.
> >
> > Finally both are back from the production and you are able to obtain
> > both separately or together in the Quadshot store
> > (http://thequadshot.com)
> >
> > The support for Lisa/M 2.0 as well as Aspirin 2.1 are in the dev branch
> > of paparazzi.
> >
> > Two biggest improvements are:
> > - Aspirin 2.1 uses MPU-6000 over SPI and the magnetometer is connected
> > to its slave i2c interface. This improves robustness and time alignment
> > of the sensor sampling.
> > - On Lisa/M 2.0 you can use USB and the TX line to the GPS
> simultaneously
> > - Lisa/M 2.0 comes with luftboot boot loader preloaded. (Support in
> > paparazzi libocm3 branch will be added in the next couple of days)
> >
> > The hardware should still be considered for developers only. We continue
> 
> > working hard on testing and improving the drivers but several people
> > were already flying this hardware on fixed wings and multicopters.
> > (Thanks Erik and Christophe)
> >
> > Cheers Piotr Esden-Tempski
> >
> > --
> > Transition Robotics Inc.
> > http://transition-robotics.com
> > the makers of the Quadshot
> > Co-Founder, Embedded systems Engineer
> > Mobile: +1 831 440 7454
> > Skype: esdentem
> >
> >
> > _______________________________________________
> > Paparazzi-devel mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
> 
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
> 
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
> 
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
> 
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]