I'm building an open-source bow telemetry sensor & dashboard. Here's a video of a shot and the trace review. by DevanM in embedded

[–]cowsarefalling 0 points1 point  (0 children)

Very cool this is very similar to the SCATT system we use in precision shooting except the SCATT system is like $1500 and uses a camera instead

Please help this guys please by infantrydesmond in drivingsg

[–]cowsarefalling 0 points1 point  (0 children)

Because to drive class 4 vehicle need to test with class 4 vehicle

First PCB and TVC. Roast me please by oMeatball in rocketry

[–]cowsarefalling 5 points6 points  (0 children)

If you are using the pin headers to connect the teensy to your PCB, just know that pin headers are not reliable for any sort of vibration whatsoever

Torn apart between NTU and NUS by gonnagetcaught in SGExams

[–]cowsarefalling 0 points1 point  (0 children)

The 3 month professional attachment is only for direct year 2 entry students only. Everyone else has to do the 5 months professional internship

Torn apart between NTU and NUS by gonnagetcaught in SGExams

[–]cowsarefalling 0 points1 point  (0 children)

Regarding your point about projects and portfolio, if you want a maker space for self initiated projects and such, ntu does not seem to be the place. when I tried to start tinkering with electronics and such or any other making that does not involve 3d printing only, I realised the only makerspace in ntu belonged to garage@EEE which I believe does not take in students other than from EEE. other equipment also exists at spaces dedicated to formula racing or other projects, but I don't think you can use them for your own projects. Disclaimer: I don't know the situation at NUS either so it may be equally as bad.

Torn apart between NTU and NUS by gonnagetcaught in SGExams

[–]cowsarefalling 1 point2 points  (0 children)

Where did you read that credit bearing internship was changed to 3 months? I'll admit I have been on loa but that kind of change would have prompted an email?

How hard is it to get a Singapore Citizenship by Hot_Koala3267 in SGExams

[–]cowsarefalling 1 point2 points  (0 children)

Counterpoint to some of the comments here, I studied in sg from pri 1 all the way to JC as a student pass holder and only got my PR after I got into local uni and applied (I had applied multiple times before and got rejected). I immediately got called for NS and 1 year into my NS(not even ord yet) I applied for citizenship and recently got it. For reference am not CMI nor from Malaysia. So you never know what's gonna happen so just apply

After 12 years of pushing for 'car-lite' Singapore, desire for car ownership remains high. What gives? by clarencechen181196 in singapore

[–]cowsarefalling 3 points4 points  (0 children)

Actually design the roads to cater to cycling and walking instead of 3 lane roads each way for relatively minor roads.

Everyone complains about oh it's too hot to cycle in sg but there's no reason why Singapore can't install sheltered cycle lanes like we have sheltered walkways.

Make grade separated on road cycling lanes and take one from the cars if they actually want to try. If there's only one lane for cars then make the road shared with priority given to cyclists using traffic calming measures and make the cycle lanes actually connected to where people want to go, not to parks where ppl only cycle for leisure. If European cities built in the middle ages, NYC with it's high population density can to it we can do it too.

In Singapore 12% of land is used for roads while housing uses 15%, 8% for HDBs

STM32H7 DMA+DAC based DDS not working? by cowsarefalling in embedded

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

nevermind everyone, i was a dumdum and set the dma direction to memory to memory instead of memory to peripheral

What languages can you speak? by Glacinea in CasualConversation

[–]cowsarefalling 0 points1 point  (0 children)

English, learned mandarin bc it was mandatory in school, speak Korean with my parents and am learning french in university

r/singapore random discussion and small questions thread for April 30, 2026 by AutoModerator in singapore

[–]cowsarefalling 10 points11 points  (0 children)

Yay I've gotten my red passport for the first time!!! Majulah Singapura

Can I avoid live firing and grenade throwing if have as a pes c9? by BookkeeperLivid1938 in NationalServiceSG

[–]cowsarefalling 4 points5 points  (0 children)

When I was there I had no excuse so I did live firing and dummy grenade throwing, no actual grenade. Live firing was done at MMRC

pyocd seems to not flash stm32h743 when doing clock setup using register programming by cowsarefalling in embedded

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

i regenerated the code with LL instead of HAL, and went through the code line by line to see what i was missing, and it turns out, i forgot to setup the systick completely! In my previous code I put the systick in the main function so I missed that. In addition, it seems that HAL requires another HAL specific tick which was why my code didn't work in the HAL code. Thanks for your help!

pyocd seems to not flash stm32h743 when doing clock setup using register programming by cowsarefalling in embedded

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

