Code Monkey home page Code Monkey logo

versaloon-git's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

versaloon-git's Issues

bluepill erros starting openocd

I compiled the latest firmware on a bluepill, but unfortunately it always fails when connected to a stm32f0x target with lots of "Error: usbtoswd command 0x28 failed with 0x01".

For instance:

Open On-Chip Debugger 0.11.0+dev-00642-g0f30023f6-dirty (2022-10-27-00:06)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : VSLLink SWD mode enabled
swd
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : Versaloon(0x16)by Simon(compiled on Oct 29 2022)
Info : USB_TO_XXX abilities: 0x0000176E:0x010001EF:0xC0000007
Info : clock speed 1000 kHz
Error: usbtoswd command 0x28 failed with 0x01
Error: Invalid length of return data
Error: Sequence 2 not supported
Error: Sequence 5 not supported
Error: usbtoswd command 0x28 failed with 0x01
Error: Invalid length of return data
Error: usbtoswd command 0x28 failed with 0x01
Error: Invalid length of return data
...

Any idea what's going on?

Thanks in advance!

vsgui compile fix and general questions

to get vsgui to comple needed,

--- /media/maddocks/usb3tb/stm32-std-periph-drivers_porting-tools/versaloon-git/vsgui/hexeditor.pas 2021-04-07 08:28:23.160413990 -0400
+++ /media/maddocks/usb3tb/versaloon-newgui/vsgui/hexeditor.pas 2021-03-15 06:45:00.427950466 -0400
@@ -1048,7 +1048,7 @@
end;

 try
  •  if not FileExistsUtf8(SaveAsFileName) then
    
  •  if not FileExists(SaveAsFileName) then
     begin
       HandleTmp := FileCreate(Utf8ToAnsi(SaveAsFileName));
       if HandleTmp = NULL then
    

@@ -1246,7 +1246,7 @@
FillChar(DataBuff[1], DataByteSize, DefaultData);

// open file and read

  • if FileExistsUtf8(FileName) then
  • if FileExists(FileName) then
    begin
    ext := LowerCase(ExtractFileExt(FileName));
    CurFileParserIndex := 0;

--- /media/maddocks/usb3tb/stm32-std-periph-drivers_porting-tools/versaloon-git/vsgui/texteditor.pas 2021-04-07 08:28:23.163747404 -0400
+++ /media/maddocks/usb3tb/versaloon-newgui/vsgui/texteditor.pas 2021-03-15 06:45:45.752659720 -0400
@@ -25,7 +25,7 @@
{ private declarations }
public
{ public declarations }

  • end;
  • end;

var
FormTextEditor: TFormTextEditor;
@@ -53,7 +53,7 @@
tmpStrList: TStringList;
i: integer;
begin

  • if not FileExistsUtf8(TextFileName) then
  • if not FileExists(TextFileName) then
    begin
    Beep;
    MessageDlg('Error', TextFileName + ' not exists.', mtError, [mbOK], 0);

--- /media/maddocks/usb3tb/stm32-std-periph-drivers_porting-tools/versaloon-git/vsgui/main.pas 2021-04-07 08:28:23.160413990 -0400
+++ /media/maddocks/usb3tb/versaloon-newgui/vsgui/main.pas 2021-03-15 06:49:50.942092130 -0400
@@ -1712,7 +1712,7 @@
MessageDlg('Error', 'No File Defined.', mtError, [mbOK], 0);
exit;
end;

  • if not FileExistsUtf8(TargetFile[fileidx].filename) then
  • if not FileExists(TargetFile[fileidx].filename) then
    begin
    Beep();
    MessageDlg('Error', '"' + TargetFile[fileidx].filename + '" not exists.',
    @@ -2087,8 +2087,8 @@
    (Sender as TDirectoryEdit).Directory + System.DirectorySeparator;
    end;
  • VSProg_Exists := FileExistsUtf8(dedtVSProg.Directory + VSPROG_STR);
  • OpenOCD_Exists := FileExistsUtf8(dedtOpenOCD.Directory + OPENOCD_STR);
  • VSProg_Exists := FileExists(dedtVSProg.Directory + VSPROG_STR);
  • OpenOCD_Exists := FileExists(dedtOpenOCD.Directory + OPENOCD_STR);
    end;

procedure TFormMain.FormActivate(Sender: TObject);
@@ -2252,7 +2252,7 @@
function TFormMain.VSProg_PrepareToRun(aApplicationName: string): boolean;
begin
Result := False;

  • if not FileExistsUtf8(aApplicationName) then
  • if not FileExists(aApplicationName) then
    begin
    exit;
    end;

Still not sure if it works havent tried much but many warnings during compile including missing .o's and deprecated things.

This software is incredible!! The more I look thru it the more I find! So it has usb mass storage option for drag n drop programming, and a scripting language that can be built in, both of which require a ton more storage then my f103s have! Have you trie them? What board did u use if so? I see stm32f4 discovery port but no f4 drivers, where early f4s peripherals compatible with f103 or something missing? I see you can compile the programmer into firmware (for drag and drop?) I assume swd uses same pins as jtag? I see the scripting docs and tried to use those commands (without scripting compiled in, again space) and using similiar but different syntax I forest gumped/guessed my way into some that didnt error out. all of my f4s use 25mhz hse and it doesnt look like the code supports that. Im very curious what this firmware with all bells and whistles turned on can do, for example the usbtoeverything does that control the peripherals on the programmer or target? And again how does this compile for f4? Lots of cod didnt go thru it all yet but dont see f4 clock settings (f4 at 72mhz maybe?) or peripheral drivers etc. Anyway super appreciate you keeping the old source and documenting it! seems like zoobab removed a ton of awesome stuff!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.