STM32F103RCT freeze on readAllRegs(); RFM69HCW [SOLVED: use Serial1]

Started by martin321, January 04, 2022, 04:45:41 AM

martin321

Hi

I have a STM32F103RCT and RFM69HCW running stm32duino.
There is another SPI ic, this CS pin is set high.

CS is on PA4
IRQ on PA3

I can read temp when uploading modified Gateway firmware without SPIFlash and sending 't' over serial.
It freezes when trying to send 'r' to dump all registers.

Have tried to get this to work but can't seem to figure out what is wrong.

This is a dump of registers not using library.
Looks like all have the default value except 0x0B(AFC control in low modulation index situations), this is 0x40 instead of 0x00
1 - 4 - 100
2 - 0 - 0
3 - 1A - 11010
4 - B - 1011
5 - 0 - 0
6 - 52 - 1010010
7 - E4 - 11100100
8 - C0 - 11000000
9 - 0 - 0
A - 41 - 1000001
B - 40 - 1000000
C - 2 - 10
D - 92 - 10010010
E - F5 - 11110101
F - 20 - 100000
10 - 24 - 100100
11 - 9F - 10011111
12 - 9 - 1001
13 - 1A - 11010
14 - 40 - 1000000
15 - B0 - 10110000
16 - 7B - 1111011
17 - 9B - 10011011
18 - 8 - 1000
19 - 86 - 10000110
1A - 8A - 10001010
1B - 40 - 1000000
1C - 80 - 10000000
1D - 6 - 110
1E - 10 - 10000
1F - 0 - 0
20 - 0 - 0
21 - 0 - 0
22 - 0 - 0
23 - 2 - 10
24 - FF - 11111111
25 - 0 - 0
26 - 5 - 101
27 - 80 - 10000000
28 - 0 - 0
29 - FF - 11111111
2A - 0 - 0
2B - 0 - 0
2C - 0 - 0
2D - 3 - 11
2E - 98 - 10011000
2F - 0 - 0
30 - 0 - 0
31 - 0 - 0
32 - 0 - 0
33 - 0 - 0
34 - 0 - 0
35 - 0 - 0
36 - 0 - 0
37 - 10 - 10000
38 - 40 - 1000000
39 - 0 - 0
3A - 0 - 0
3B - 0 - 0
3C - F - 1111
3D - 2 - 10
3E - 0 - 0
3F - 0 - 0
40 - 0 - 0
41 - 0 - 0
42 - 0 - 0
43 - 0 - 0
44 - 0 - 0
45 - 0 - 0
46 - 0 - 0
47 - 0 - 0
48 - 0 - 0
49 - 0 - 0
4A - 0 - 0
4B - 0 - 0
4C - 0 - 0
4D - 0 - 0
4E - 1 - 1
4F - 0 - 0
50 - 0 - 0
51 - 1 - 1
52 - 88 - 10001000
53 - 8 - 1000
54 - 0 - 0
55 - 0 - 0
56 - 1 - 1
57 - 0 - 0
58 - 1B - 11011
59 - 9 - 1001
5A - 55 - 1010101
5B - 80 - 10000000
5C - 70 - 1110000
5D - 33 - 110011
5E - CA - 11001010
5F - 8 - 1000
60 - 0 - 0
61 - F - 1111
62 - 0 - 0
63 - 0 - 0
64 - 0 - 0
65 - F - 1111
66 - 70 - 1110000
67 - 0 - 0
68 - 12 - 10010
69 - 16 - 10110
6A - 19 - 11001
6B - 1C - 11100
6C - 0 - 0
6D - 4 - 100
6E - C - 1100
6F - 0 - 0
70 - 18 - 11000
71 - 0 - 0

martin321

#1
Hi,

found out that the Serial.print lines in library needed to be Serial1.print
Now just need to find a way to change to Serial1 when card is setup to use this.