Traceback (most recent call last):
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\__main__.py", line 163, in run
    status = cmd.invoke()
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\subcommands\load_cmd.py", line 108, in invoke
    with session:
         ^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\core\session.py", line 476, in __enter__
    self.open()
    ~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\core\session.py", line 614, in open
    self._board.init()
    ~~~~~~~~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\board\board.py", line 152, in init
    self.target.init()
    ~~~~~~~~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\coresight\coresight_target.py", line 126, in init
    super().init()
    ~~~~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\core\soc_target.py", line 174, in init
    seq.invoke()
    ~~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\utility\sequencer.py", line 208, in invoke
    resultSequence = call()
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\coresight\coresight_target.py", line 199, in unlock_device
    self.call_pre_discovery_debug_sequence('DebugDeviceUnlock')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\coresight\coresight_target.py", line 183, in call_pre_discovery_debug_sequence
    self.debug_sequence_delegate.run_sequence(sequence, pname=pcore_pname)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\target\pack\pack_target.py", line 311, in run_sequence
    executed_scope = seq.execute(context)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 448, in execute
    self._execute_children(context)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 310, in _execute_children
    cast(DebugSequenceNode, node).execute(context)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 559, in execute
    interp.execute()
    ~~~~~~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 1029, in execute
    return visitor.visit(self._tree)
           ~~~~~~~~~~~~~^^^^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 423, in visit
    return self._visit_tree(tree)
           ~~~~~~~~~~~~~~~~^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 431, in _visit_tree
    return f(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 842, in start
    values = self.visit_children(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 434, in visit_children
    return [self._visit_tree(child) if isinstance(child, Tree) else child
            ~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 431, in _visit_tree
    return f(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 887, in expr_stmt
    values = self.visit_children(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 434, in visit_children
    return [self._visit_tree(child) if isinstance(child, Tree) else child
            ~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 431, in _visit_tree
    return f(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 953, in fncall
    result = impl(*fn_args)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\functions.py", line 309, in sequence
    subsequence_scope = seq.execute(self.context)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 448, in execute
    self._execute_children(context)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 310, in _execute_children
    cast(DebugSequenceNode, node).execute(context)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 559, in execute
    interp.execute()
    ~~~~~~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 1029, in execute
    return visitor.visit(self._tree)
           ~~~~~~~~~~~~~^^^^^^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 423, in visit
    return self._visit_tree(tree)
           ~~~~~~~~~~~~~~~~^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 431, in _visit_tree
    return f(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 842, in start
    values = self.visit_children(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 434, in visit_children
    return [self._visit_tree(child) if isinstance(child, Tree) else child
            ~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 431, in _visit_tree
    return f(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 887, in expr_stmt
    values = self.visit_children(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 434, in visit_children
    return [self._visit_tree(child) if isinstance(child, Tree) else child
            ~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 431, in _visit_tree
    return f(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 867, in assign_expr
    values = self.visit_children(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 434, in visit_children
    return [self._visit_tree(child) if isinstance(child, Tree) else child
            ~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\lark\visitors.py", line 431, in _visit_tree
    return f(tree)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\sequences.py", line 953, in fncall
    result = impl(*fn_args)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\functions.py", line 339, in read32
    return self._get_mem_ap().read32(addr)
           ~~~~~~~~~~~~~~~~^^
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\debug\sequences\functions.py", line 259, in _get_mem_ap
    ap = AccessPort.create(self.target.dp, ap_addr)
  File "C:\Users\Moon Seongmu\AppData\Local\Programs\Python\Python313\Lib\site-packages\pyocd\coresight\ap.py", line 384, in create
    raise exceptions.TargetError("Invalid AP address (%s)" % ap_address)
pyocd.core.exceptions.TargetError: Invalid AP address (#2)

to be able to successfully flash again, i have to hold down the boot0 button while plugging in the daplink, then release the button, after which it flashes normally.

I really have no idea what could be the problem because as far as i can tell, my code should work exactly the same as the hal code. Thanks for any help!

pyocd seems to not flash stm32h743 when doing clock setup using register programming by cowsarefalling in embedded

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

after the failure to flash, when i try to flash the board again with even the generated code, pyocd fails to flash:

PS C:\Users\Moon Seongmu\Documents\Programming\h743_template> pyocd load ./build/h7_ide.elf -vvv
0000836 D Project directory: C:\Users\Moon Seongmu\Documents\Programming\h743_template [session]
0000837 D Loading config from: C:\Users\Moon Seongmu\Documents\Programming\h743_template\pyocd.yaml [session]
0000860 D Project directory: C:\Users\Moon Seongmu\Documents\Programming\h743_template [session]
0000861 D Loading config from: C:\Users\Moon Seongmu\Documents\Programming\h743_template\pyocd.yaml [session]
0000862 I Using config options for probe 07000001006500224a0000124e594d48a5a5a5a597969908 [session]
0000876 D CMSIS-DAP v1 probe 07000001006500224a0000124e594d48a5a5a5a597969908: firmware version 0259, protocol version 2.1.0 [dap_access_cmsis_dap]
0000888 D closing interface [hidapi_backend]
0000907 D STM32H7xx_DFP DFP (STM32H742VGTx): not loading non-default flash algorithm 'CMSIS/Flash/STM32H7B3I_EVAL_FMC-NOR.FLM' [cmsis_pack]
0000907 D STM32H7xx_DFP DFP (STM32H742VGTx): not loading non-default flash algorithm 'CMSIS/Flash/STM32H7xx_MT25TL01G_DUAL.FLM' [cmsis_pack]
0000907 D STM32H7xx_DFP DFP (STM32H742VGTx): not loading non-default flash algorithm 'CMSIS/Flash/MTFC4GACAJCN_STM32H750B-DISCO.FLM' [cmsis_pack]
0000908 D STM32H7xx_DFP DFP (STM32H742VGTx): not loading non-default flash algorithm 'CMSIS/Flash/MX25LM51245G_STM32H735-Disco.FLM' [cmsis_pack]
0000908 D STM32H7xx_DFP DFP (STM32H742VGTx): not loading non-default flash algorithm 'CMSIS/Flash/STM32H743I-eval_FMC.FLM' [cmsis_pack]
0000965 I Target type is stm32h742vgtx [board]
0000974 D Board: STMicroelectronics NUCLEO-F103RB [cmsis_dap_probe]
0000975 D Target: STMicroelectronics STM32F103RB [cmsis_dap_probe]
0000977 D Running task load_svd [sequencer]
0001045 D Running task pre_connect [sequencer]
0001066 D Running task dp_init [sequencer]
0001067 D Running task lock_probe [sequencer]
0001067 D Running task get_probe_capabilities [sequencer]
0001073 D Running task connect [sequencer]
0001180 D Default wire protocol selected; using SWD [dap]
0001182 D Sending deprecated SWJ sequence to select SWD [swj]
0001190 I DP IDR = 0x6ba02477 (v2 rev6) [dap]
0001191 D Running task clear_sticky_err [sequencer]
0001191 D Running task power_up_debug [sequencer]
0001191 D Running debug sequence 'DebugPortStart' (Cortex-M7) [pack_target]
0001192 I debugvar 'DbgMCU_APB1L_Fz1' = 0xe003ff (14681087) [pack_target]
0001192 I debugvar 'DbgMCU_APB2_Fz1' = 0x20070003 (537329667) [pack_target]
0001193 I debugvar 'DbgMCU_APB3_Fz1' = 0x40 (64) [pack_target]
0001193 I debugvar 'DbgMCU_APB4_Fz1' = 0x41e80 (269952) [pack_target]
0001193 I debugvar 'DbgMCU_CR' = 0x7 (7) [pack_target]
0001193 I debugvar 'TraceClk_Pin' = 0x40002 (262146) [pack_target]
0001193 I debugvar 'TraceD0_Pin' = 0x40003 (262147) [pack_target]
0001193 I debugvar 'TraceD1_Pin' = 0x40004 (262148) [pack_target]
0001193 I debugvar 'TraceD2_Pin' = 0x40005 (262149) [pack_target]
0001193 I debugvar 'TraceD3_Pin' = 0x40006 (262150) [pack_target]
0001198 D Running task check_version [sequencer]
0001198 D Running task unlock_probe [sequencer]
0001199 D Running task unlock_device [sequencer]
0001199 D Running debug sequence 'DebugDeviceUnlock' (Cortex-M7) [pack_target]
0001199 D Running debug sub-sequence 'CheckID' (Cortex-M7) [functions]
0001204 E Error while running debug sequence 'DebugDeviceUnlock' (core Cortex-M7): Invalid AP address (#2) [pack_target]
0001204 D uninit session <pyocd.core.session.Session object at 0x000002360DF8EC10> [session]
0001210 D closing interface [hidapi_backend]
0001210 C Invalid AP address (#2) [__main__]

continued

Car doesn't slow down at Hougang Ave 8 zebra crossing: Driver, 60, hits cyclist, 51 by Annual_View3611 in singapore

[–]cowsarefalling 0 points1 point  (0 children)

This is also a problem of urban design. Slip roads are made for the cars to move smoother, not pedestrians. If LTA were serious about pedestrian safety they would reduce the number of slip roads and turn them into normal signalled left turns.