Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 5875e3d

Browse files
committed
Fix: Update simulator to specify the operating frequency.
1 parent d044029 commit 5875e3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

runestone/server/lp_common_lib.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def get_sim_str_mdb(
175175
'set uart1io.uartioenabled true\n'
176176
'set uart1io.outputfile "{}"\n'
177177

178+
# Configure the clock to match the setup in the PIC24 libary ``lib/include/pic24_clockfreq.h`` named ``SIM_CLOCK``.
179+
'set oscillator.frequency 1\n'
180+
'set oscillator.frequencyunit Mega\n'
181+
178182
# Load in the program.
179183
'program "{}"\n'
180184

0 commit comments

Comments
 (0)