Thanks for further understanding the issue. Using smaller source files is not an option for me, I prefer to keep doing the code as it is done for now. I really hope developers can improve this issue. Thank you. This project is now mostly finished (is in practice 2 projects: firmware for an ebike LCD + firmware for ebike motor controller, both using STM8) and users are very happy, this aretheir words: - the TSDZ2 now feels more like the Bosch motor - the motor is more efficient, stronger, it's feel...
Thanks for further understanding the issue. Using smaller source files is option for me, I prefer to keep doing the code as it is done for now. I really hope developers can improve this issue. Thank you. This project is now mostly finished (is in practice 2 projects: firmware for an ebike LCD + firmware for ebike motor controller, both using STM8) and users are very happy, this aretheir words: - the TSDZ2 now feels more like the Bosch motor - the motor is more efficient, stronger, it's feel like...
You are correct, no issue happens when not using the --debug. But that is not a workaround for me as I need to debug the code... The project source is here, if you want to try: https://github.com/OpenSource-EBike-firmware/Kunteng_LCD3_firmware I found that the popular LCDs for ebikes as also motor controllers, cheap and chinese, use STM8 and so we need a good compiler. Thank you for your work!!!
Thanks for looking at this. Attached files. And I just started on a new EBike motor controller that also runs STM8S105: https://opensourceebikefirmware.bitbucket.io/development_tsdz2/Various--2018.04.18_-_original_firmware_and_debug_session_using_OpenOCD.html
Thanks for looking at this. Attached files. And I just started on a new EBike motor controller that also runs STM8S105: https://opensourceebikefirmware.bitbucket.io/development_tsdz2/Various--2018.04.18_-_original_firmware_and_debug_session_using_OpenOCD.html
STM8 static variables inside functions gives Error: <r> relocation error
Well, I never looked again to this issue as I am able to program and debug. I see the NRST line have 5V... maybe the clone STLinkV2 I have can't put it at 0V. Yes, I am using STLinkV2 clone, I have 2 units. I am never using the VDD line, nor for STM8 nor for STM32. By the way, I just finish the first code that runs the EBike motor: https://www.youtube.com/watch?v=mrmxdoyH_Hs 2017-05-25 18:23 GMT+01:00 akre arehnman@users.sf.net: How is it going? Finally I was able to lay my hands on a STM8L discovery...
Hmmm is possible. I will look at the circuit. This board: I finally got my boards/EBike motor controller with STM8S105C6T6. I am able to flash with stm8flash and also with OpenOCD -- you can see here: https://opensourceebikefirmware.bitbucket.io/Various--Endless-sphere.com_forum_messages--2017.05.18_-_First_code_flashing_and_running.html