README.md

Mon, 11 Mar 2024 15:35:36 +0100

author
David Douard <david.douard@sdf3.org>
date
Mon, 11 Mar 2024 15:35:36 +0100
changeset 71
d193c24a078a
parent 59
b4ce7147f82c
permissions
-rw-r--r--

Add links to sr.ht repos and add an image in the README file

59
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
1 # Replacement front panel for the HP/Agilent 34970A - firmware
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
2
71
d193c24a078a Add links to sr.ht repos and add an image in the README file
David Douard <david.douard@sdf3.org>
parents: 59
diff changeset
3
d193c24a078a Add links to sr.ht repos and add an image in the README file
David Douard <david.douard@sdf3.org>
parents: 59
diff changeset
4 ![HP34970A with new front panel](https://whatever.sdfa3.org/images/hp34970a/derivatives/large-photo/800w/finished.jpg)
d193c24a078a Add links to sr.ht repos and add an image in the README file
David Douard <david.douard@sdf3.org>
parents: 59
diff changeset
5
59
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
6 This repository contains the firmware for the replacement front panel for the
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
7 HP 34970A acuisition unit described
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
8 [here](https://whatever.sdfa3.org/hp-34970a-data-acquisition-unit-part-5.html)
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
9
71
d193c24a078a Add links to sr.ht repos and add an image in the README file
David Douard <david.douard@sdf3.org>
parents: 59
diff changeset
10 The kicad project for the PCB design is [located here](https://git.sr.ht/~douardda/hp34970-pcb).
d193c24a078a Add links to sr.ht repos and add an image in the README file
David Douard <david.douard@sdf3.org>
parents: 59
diff changeset
11
59
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
12 It is based on the [Mbed-os](https://os.mbed.com) framework and uses the
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
13 [platformio](https://platformio.org/) development environment.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
14
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
15 Make sure to have this later properly installed (I suggest you install it in a
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
16 Python 3 virtualenv).
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
17
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
18 The firmware has been developped using platformio version 5.0.3 and Mbed-os 6.2.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
19
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
20 ## Compilation
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
21
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
22 It should be a simple matter of calling:
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
23
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
24 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
25 (pio3) ~/p/p/hp34970disp$ pio run -e fp_dfu
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
26 [...]
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
27 Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
28 RAM: [== ] 21.4% (used 14048 bytes from 65536 bytes)
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
29 Flash: [== ] 22.9% (used 90040 bytes from 393216 bytes)
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
30 ========================================== [SUCCESS] Took 28.13 seconds ==========================================
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
31
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
32 Environment Status Duration
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
33 ------------- -------- ------------
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
34 fp_dfu SUCCESS 00:00:28.129
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
35 ========================================== 1 succeeded in 00:00:28.129 ==========================================
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
36
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
37 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
38
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
39 Note: the `platformio.ini` provides 2 similar environments (`fp_dfu` and
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
40 `fp_stlink`) which are identical but the `upload_protocol`.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
41
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
42 ## Uploading the firmware
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
43
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
44 You can upload the firmware either via the (USB) DFU mode or the SWD/STLink
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
45 port on the PCB. Note that the USB socket on the PCB does not power the board,
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
46 so it must be already powered (which is typically when the board is connected
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
47 to the main CPU board of the HP 34970A).
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
48
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
49 In order to be able to upload the firware by DFU, the STM32 MCU on the front
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
50 panel must be booted in DFU mode, which can be done by pressing the DFU button,
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
51 then the RESET button while keeping the DFU pressed.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
52
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
53 The STLink upload method does not need the board o be booted in DFU mode.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
54
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
55 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
56 (pio3) ~/p/p/hp34970disp$ pio run -e fp_dfu -t upload
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
57 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
58
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
59 or
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
60
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
61 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
62 (pio3) ~/p/p/hp34970disp$ pio run -e fp_stlink -t upload
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
63 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
64
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
65 ## Credits
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
66
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
67 THis firmware uses a modified version of the [UniGraphic]() library and the
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
68 [QEI]() library.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
69
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
70
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
71 ## Notes (deprecated)
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
72
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
73 Use mbed 6
26
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
74
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
75 For some reason I had to disable mbed-client-cli/ (multiple definition of `cmd' error at
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
76 link time).
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
77 Put a .mbedignore file in:
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
78
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
79 $ cd /home/david/.platformio/packages/framework-mbed@6.51504.200716/features
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
80 $ cat .mbedignore
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
81 mbed-client-cli/*
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
82 frameworks/mbed-client-cli/*
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
83
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
84 see https://docs.platformio.org/en/latest/frameworks/mbed.html#ignoring-particular-components

mercurial