Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for current libopencm3 #6

Merged
merged 2 commits into from Dec 22, 2014
Merged

update for current libopencm3 #6

merged 2 commits into from Dec 22, 2014

Conversation

flixr
Copy link
Member

@flixr flixr commented Dec 15, 2014

  • replace rcc_peripheral_enable_clock with newer rcc_periph_clock_enable
  • use desig_get_unique_id_as_string from locm3

Since I don't have a working Lisa/M 2.0 I can't test this... Only have 1.0 and MX available right now..

@flixr
Copy link
Member Author

flixr commented Dec 15, 2014

@esden could you please test?

@podhrmic
Copy link
Member

Unfortunately my Lisa M 2.0 has broken JTAG connector, so I can't test this. Also, the bad JTAG connector might have caused the problem with bootloader for STM32F1.

@banditniu
Copy link

Maybe I can give it a try,though my mcu was locked during erasing and I can't unlock it,I still purchase one and replace the locked one.However ,I need a derailed process to do this test.could you give me a hand?

@flixr
Copy link
Member Author

flixr commented Dec 19, 2014

If you had the Error erasing flash with vFlashErase packet and have a BMP, you should be able to do a mass erase and clear the lock again... at least that is what I was told.
I had that error and it worked again after some tries, not sure what was actually helping in the end...

@banditniu
Copy link

Unfortunately,I do not have a BMPwith me,I used Jlink with openocd(of course I changed makefile /luftboot/src/ in order to use it)and followed the luftboot web page,it worked.However,when I try to mass erase the mcu,with the commander 'stm32f1x mass_erase ',mcu was protected.This annoys me for about 1week,and I don't have a solution yet.

发自我的 Windows Phone


发件人: Felix Ruess
发送时间: 2014/12/20 2:01
收件人: paparazzi/luftboot
抄送: banditniu
主题: Re: [luftboot] update for current libopencm3 (#6)

If you had the Error erasing flash with vFlashErase packet and have a BMP, you should be able to do a mass erase and clear the lock again... at least that is what I was told.
I had that error and it worked again after some tries, not sure what was actually helping in the end...


Reply to this email directly or view it on GitHub:
#6 (comment)

@psinha
Copy link

psinha commented Dec 19, 2014

Hey guys,
I have a few free cycles over the weekend. If you can tell me what you need
done, I have all the relevant lisas and a bmpm on hand.
-Pranay.

On Fri, Dec 19, 2014 at 10:37 AM, banditniu notifications@github.com
wrote:

Unfortunately,I do not have a BMPwith me,I used Jlink with openocd(of
course I changed makefile /luftboot/src/ in order to use it)and followed
the luftboot web page,it worked.However,when I try to mass erase the
mcu,with the commander 'stm32f1x mass_erase ',mcu was protected.This annoys
me for about 1week,and I don't have a solution yet.

发自我的 Windows Phone


发件人: Felix Ruess
发送时间: 2014/12/20 2:01
收件人: paparazzi/luftboot
抄送: banditniu
主题: Re: [luftboot] update for current libopencm3 (#6)

If you had the Error erasing flash with vFlashErase packet and have a
BMP, you should be able to do a mass erase and clear the lock again... at
least that is what I was told.
I had that error and it worked again after some tries, not sure what was
actually helping in the end...


Reply to this email directly or view it on GitHub:
#6 (comment)


Reply to this email directly or view it on GitHub
#6 (comment).

Pranay Sinha
Co-founder;
Aerodynamics & Controls Engineer
Transition Robotics, Inc.

340 Woodpecker Ridge
Santa Cruz, CA
P: (831) 426-3733
F: (831) 426-5666

@flixr
Copy link
Member Author

flixr commented Dec 19, 2014

Hi Pranay,
great! First of all it would be great if you could establish/confirm that the current luftboot version (included in paparazzi master tree) works on a Lisa/M 2.
If not, well then we need to fix that asap....
If it does it would be good if you could test this branch and see if you can still upload properly...
The easiest way to test that would probably be to checkout my paparazzi update_luftboot branch and recompile/upload everything using that...

@psinha
Copy link

psinha commented Dec 22, 2014

Tested working on paparazzi master as well as Flixr's update_luftboot
branch at 7:40 pm UTC on monday Dec 22,2014.
-Pranay.

On Fri, Dec 19, 2014 at 2:26 PM, Felix Ruess notifications@github.com
wrote:

Hi Pranay,
great! First of all it would be great if you could establish/confirm that
the current luftboot version (included in paparazzi master tree) works on a
Lisa/M 2.
If not, well then we need to fix that asap....
If it does it would be good if you could test this branch and see if you
can still upload properly...
The easiest way to test that would probably be to checkout my paparazzi
update_luftboot branch and recompile/upload everything using that...


Reply to this email directly or view it on GitHub
#6 (comment).

Pranay Sinha
Co-founder;
Aerodynamics & Controls Engineer
Transition Robotics, Inc.

340 Woodpecker Ridge
Santa Cruz, CA
P: (831) 426-3733
F: (831) 426-5666

@flixr
Copy link
Member Author

flixr commented Dec 22, 2014

Thanks Pranay, just one more question: what system (OS, version) did you test on?

@flixr flixr merged commit 6af6ab6 into master Dec 22, 2014
@flixr flixr deleted the update_locm3 branch December 22, 2014 21:37
@psinha
Copy link

psinha commented Dec 22, 2014

Linux. Ubuntu 12.04.

On Mon, Dec 22, 2014 at 1:28 PM, Felix Ruess notifications@github.com
wrote:

Thanks Pranay, just one more question: what system (OS, version) did you
test on?


Reply to this email directly or view it on GitHub
#6 (comment).

Pranay Sinha
Co-founder;
Aerodynamics & Controls Engineer
Transition Robotics, Inc.

340 Woodpecker Ridge
Santa Cruz, CA
P: (831) 426-3733
F: (831) 426-5666

@flixr
Copy link
Member Author

flixr commented Dec 29, 2014

So I finally got my hands on some Lisa/M 2 again at the 31C3 and could actually reproduce the problem. Was a bug in libopencm3, fixed with libopencm3/libopencm3@922d8f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants