GithubHelp home page GithubHelp logo

newaetech / chipwhisperer-target-mpc5748g Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 1.61 MB

CW308T-MPC5748G Example Firmware

Makefile 0.93% C 60.38% Assembly 7.26% C++ 29.71% PHP 0.15% Ruby 1.04% CMake 0.06% Python 0.46% Batchfile 0.01%

chipwhisperer-target-mpc5748g's People

Contributors

alex-dewar avatar colinoflynn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chipwhisperer-target-mpc5748g's Issues

Re-flash MPC5748G after enabling password groups

Hi Colin,
Hi Alex,

Thank you for providing these examplary usages of the MPC's password locking mechanism. After flashing your simpleserial firmware, I am having issues with re-flash the MPC's firmware after unlocking all password groups. This should be possible though, right?


I have programmed the password group configurations as provided by you, entered the lifecycle 'OEM production' and I'm entering the passwords via TeraTerm as follows:

for each x in {0,1,2,3}

  1. w0x to select password group x
  2. q{pass} to enter the respective word-reversed password
  • correct password returns r0x 601fffff
  • wrong password returns r0x e01fffff
  • not entirely sure how to interpret the PASS_LOCK_3_PGn register, but this seems to indicate various 'unlockings' (Password Group Lock, Debug Interface Lock, Master only, etc.)
  1. when checking the lock status with l, I seemling get a locked status again: r00 e01fffff

Assuming I have correctly unlocked the password groups in the runtime (skipping 3.), I still fail to flash new firmware through the PEMicro GDB server. I am providing the JTAG password via command line and are able to attach via GDB, debug, etc. However, when I load the new ELF, I get a flash error.

My best guess is, this is due to the PEMicro software resetting the board before doing anything else, as this should 're-lock' the password groups.

I would really appreciate your thoughts on this: Have you been able to re-flash the chip in this stage? If so, how? If not, do you think it should be possible (e.g. by programming without a reset)?

I couldn't find anything related to password group-related flashing on the PEMicro forums and thought I'd consult you guys first.

Thanks in advance for any hints!
Christian


Down below you find the PEMicro output when trying to flash. (I assume the writings are just not possible and thus the CRC checksums fail).

CMD>CM E:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\P&E\nxp_mpc5748g_1x32x1520k_cflash.pcp

Initializing.

Device IDCODE is $00000082
Device ID revision is $00000000
MPC574xC Device detected.
Initialized.

;version 1.05, 06/26/2017, Copyright P&E Microcomputer Systems, www.pemicro.com [5748G_6080k]

;device NXP, MPC5748G, 1x32x1520k, desc=CFlash

;begin_cs device=$00F90000, length=$005F0000, ram=$40000000

Loading programming algorithm ...
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
   block 00FA0000-00FA0007 ...
Ok.
   block 00FA0010-00FA0017 ...
Ok.
   block 01000000-01000269 ...
Calculated CRC-16 does not match block. (File = $2BCC, Device = $D1B1)
Current content of flash does not match application to be programmed

CMD>EM

Erasing.
Module has been erased.
CMD>PM

Programming.
Processing Object File Data ...

Error during programming.
Error Programming flash of device
Error occured during Flash programming.

Device IDCODE is $00000082
Device ID revision is $00000000

Device IDCODE is $00000082
Device ID revision is $00000000

Starting reset script (E:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\P&E\s32e200_mpc574xg.mac) ...
REM This script is compatible with MPC574xG devices.                                                                                        
REM Clean GPRs to remove residual data after using algorithm                                                                                
REM Initialize all of the Main SRAM - 768KB                                                                                                 
Initializing RAM from $40000000 to $400BFFFF.

Reset script (E:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.8.7.201906071634\win32\gdi\P&E\s32e200_mpc574xg.mac) completed.

MPC574xG Device detected.
PE-ERROR: Error downloading to the device.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.