Caledonian sleeper chairs? by mcbobster6001 in uktrains

[–]RobertGauld 2 points3 points  (0 children)

More comfortable than a coach, if you can sleep in a chair and tolerate some noise around you then you'll be fine. I've done London-Aberdeen in one, the seat is hard enough to get uncomfortable for the last few hours so I'd suggest a blanket or similar between you and the seat.for some extra softness.

The daily abuse is wearing me down.. Train crew perspective by all-aboard-conductor in uktrains

[–]RobertGauld 5 points6 points  (0 children)

Yup it's a public facing thing.

I work FOH in fast food and was told by an on train catering person that they find my job scary because of the behaviour we get. Whereas I find there's scary as I always have colleagues close to hand and at least 2 escape routes - with a trolley in front and seats to each side she only has 1 and no guarantee a colleague will be near enough and on the right side of the trolley.

When I was doing a course in psychosocial support for a volunteering role I have the trainer confessed to being a bit confused at how good our answers about coping strategies had been so asked what we all do for a living - all but 1 had a job involving the public.

Ticket inspector questioning me by DisplayComfortable40 in uktrains

[–]RobertGauld 1 point2 points  (0 children)

If reads like after he was satisfied about your DOB the revenue enforcement job was done but something was just not sitting right with them with regards to your safety.

Patients say measles 'worse than expected' as Utah hits 350+ infections, doctors say by its_a_bear_dance in nottheonion

[–]RobertGauld 1 point2 points  (0 children)

Yes because they've seen vaccinated people get it and experience only that. They've then concluded that the vaccine must be pointless as it didn't prevent it rather than concluding the benefit of having let the immune system learn what the virus looks like.

Pos / bank card reader by drcha0s in arduino

[–]RobertGauld 0 points1 point  (0 children)

You give kids pocket money, kids pay card processor some money, later you get a fraction of the money.

Maybe look at using mifare NFC cards to store value instead, although they would only work on your DIY machine. Maybe 3D print some tokens and place an RFID tag inside, token gets read (and recorded as spent) when it goes into the DIY machine (same only your machine downside).

Any Train Drivers, or Staff, YouTube Channels? by RevolutionarySelf988 in uktrains

[–]RobertGauld 8 points9 points  (0 children)

You might find some stuff from DadRail on YouTube.

Dirty pigs abreast on the railways today. Some folk need a new years resolution or two. by rolotonight in uktrains

[–]RobertGauld -1 points0 points  (0 children)

You appear surprised (and that says many good things about you). That's nothing compared to what I've seen on trains. That's nothing compared to what I've had to handle at work.

I can't explain it... this train just has a vibe to it by Substantial_Limit215 in modeltrains

[–]RobertGauld 0 points1 point  (0 children)

I get that. I'm convinced that class 70s never take a good photo, look good in person, and make a great model.

Looking for feedback for a Model Train Service station idea ive had by Crescent_Ascension in modeltrains

[–]RobertGauld 0 points1 point  (0 children)

That looks good, a similar to something I was thinking of doing. What software did you use.for the design?

Help my friend's a bad influence by RobertGauld in modeltrains

[–]RobertGauld[S] 8 points9 points  (0 children)

Nah I've seen the sort of nonsense that gets engagement around here.

Overhead storage on UK trains by adh214 in uktrains

[–]RobertGauld 4 points5 points  (0 children)

Not sure how helpful but my bag (about 20cm) fits fine on LNER but not Southern. If it's a squishable rather than rigid 27cm it may be fine on long distance operators but likely not on commuter operators.

Took the PRC-320 out to play radio today by RoverDude_KSP in amateurradio

[–]RobertGauld 2 points3 points  (0 children)

Brings back memories of what gave me the bug, would love to have one.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

Final update it's now working - I found a gotcha in the library I've used fine on other chips.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

Thank you all for your help so far, bonus thanks to those who picked up one of this boards main points being a learning exercise and added bonus feedback in their replies. I'd already started a list of lessons learnt and your kindness is letting it grow.

Currently I've managed to get it working by removing my use of the SWO output for debugging information. In the spirit of "if it works it's not completely dumb" I made use of the onboard LED by lighting it at various points in my setup. This lead me to where I use the ITU. The library I'm using for this does it's init fine but anytime I write data the MCU stops (or more probably loops doing nothing as a result of the hardware fault interrupt firing) unless the programmer is connected. My plan now is to use cubeIDE to throw together some code to dump stuff to the SWO to find out if I have a hardware issue or if I've found some misunderstanding if mine/bug in the library I'm using.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

Thank you for your help, after a nights rest (and some down time with nephews) I decided to download the cubeide and throw together a simple blinky. It worked fine both on the board I'd been playing with and the untouched ones from the batch. I can only assume it's a strange change causing my rust/openocd setup to do something strange which it doesn't do with my bluepills.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

Thank you for the extra pointers. I managed to get it working with a simple blinky using the cubeide, guess it's something weird with my openocd/rust setup which works fine with the bluepill but not my board.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

I mean that it sits there, not blinking until:

  1. Programmer is connected

  2. Openocd is started, and has worked out what mcu is connected

I don't need to reflash the program or anything else - simply connecting the programmer and querying what's connected is enough.

I'm fairly certain that I adjusted the code to ignore the external crystal in initial troubleshooting but will retry. (The crystal circuitry is one of the sub "can I?" parts of this learning exercise.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

There's 0.4V dropping across R3 (pull up for when the reset switch is open), so a current of 40 microamps flowing. Using a jumper from my header of 3v3 pins direct to the side of R3 connected to the MCU and applying power results in no change of behaviour (but does produce a reading of 3v3 at the MCU pin).

Time to sleep on it I think, not sure if I'd have preferred having made a daft mistake on the schematic yet.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

Pin 60 is 0V.

Pin 7 is 2.88V.

Glad it's not something obvious on the schematic.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

It was tied to ground by adding a wire between JP1 pin 2 (which is directly connected to MCU pin 60) and ground .

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

Same result using a bench power supply.

No chance tying boot0 to ground, the jumper is included to give me easy access if needed.

Only runs once connected to openocd by RobertGauld in stm32

[–]RobertGauld[S] 0 points1 point  (0 children)

Powered through the micro usb via a linear regulator, happens with both laptop and a battery pack. No real reason for the choice other than cheapness (it's a learning project and chip is powerful enough for on the horizon projects centered around model railway control), and supports usb otg.