traveo2_ce_4m.cfg 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # Copyright (C) <2019-2021>
  3. # <Cypress Semiconductor Corporation (an Infineon company)>
  4. #
  5. # Configuration script for Cypress TRAVEO™II CE-4M family of microcontrollers.
  6. # TRAVEO™II CE-4M is a dual-core device with CM0+ and CM4 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 126
  17. set MAIN_SMALL_SECTOR_NUM 16
  18. set WORK_LARGE_SECTOR_NUM 48
  19. set WORK_SMALL_SECTOR_NUM 256
  20. echo "** Supported Flash Loaders: ***********************"
  21. echo "** SMIF0_LOADER: TV2CE4MA0_S26HL512T.elf"
  22. echo "** enable_hyperram: TV2CE4MA0_S27KL064.elf (mapped to 0x1C000000)"
  23. echo "***************************************************"
  24. # Reset configuration - use hardware XRES pin
  25. # If this line is commented-out OpenOCD will use SYSRESETREQ to reset the CM0+ core and
  26. # all peripherals. This will also reset CM4/CM7 cores.
  27. # reset_config srst_only srst_pulls_trst
  28. # Defines the name of the Target and allows to override it from the command line
  29. ifx::set_or_global CHIPNAME traveo2_ce_4m
  30. set TARGET_VARIANT TVIICE4M
  31. # Include common functionality script
  32. source [find target/infineon/cat1a/base_cyt2xx.cfg]
  33. if { [info exists SMIF0_LOADER] } {
  34. flash bank ${CHIPNAME}_smif0_cm0 cmsis_flash 0x18000000 0 4 4 ${TARGET}.cm0 ../flm/cypress/traveo2/${SMIF0_LOADER} 0x1000
  35. flash bank ${CHIPNAME}_smif0_cm4 virtual 0x18000000 0 4 4 ${TARGET}.cm4 ${CHIPNAME}_smif0_cm0
  36. unset SMIF0_LOADER
  37. }
  38. proc enable_hyperram { hram_loader } {
  39. set xip_base 0x1C000000
  40. catch {
  41. load_image ../flm/cypress/traveo2/${hram_loader} 0x08000800
  42. reg pc 0x08000800
  43. reg sp 0x08010000
  44. reg r9 0x08002800
  45. resume 0x08000800
  46. wait_halt
  47. mrw $xip_base
  48. echo "** HyperRAM mapped to address [format 0x%08X $xip_base]"
  49. }
  50. }