Skip to content

Commit

Permalink
Do the dumb thing and start openocd and gdb twice
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbollen committed Feb 19, 2025
1 parent 11c6819 commit da607a6
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,14 @@ driverFunc testName targets = do
let gdbs = fmap fst initGdbsData
liftIO $ mapM_ ((errorToException =<<) . Gdb.loadBinary) gdbs

-- TODO: Replace `prog_en` vio with `enable_sync_gen` vio
mapM_
(\(hwT, _) -> openHardwareTarget hwT >> updateVio "vioHitlt" [("probe_prog_en", "0")])
targets
-- liftIO $ mapM_ ((errorToException =<<) . Gdb.compareSections) gdbs
-- TODO: Replace `prog_en` vio with `enable_sync_gen` vio
mapM_
(\(hwT, _) -> openHardwareTarget hwT >> updateVio "vioHitlt" [("probe_prog_en", "0")])
targets

brackets (liftIO <$> L.zipWith initOpenOcd targets [0 ..]) (liftIO . snd) $ \_initOcdsData -> do
brackets (liftIO <$> L.zipWith initGdb gdbPorts targets) (liftIO . snd) $ \initGdbsData -> do
let gdbs = fmap fst initGdbsData
liftIO $ mapM_ Gdb.continue gdbs
mapM_ startTest targets

Expand Down

0 comments on commit da607a6

Please sign in to comment.