How to program/flash the s32g274a board?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to program/flash the s32g274a board?

3,087 次查看
eaxrax
Contributor I

Hello

 

Fairly easy question here. I would like to program the cortex M7 of the s32g274a, but based on the read documentation some elements are not quite clear.

 

I have a regular USB-mini USB cable going from my laptop to the board, a test application I successfully compiled with S32 Design studio and the S32 Flash tool. I have tried uploading my .elf file as-is using the s32 flash tool but got the following error: "Program finished with error # -1073741819"

 

 

error.png

 

presume I get this error because the board is not in serial boot mode, based on some info I found online this seems to be a prerequisite. There also seems to be a second prerequisite which is that the .elf file needs to be converted to a "blob". I tried doing this, but this failed as well:

 

blobError.png

 

Yet the IDE was installed in online mode and my internet connection is stable. So it is not clear what the issue is here either.

 

 

2 Questions:

  • How does one put this board in serial boot mode? (couldn't find useful info in the datasheet)
  • Is it mandatory to convert the .elf file to a so-called blob? If yes, how can the error the IDE is showing be solved?

 

Extra info:

This is the pdf I am using which describes the steps to program (apologies, it s a dropbox link, but you don't need to download anything. The pdf file can just be read online in a browser): 

https://www.dropbox.com/s/bplxtyuvsyhizwo/Getting_started_with_S32G_S32DS.pdf?dl=0

0 项奖励
回复
2 回复数

2,479 次查看
puravp
Contributor II

Hi @eaxrax @bpe , even I am facing a similar issue. I am trying to flash the blob image to S32G274A board using the S32DS but it gives following error:

> bin\S32FlashTool -t targets\S32G2xxx.bin -a "flash\MX25UM51245G.bin" -i uart -p COM6
- Initializing Target.
- Initializing Target.
Process returned 3. Error log:
- Error: Target image load is failed!
- Error: Failure to establish communication with target device.

 The board is already in a serial boot mode as I can make a serial connection via Putty. The manual has no information on how to flash this board. Any help would be really appreciated. Thank you!!

0 项奖励
回复

3,077 次查看
bpe
NXP Employee
NXP Employee

How does one put this board in serial boot mode? (couldn't find useful info in the datasheet)

Refer to your board documentation. On NXP reference or evaluation boards the appropriate boot time configuration signals are routed to switches that allow to select the boot mode.

 

Is it mandatory to convert the .elf file to a so-called blob? If yes, how can the error the IDE is showing be solved?

If you want the processor to boot directly into your application, yes, you have to create a bootable binary in the format recognized by the boot ROM. ELF is not valid for that.  Refer to S32DS User Guide, section titled "Debugging with S32 Debug Probe from flash for all other targets" for the recommended steps. As of the error you are observing, it is most likely because not all extension plugins required to work with S32G2 are installed on your machine. Familiarize yourself with this document. It explains what to install  and how to make a compact workable example for NXP S32G-VNP-RDB2 in maximum possible details.

 

Best Regards,
Platon

 

0 项奖励
回复