Comments (3)
@dpavlin Looking again at your pictures I realise you used STLINK on the SWD port to program the scope. What software did you used it with?
from dlo-138.
Looking at Makefile I have on system does brings some memories :-) It looks like this:
dpavlin@nuc:/nuc/stm32/DLO-138$ cat Makefile
all:
test -d /tmp/arduino_cache_341717 || mkdir /tmp/arduino_cache_341717
test -d /tmp/arduino_build_954453 || mkdir /tmp/arduino_build_954453
/opt/arduino-1.8.2/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.2/hardware -hardware /home/dpavlin/.arduino15/packages -hardware /home/dpavlin/Arduino/hardware -tools /opt/arduino-1.8.2/tools-builder -tools /opt/arduino-1.8.2/hardware/tools/avr -tools /home/dpavlin/.arduino15/packages -built-in-libraries /opt/arduino-1.8.2/libraries -libraries /home/dpavlin/Arduino/libraries -fqbn=Arduino_STM32:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz -vid-pid=0X1EAF_0X0004 -ide-version=10802 -build-path /tmp/arduino_build_954453 -warnings=none -build-cache /tmp/arduino_cache_341717 -prefs=build.warn_data_percentage=75 -verbose /nuc/stm32/DLO-138/DLO-138.ino
/opt/arduino-1.8.2/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.2/hardware -hardware /home/dpavlin/.arduino15/packages -hardware /home/dpavlin/Arduino/hardware -tools /opt/arduino-1.8.2/tools-builder -tools /opt/arduino-1.8.2/hardware/tools/avr -tools /home/dpavlin/.arduino15/packages -built-in-libraries /opt/arduino-1.8.2/libraries -libraries /home/dpavlin/Arduino/libraries -fqbn=Arduino_STM32:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz -vid-pid=0X1EAF_0X0004 -ide-version=10802 -build-path /tmp/arduino_build_954453 -warnings=none -build-cache /tmp/arduino_cache_341717 -prefs=build.warn_data_percentage=75 -verbose /nuc/stm32/DLO-138/DLO-138.ino
/home/dpavlin/Arduino/hardware/Arduino_STM32/tools/linux/maple_upload ttyACM0 2 1EAF:0003 /tmp/arduino_build_954453/DLO-138.ino.bin
From this, I think that I flashed https://github.com/rogerclarkmelbourne/STM32duino-bootloader using swd and https://github.com/texane/stlink (I'm using Linux) to board, and them used maple_upload to upload firmware. With this setup flashing works with just make over usb only.
If should be possible to upload https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/dso138_boot20.bin over serial using st-link software which you have and continue using usb to upload arduino code.
from dlo-138.
Thanks for the info. I have ordered the ST-Link V2 adapter from AliExpress just in case. It seems I have managed to solve the scaling issue by replacing the R11 resistor with a 150 ohm one (it was 1.5k on my board) as per this page. Now I get 3.6V peak-to-peak for the test signal which is much better than 0.9V Vpp. It is still by +0.3V off, so I might need to delve into the software after all to try to correct it with your ADC_SCALAR correction factor.
from dlo-138.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dlo-138.