DSO V1.1 open source code

Moderators: lily.li, violet, salmanfarisvp, jeremy882, crail.lyu969

vhangell
Pre-kindergarten
Pre-kindergarten
Posts: 16
Joined: Thu Dec 17, 2009 5:54 pm

Re: DSO V1.1 open source code

Post by vhangell » Tue Dec 29, 2009 10:35 pm

The source code is divided into two.

The DS0201_APP and DS0201_DFU

DS0201_APP-Is the Oscilloscope firmware

DS0201_DFU-This is for the integration with DFuse

I have corrupted the DS0201_DFU (a garbage screen display), but had manage to fix this since I had backuped the full ROM. You can not fix the DS0201_DFU portion of the firmware using the DS0201_APP only. A full copy of the firmware can fix this.

To create a backup, using DFuse Demo.
1) Connect DSO Nano, it should be detected by DFuse Demo
2) Under Upload Action->Click Choose
3) Type filename to save the backup rom
4) Click Upload
The file should be around 128k (STM32F103VB)

I don't know if that answer your question. But I hope it helped you in anyway.

jbn
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Tue Dec 29, 2009 7:50 pm

Re: DSO V1.1 open source code

Post by jbn » Wed Dec 30, 2009 2:53 am

Thanks for the reply. How do I restore the full rom when the DFU has been corrupted?

vhangell
Pre-kindergarten
Pre-kindergarten
Posts: 16
Joined: Thu Dec 17, 2009 5:54 pm

Re: DSO V1.1 open source code

Post by vhangell » Thu Dec 31, 2009 12:09 am

Eventhough this may be off-topic to the subject of the post, i'll try to answer.

SeeedStudio may have alternative answers. As I haven't fully corrupted my firmware, I have not tested this yet (maybe soon hehe).

After the DFU firmware is written on the DSO Nano, the JTAG function will no longer work. If the firmware is corrupted and you can't use Dfuse to overwrite the new firmware, you can refer to ST Application Note AN2557 STM32F10x in-application programming using the USART. This may be your only solution. I think there is a section there for IAP (In-Application-Programming). You need to hook up with the Usart1 of the Dso Nano and use hyperterminal. You can also write protect some portions of the flash memory to protect from accidental writing.

Link:
http://www.st.com/mcu/familiesdocs-110.html
http://www.st.com/stonline/products/lit ... /13916.pdf
vhangell_backup_DS0201_FW_V2.02_SS.zip
My backup firmware. This fixes the corrupted boot logo on my DSO201. This uses the 2.02 SeeedStudio fw.

Use at your own risk.
(36.08 KiB) Downloaded 519 times

embedded
Pre-kindergarten
Pre-kindergarten
Posts: 10
Joined: Sat Jan 02, 2010 8:54 am

Re: DSO V1.1 open source code

Post by embedded » Sat Jan 02, 2010 9:07 am

FreeZinG wrote:this code project is build by IAR 4.20 , the newest F/W is also in IAR 4.20

And the V1.1 in LOGO should be the hardware version , now the newest version is V1.3A , and the F/W version is V2.02.

the F/W of V1.X will be open source and everyone can use it as them wish , but the V2.X F/W will not release the source code , because there is some third party code in it and we don't have the authorization to public it.

and the H/W is all open source for all version.


Thanks
FreeZinG
Is possible to have the newer FW sources with those third party code sections stripped out?
I think that it's easy to do as it should consist just in the removal of some files, isn't it? ;)

Many thanks in advance for your reply!

vhangell
Pre-kindergarten
Pre-kindergarten
Posts: 16
Joined: Thu Dec 17, 2009 5:54 pm

Re: DSO V1.1 open source code

Post by vhangell » Mon Jan 04, 2010 6:59 am

I think if you remove the third party code updates, you will have the very same code as posted on the first page.
The codes were updated on the same files inside the source archive.

embedded
Pre-kindergarten
Pre-kindergarten
Posts: 10
Joined: Sat Jan 02, 2010 8:54 am

Re: DSO V1.1 open source code

Post by embedded » Mon Jan 04, 2010 6:52 pm

Ok maybe, but I think that it doesn't make sense to introduce third-party proprietary code in a great project originated as open source like this.

FreeZinG

Re: DSO V1.1 open source code

Post by FreeZinG » Fri Jan 08, 2010 10:51 am

There may be some good news for you guys ^^

1. the new F/W will open source
2. the new opensource code will be build in IAR 5.4
3. the new F/W will divide into into 2 parts : APP and LIB . APP will open , the APP source code is smaller than 32K , so you just need a free evaluate version IAR to develop it.

vhangell
Pre-kindergarten
Pre-kindergarten
Posts: 16
Joined: Thu Dec 17, 2009 5:54 pm

Re: DSO V1.1 open source code

Post by vhangell » Fri Jan 08, 2010 5:13 pm

Wow thats very promising.... is it still based on 1.0 or from 2.02?
I mean does it include the latest revisions on the codes? thanks

Adam1213
Pre-kindergarten
Pre-kindergarten
Posts: 10
Joined: Fri Jan 08, 2010 8:56 pm

Re: DSO V1.1 open source code

Post by Adam1213 » Sun Jan 10, 2010 12:59 pm

Where can I get IAR Arm 4.42A - I have only been able to find a download for v5.4.
Edit: got code compiling with v5.4.

It would be nice if the code could be compiled using GCC.
Last edited by Adam1213 on Wed Jan 27, 2010 3:51 pm, edited 1 time in total.

davey1
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Wed Jan 27, 2010 3:46 pm

Re: DSO V1.1 open source code

Post by davey1 » Wed Jan 27, 2010 3:49 pm

What license is the code under? i only see a copyright message. Copyright + source code !=open source (you need permissive copyright / copyleft).

Could you please update us on the license that is to be applied / applies to the code. A MIT or a similar license would be good.

Post Reply