traveo2_6m_b1.cfg 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. # Copyright (C) <2019-2024>
  3. # <Cypress Semiconductor Corporation (an Infineon company)>
  4. #
  5. # Configuration script for Cypress TRAVEO™II C-2D family of microcontrollers.
  6. # TRAVEO™II C-2D is a triple-core device with CM0+ and 2xCM7 cores. All cores share
  7. # the same Flash/RAM/MMIO address space.
  8. #
  9. source [find target/infineon/common/common_ifx.cfg]
  10. # The following four lines can be used to override Flash Geometry of the target device
  11. # In this case configuration scripts will not perform any auto-detection and will use
  12. # predefined values.
  13. # If all these variables are set to zero, configuration scripts will attempt to detect
  14. # the type of target device by reading SiliconID from SFlash and matching it with MPN
  15. # database, see cympn.cfg file.
  16. set MAIN_LARGE_SECTOR_NUM 190
  17. set MAIN_SMALL_SECTOR_NUM 32
  18. set WORK_LARGE_SECTOR_NUM 48
  19. set WORK_SMALL_SECTOR_NUM 256
  20. echo "** Supported Flash Loaders: ***********************"
  21. echo "** SMIF0_LOADER: TV2C2D6MB1_S0_S28HS512T.elf - 8S8S8S TRX mode"
  22. echo "** TV2C2D6MB1_S0_DDR_S28HS512T.elf - 8D8D8D TRX mode"
  23. echo "** SMIF1_LOADER: TV2C2D6MB1_S1_DQ_S25HS512T.elf"
  24. echo "** TV2C2D6MB1_S1_S26HS01GT.elf (in SPI-1S1S1S mode)"
  25. echo "** enable_hyperram: TV2C2D6MB1_S1_S27KL064.elf (mapped to 0x84000000)"
  26. echo "***************************************************"
  27. # Reset configuration - use hardware XRES pin
  28. # If this line is commented-out OpenOCD will use SYSRESETREQ to reset the CM0+ core and
  29. # all peripherals. This will also reset CM4/CM7 cores.
  30. # reset_config srst_only srst_pulls_trst
  31. # Defines the name of the Target and allows to override it from the command line
  32. ifx::set_or_global CHIPNAME traveo2_6m
  33. set TARGET_VARIANT TVIIC2D6M
  34. # Include common functionality script
  35. source [find target/infineon/cat1c/base_cytxxx.cfg]
  36. proc enable_hyperram { hram_loader } {
  37. set xip_base 0x84000000
  38. catch {
  39. load_image ../flm/cypress/traveo2/${hram_loader} 0x28000800
  40. reg pc 0x28000800
  41. reg sp 0x28010000
  42. reg r9 0x28002800
  43. resume 0x28000800
  44. wait_halt
  45. mrw $xip_base
  46. echo "** HyperRAM mapped to address [format 0x%08X $xip_base]"
  47. }
  48. }