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

Building script improvements #33

Merged
merged 6 commits into from
Nov 25, 2022
Merged

Building script improvements #33

merged 6 commits into from
Nov 25, 2022

Conversation

dzid26
Copy link

@dzid26 dzid26 commented Sep 6, 2022

  • Quick Readme installation instruction for confused newcomers
  • Improved ini list behavior in the java configurator
  • Cleaning, compiling, flashing - all done by calling makefile
  • EEPROM not cleared by default
  • Use /bin output directory for the build
  • stm8-flash tool exe provided for Windows
  • linux/windows makefiles unified
  • data_empty.ihx (empty) using actual Intel Hex format
  • added github actions CI and a badge :) image

@emmebrusa
Copy link
Owner

Hello dzid26, I finally found the time to try your modification proposals.
Flashing with stm8flash.exe does not work, I have this error:

Press any key to flash ... (Ctl + C to stop)
stm8flash -c stlinkv2 -p stm8s105? 6 -w ../../bin/main.ihx
Determine FLASH area
libusb: error [init_device] device '\. \ USB # VID_145F & PID_01D3 & MI_01 # 7 & 617E18A & 0 & 0001' is no longer connected!
Due to its file extension (or lack thereof), "../../bin/main.ihx" is considered as INTEL HEX format!
30957 bytes at 0x8000 ... Tries exceeded
make: *** [flash] Error 127
Flashing error !!

Isn't it better to use STVP_CmdLine.exe with Windows and stm8flash.exe with Linux only?

@dzid26
Copy link
Author

dzid26 commented Nov 11, 2022

libusb: error [init_device] device '\. \ USB # VID_145F & PID_01D3 & MI_01 # 7 & 617E18A & 0 & 0001' is no longer connected!
Did the USB get disconnected somehow? I am on Windows and stm8flash.exe works completely fine for me - every time.

Maybe the difference comes from the programmer? I can't find your vid/pid. https://devicehunt.com/view/type/usb/vendor/145F/device/01D3

Mine this cheap one https://devicehunt.com/view/type/usb/vendor/0483/device/3748
image
updated with ST-LINK Utility.

@IArchi
Copy link

IArchi commented Nov 17, 2022

Hello,

Confirmed to be working on MacOS.
I run make to build the ihx file.
Then make flash to deploy on the TSDZ2 through ST-Link.

Everything went fluently.

@emmebrusa emmebrusa merged commit 2880719 into emmebrusa:master Nov 25, 2022
@emmebrusa
Copy link
Owner

Hi dzid26, I really enjoyed your work, and merged it, however for flashing with windows I decided to use STVP_CmdLine.exe.
I have two STlink-V2 clones like the ones in the photo, with STVP_CmdLine they both work, with stm8flash they don't.
Regardless of the cause, I don't want to cause discomfort to others as well.
Can you check if everything is ok? Thank you.

@dzid26
Copy link
Author

dzid26 commented Nov 29, 2022

I tested it today.

  • Flashing went fine on Windows.
  • Walk Mode algorithm seems to work fine

I see that the Setting list in the Java Configurator still doesn't work great. I am fixing it now.

@dzid26 dzid26 deleted the building branch November 29, 2022 22:36
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

3 participants