btstack/port/stm32-l073rz-nucleo-em9304/ozone.jdebug

1 line
14 KiB
Plaintext
Raw Normal View History

/********************************************************************* * * OnProjectLoad * * Function description * Project load routine. Required. * ********************************************************************** */ void OnProjectLoad (void) { // // Dialog-generated settings // Project.SetDevice ("STM32L073RZ"); Project.SetHostIF ("USB", ""); Project.SetTargetIF ("SWD"); Project.SetTIFSpeed ("50 MHz"); Project.AddSvdFile ("$(InstallDir)/Config/CPU/Cortex-M4F.svd"); // // User settings // File.Open ("$(ProjectDir)/EXAMPLE.elf"); } /********************************************************************* * * TargetReset * * Function description * Replaces the default target device reset routine. Optional. * * Notes * This example demonstrates the usage when * debugging a RAM program on a Cortex-M target device * ********************************************************************** */ //void TargetReset (void) { // // unsigned int SP; // unsigned int PC; // unsigned int VectorTableAddr; // // Exec.Reset(); // // VectorTableAddr = Elf.GetBaseAddr(); // // if (VectorTableAddr != 0xFFFFFFFF) { // // Util.Log("Resetting Program."); // // SP = Target.ReadU32(VectorTableAddr); // Target.SetReg("SP", SP); // // PC = Target.ReadU32(VectorTableAddr + 4); // Target.SetReg("PC", PC); // } //} /********************************************************************* * * BeforeTargetReset * * Function description * Event handler routine. Optional. * ********************************************************************** */ //void BeforeTargetReset (void) {