README.md

Thu, 07 Oct 2021 22:24:45 +0200

author
David Douard <david.douard@sdfa3.org>
date
Thu, 07 Oct 2021 22:24:45 +0200
changeset 69
516acbbce05a
parent 59
b4ce7147f82c
child 71
d193c24a078a
permissions
-rw-r--r--

Possibly fix the 'reset FP while running' case

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
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
3 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
4 HP 34970A acuisition unit described
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
5 [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
6
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
7 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
8 [platformio](https://platformio.org/) development environment.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
9
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
10 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
11 Python 3 virtualenv).
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
12
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
13 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
14
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
15 ## Compilation
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
16
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
17 It should be a simple matter of calling:
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
18
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 (pio3) ~/p/p/hp34970disp$ pio run -e fp_dfu
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 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
23 RAM: [== ] 21.4% (used 14048 bytes from 65536 bytes)
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
24 Flash: [== ] 22.9% (used 90040 bytes from 393216 bytes)
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
25 ========================================== [SUCCESS] Took 28.13 seconds ==========================================
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 Environment Status Duration
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
28 ------------- -------- ------------
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
29 fp_dfu SUCCESS 00:00:28.129
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
30 ========================================== 1 succeeded in 00:00:28.129 ==========================================
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 ```
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 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
35 `fp_stlink`) which are identical but the `upload_protocol`.
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 ## Uploading the firmware
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 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
40 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
41 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
42 to the main CPU board of the HP 34970A).
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 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
45 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
46 then the RESET button while keeping the DFU pressed.
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
47
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
48 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
49
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
50 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
51 (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
52 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
53
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
54 or
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 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
57 (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
58 ```
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
59
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
60 ## Credits
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 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
63 [QEI]() library.
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
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
66 ## Notes (deprecated)
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
67
b4ce7147f82c Write a README file
David Douard <david.douard@sdf3.org>
parents: 26
diff changeset
68 Use mbed 6
26
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
69
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
70 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
71 link time).
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
72 Put a .mbedignore file in:
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
73
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
74 $ cd /home/david/.platformio/packages/framework-mbed@6.51504.200716/features
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
75 $ cat .mbedignore
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
76 mbed-client-cli/*
86f099bda525 Several stuff
David Douard <david.douard@sdfa3.org>
parents:
diff changeset
77 frameworks/mbed-client-cli/*
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 see https://docs.platformio.org/en/latest/frameworks/mbed.html#ignoring-particular-components

mercurial